<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_packages_modules_NetworkStack/tests, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/'/>
<entry>
<title>Add test for NetworkStackUtils.addArpEntry</title>
<updated>2020-09-24T01:31:02+00:00</updated>
<author>
<name>Remi NGUYEN VAN</name>
<email>reminv@google.com</email>
</author>
<published>2020-09-18T09:11:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=bd1de20f874c7691c163d00bd9963a233765f717'/>
<id>bd1de20f874c7691c163d00bd9963a233765f717</id>
<content type='text'>
The test verifies that a DHCP offer can be sent to a fake IP address
when addArpEntry is used to specify a fake MAC address for that host.
It then verifies that the packet was addressed to the fake MAC address.

Test: atest NetworkStackIntegrationTests
Bug: 168868607
Change-Id: Ic6df3724958820b328ca3024aa5a7a7248a7d6d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test verifies that a DHCP offer can be sent to a fake IP address
when addArpEntry is used to specify a fake MAC address for that host.
It then verifies that the packet was addressed to the fake MAC address.

Test: atest NetworkStackIntegrationTests
Bug: 168868607
Change-Id: Ic6df3724958820b328ca3024aa5a7a7248a7d6d8
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Set default impl for INetworkMonitorCallbacks."</title>
<updated>2020-09-21T03:40:18+00:00</updated>
<author>
<name>Treehugger Robot</name>
<email>treehugger-gerrit@google.com</email>
</author>
<published>2020-09-21T03:40:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=78cf7a48e20157ae4af4bc437e66dc38d11e5040'/>
<id>78cf7a48e20157ae4af4bc437e66dc38d11e5040</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Migrate first IpClientIntegrationTests to root"</title>
<updated>2020-09-17T14:30:06+00:00</updated>
<author>
<name>Treehugger Robot</name>
<email>treehugger-gerrit@google.com</email>
</author>
<published>2020-09-17T14:30:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=d1111745aa84126ed3084682edbb1db23c5aa1b2'/>
<id>d1111745aa84126ed3084682edbb1db23c5aa1b2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Migrate first IpClientIntegrationTests to root</title>
<updated>2020-09-17T08:58:06+00:00</updated>
<author>
<name>Remi NGUYEN VAN</name>
<email>reminv@google.com</email>
</author>
<published>2020-09-07T13:00:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=a55eae5bdb19ac7336902f9248c51d036c472ca2'/>
<id>a55eae5bdb19ac7336902f9248c51d036c472ca2</id>
<content type='text'>
Instead of using the network_stack certificate, tests in
IpClientIntegrationTest should use root access. This allows running them
on any userdebug device, while the network_stack certificate requirement
is more restrictive.

This change renames IpClientIntegrationTest to
IpClientIntegrationTestBase, which IpClientIntegrationTest and
IpClientRootTest inherit from.
Current tests in IpClientIntegrationTestBase are run in IpClientRootTest
by default (root access should be available when signature permissions
are available), and only run in IpClientIntegrationTest when annotated
with @SignatureRequiredTest.

This change adds @SignatureRequiredTest to all tests except
testDhcpInit. This causes current tests to run in the same configuration
as today. testDhcpInit demonstrates the migration by running in
IpClientRootTest.

Bug: 160541918
Test: atest NetworkStackIntegrationTests
Change-Id: Id4e714176c923d4cbe0dc100d2d472362644a509
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of using the network_stack certificate, tests in
IpClientIntegrationTest should use root access. This allows running them
on any userdebug device, while the network_stack certificate requirement
is more restrictive.

This change renames IpClientIntegrationTest to
IpClientIntegrationTestBase, which IpClientIntegrationTest and
IpClientRootTest inherit from.
Current tests in IpClientIntegrationTestBase are run in IpClientRootTest
by default (root access should be available when signature permissions
are available), and only run in IpClientIntegrationTest when annotated
with @SignatureRequiredTest.

This change adds @SignatureRequiredTest to all tests except
testDhcpInit. This causes current tests to run in the same configuration
as today. testDhcpInit demonstrates the migration by running in
IpClientRootTest.

Bug: 160541918
Test: atest NetworkStackIntegrationTests
Change-Id: Id4e714176c923d4cbe0dc100d2d472362644a509
</pre>
</div>
</content>
</entry>
<entry>
<title>Set default impl for INetworkMonitorCallbacks.</title>
<updated>2020-09-15T10:44:01+00:00</updated>
<author>
<name>Jiyong Park</name>
<email>jiyong@google.com</email>
</author>
<published>2020-09-15T10:37:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=225d37e3d981d1f723ddf8b20cd0842ccf758ff7'/>
<id>225d37e3d981d1f723ddf8b20cd0842ccf758ff7</id>
<content type='text'>
In S, calling an unimplemented AIDL method causes an exception when
there's no default implementation registered for the interface. The
change doesn't actually affect the network stack module because the
unimplemented methods are all oneway which doesn't trigger the exception
(because the clients cannot know if the call was successful or not).

