summaryrefslogtreecommitdiff
path: root/tests/unit/java/com/android/server/NsdServiceTest.java
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2021-09-08 10:02:55 +0900
committerChalard Jean <jchalard@google.com>2021-09-08 18:43:09 +0900
commitae4c414c1f8985fb19ed619eca42c50972e237cf (patch)
tree1b74322d232d67ec86143e8b67e940265645dfc0 /tests/unit/java/com/android/server/NsdServiceTest.java
parent420fa2baef4df99fcceb64305180b05f8aa544e4 (diff)
Wait for validation of WiFi in OEM pref test
OEM_NETWORK_PREFERENCE_TEST prefers NOT_METERED&VALIDATED networks then TEST networks. If the WiFi isn't validated by the time the preference is set, then the TEST network is preferred and the test fails. The best solution is simply to wait for the WiFi network to validate before setting the preference. Besides, some of the *wait* methods wait for validation and some don't, creating confusion. Make this explicit on the setWifiMeteredStatusAndWait method with a boolean argument, which forces all users to make an explicit choice. testSetOemNetworkPreferenceForTestOnlyPref is not affected, as it does not change WiFi meteredness. Bug: 195365654 Test: testSetOemNetworkPreferenceForTestPref Change-Id: Icb9d7ff1ca5c3d93286ea3a79c27f15630d17ee6
Diffstat (limited to 'tests/unit/java/com/android/server/NsdServiceTest.java')
0 files changed, 0 insertions, 0 deletions