summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkUtilsTest.java
diff options
context:
space:
mode:
authorJunyu Lai <junyulai@google.com>2021-05-24 13:04:52 +0000
committerJunyu Lai <junyulai@google.com>2021-06-15 03:05:30 +0000
commit63e3dedfee29985094883aac40c11979381aa8c8 (patch)
tree54d4d9dada91cf986048fccaa0cdd28971d0518a /tests/unit/java/android/net/NetworkUtilsTest.java
parenteb5451dd3542aeb7456dd02918620ec7ed63fe80 (diff)
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
Diffstat (limited to 'tests/unit/java/android/net/NetworkUtilsTest.java')
0 files changed, 0 insertions, 0 deletions