The common tests include tests that must be both in CTS and unit tests.
Bug: 129199908
Test: atest CtsNetTestCases, IpPrefixCommonTest is run and passes.
Change-Id: I872fb80e8a0b21144f0b66b33645a320dcd5dcf2
(cherry picked from commit 855e7889d6)
Add a test case to make sure tcp keepalive offload starts
correctly.
Bug: 114151147
Test: atest ConnectivityManagerTest#testCreateTcpKeepalive
Change-Id: Iaf1c2fab755f3df8e866b4988f64c25906e1737a
If the adb TCP port is opened, this test may be run by adb over
network. Huge amount of data traffic might go through the
network and accounted into total packets stats. The upper bound
check would be meaningless.
Bug: 126320702
Test: atest android.net.cts.TrafficStatsTest 10 trials for both cases
Change-Id: Iaee455826dc01741c6a3a9f5f8096361c69a1e7c
Add a new test to ensure that the NETWORK_CARRIER_PROVISIONING is only
granted to one app.
Bug: 129401919
Test: atest WifiManagerTest
Change-Id: Id2e722d63b02d9cee718dd3af49e9ef113bd5ffb
After having a lock between callback and cancellationsignal,
errno with EBADF should not happen.
Bug: 129317069
Test: atest DnsResolverTest
Change-Id: I08e800b078d40345eb3f46da1323db251c8dcd47
DnsTest.testDnsWorks expects that reverse lookup for the Google
public DNS servers will return something with google.com in the
name. This no longer works because the reverse DNS entries have
changed to dns.google.
Bug: 129452237
Test: atest android.net.cts.DnsTest.testDnsWorks
Change-Id: Iee8bfe418bf6003e5c78df77d75f6f9745249267
These tests include native code so mark them as multi_abi. They
also pass in instant mode so mark them instant_app.
Fix: 123367032
Fix: 123367595
Test: atest CtsNativeNetDnsTestCases CtsNativeNetTestCases
Test: cts-tradefed run commandAndExit cts --enable-parameterized-modules --module-parameter instant_app -m CtsNativeNetDnsTestCases
Test: cts-tradefed run commandAndExit cts --enable-parameterized-modules --module-parameter instant_app -m CtsNativeNetTestCases
Change-Id: Id66705ecb012a07aa34318f41afb1840dd25b9e3
Currently, due to foreground app will never get blocked by
NetworkPolicyManagerService, so onBlockedStatusChanged cannot be
tested under cts net app.
Thus, listen for network change events in app2 allows subsequent
tests on NetworkCallbacks.
Bug: 118862340
Test: m -j cts
Change-Id: I26ca370fc6ae4dd3f32ce6cf448bae83f3fbfbcc
1. Done for some code-style nits.
2. Update tests because AnswerCallback of DnsResolver is changed.
Bug: 124882626
Test: built, flashed, booted
atest DnsResolverTest
Change-Id: Ie862c7ea5077f56fd9a4d96baf3f466b65db93d8
The enforced number is set at 50.
Also, removed the usage of a deprecated API in WifiManagerTest.
Bug: 126536466
Test: atest WifiManagerTest
Change-Id: I3a1ab4150cbbecef1157152c51b1148e1e2360ca
This commit renames both the class name and the file name from
WifiManager_WifiLockTest into WifiLockTest since WifiManager is implied
from the package and directory hierarchy.
Bug: 34905427
Test: atest android.net.wifi.cts
Change-Id: Iaade2ba98cb1608384c2527eddb29bb6d020bf78
This commit adds the CTS tests for the class WifiManager.MulticastLock
Bug: 124017617
Test: atest android.net.wifi.cts
Change-Id: I6e7a6e70f350dcd23fe541ef746770e3561d49e6