Junyu Lai
63e3dedfee
Fix expectCallback does not fail when no callback received
...
This hides 3 bugs where,
1. In Android S, onNetworkRequested is no longer broadcasted
by ConnectivityService in any condition. However, the test
still passes since assertion does not fail when no callback
received. Ignore the test on S+ devices since the behavior
changed on S or later devices.
2. Test network agent is not registered, but the test still
passes.
3. Test network agent does not fulfill the request that kept
the network up, so the test fails since the test network
is not needed and be torn down.
Test: android.net.NetworkProviderTest on R/S device
Bug: 189074532
Change-Id: I627dcd0f57b6ef4197d16e6c1ec0c53e675ab055
2021-06-15 03:05:30 +00:00
..
apf
Move config_apf* resources to NetworkStack
2021-05-13 14:40:10 +00:00
metrics
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
netstats
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
util
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
CaptivePortalDataTest.kt
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
CaptivePortalTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
DependenciesTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
DhcpInfoTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
IpPrefixTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
KeepalivePacketDataTest.kt
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
LinkAddressTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
LinkPropertiesTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
MatchAllNetworkSpecifierTest.kt
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
NattKeepalivePacketDataTest.kt
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
NetworkAgentConfigTest.kt
Add CTS test for API setLegacyExtraInfo
2021-06-07 20:22:47 +00:00
NetworkCapabilitiesTest.java
Add test for NetworkCapabilities.Builder.withoutDefaultCapabilities
2021-05-21 09:57:42 +08:00
NetworkProviderTest.kt
Fix expectCallback does not fail when no callback received
2021-06-15 03:05:30 +00:00
NetworkSpecifierTest.kt
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
NetworkStackTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
NetworkStateSnapshotTest.kt
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
NetworkTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
OemNetworkPreferencesTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
RouteInfoTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
StaticIpConfigurationTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
TcpKeepalivePacketDataTest.kt
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
UidRangeTest.java
Move net unit tests to packages/Connectivity
2021-05-13 08:30:33 +00:00
UnderlyingNetworkInfoTest.kt
Rename *Iface* APIs to *Interface*
2021-05-14 11:05:22 +08:00