However, that becomes a problem in the test where the binder objects are
mocked (or spy'ed) in the same process. In that case the exception
occurs because the clients (to be specific the generated proxy class)
can be notified with the unimplemented method.

Fixing the problem by registering the default implementation for the
problematic interface INetworkMonitorCallbacks.

Bug: 167632276
Test: mts/networking/gce-unittests-r-build-module-on-qt-platform
Change-Id: Ie21363062ee7066863dfd0d6a2d0d3a0d2812a0d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In S, calling an unimplemented AIDL method causes an exception when
there's no default implementation registered for the interface. The
change doesn't actually affect the network stack module because the
unimplemented methods are all oneway which doesn't trigger the exception
(because the clients cannot know if the call was successful or not).

However, that becomes a problem in the test where the binder objects are
mocked (or spy'ed) in the same process. In that case the exception
occurs because the clients (to be specific the generated proxy class)
can be notified with the unimplemented method.

Fixing the problem by registering the default implementation for the
problematic interface INetworkMonitorCallbacks.

Bug: 167632276
Test: mts/networking/gce-unittests-r-build-module-on-qt-platform
Change-Id: Ie21363062ee7066863dfd0d6a2d0d3a0d2812a0d
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't mock FileDescriptor.</title>
<updated>2020-09-14T22:39:54+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2020-09-14T22:38:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=afc8d7fc3cddd68ae07766a720a5dbff9f2b1da6'/>
<id>afc8d7fc3cddd68ae07766a720a5dbff9f2b1da6</id>
<content type='text'>
Mocking FileDescriptor seems to make internal methods that should never
return null return null, leading to NullPointerExceptions.

Bug: http://b/168345383
Test: atest TcpSocketTrackerTest
Change-Id: I06189ab14419f4cb7787f457e6969bd15b7c7ecd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mocking FileDescriptor seems to make internal methods that should never
return null return null, leading to NullPointerExceptions.

Bug: http://b/168345383
Test: atest TcpSocketTrackerTest
Change-Id: I06189ab14419f4cb7787f457e6969bd15b7c7ecd
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement DHCP IPv6-Only preferred option. am: 6e2818b1ca</title>
<updated>2020-09-09T01:00:11+00:00</updated>
<author>
<name>Xiao Ma</name>
<email>xiaom@google.com</email>
</author>
<published>2020-09-09T01:00:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=2e6fd72bf9d6f5cece62c745c3fe6e279ec1dd26'/>
<id>2e6fd72bf9d6f5cece62c745c3fe6e279ec1dd26</id>
<content type='text'>
Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/1351270

Change-Id: Ic631e8ecb86b04183b3635581255bf0d0d43242d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/1351270

Change-Id: Ic631e8ecb86b04183b3635581255bf0d0d43242d
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement DHCP IPv6-Only preferred option.</title>
<updated>2020-09-08T15:00:55+00:00</updated>
<author>
<name>Xiao Ma</name>
<email>xiaom@google.com</email>
</author>
<published>2020-06-21T16:18:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=6e2818b1cac2205da8b44180ad45ac3bd38c9cbe'/>
<id>6e2818b1cac2205da8b44180ad45ac3bd38c9cbe</id>
<content type='text'>
An IPv6-capable host includes this option in the Parameter Request
List option and willing to forgo obtaining an IPv4 address for a
specific assigned period(V6ONLY_WAIT). DHCP server responds with
DHCPOFFER or DHCPACK with this option if network can provide IPv6
connectivity.

Currently whether or not including IPv6-only preferred option in the
PRL is controlled by experiment flag.

Bug: 159670487
Test: atest NetworkStackTests NetworkStackIntegrationTests
Change-Id: I89653271197164a7b7f638c43cb3bf4d28817b9f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An IPv6-capable host includes this option in the Parameter Request
List option and willing to forgo obtaining an IPv4 address for a
specific assigned period(V6ONLY_WAIT). DHCP server responds with
DHCPOFFER or DHCPACK with this option if network can provide IPv6
connectivity.

Currently whether or not including IPv6-only preferred option in the
PRL is controlled by experiment flag.

Bug: 159670487
Test: atest NetworkStackTests NetworkStackIntegrationTests
Change-Id: I89653271197164a7b7f638c43cb3bf4d28817b9f
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fix testDhcpClientCaptivePortalApiEnabled flakes" am: fd4ed24e51</title>
<updated>2020-09-08T02:37:40+00:00</updated>
<author>
<name>Treehugger Robot</name>
<email>treehugger-gerrit@google.com</email>
</author>
<published>2020-09-08T02:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=27091efddfcb458db491de153ed24f57fdc17b11'/>
<id>27091efddfcb458db491de153ed24f57fdc17b11</id>
<content type='text'>
Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/1415991

Change-Id: Iae6f135a3ad7fe93df6b240120ac55cbc0d40d97
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/1415991

Change-Id: Iae6f135a3ad7fe93df6b240120ac55cbc0d40d97
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fix testDhcpClientCaptivePortalApiEnabled flakes"</title>
<updated>2020-09-08T02:10:32+00:00</updated>
<author>
<name>Treehugger Robot</name>
<email>treehugger-gerrit@google.com</email>
</author>
<published>2020-09-08T02:10:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=fd4ed24e5144549e256dfbc76fe8de33ccf9047d'/>
<id>fd4ed24e5144549e256dfbc76fe8de33ccf9047d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
