diff options
| author | lucaslin <lucaslin@google.com> | 2021-10-21 16:47:26 +0800 |
|---|---|---|
| committer | lucaslin <lucaslin@google.com> | 2021-10-21 16:47:26 +0800 |
| commit | 4d441a9b8d65e1f4f777c3b63b592b8e15fac285 (patch) | |
| tree | f3090da671dc88ccafcb3109e1aba2550cbd9a94 /tests/common/java/android/net/NetworkCapabilitiesTest.java | |
| parent | 39379a40bd323cc91355bc24f2b23f1d2656db4a (diff) | |
Wait for network to be validated when setting a valid private DNS
The previous design just set a valid private DNS and checked
whether onCapabilitiesChanged() has received and
NetworkCapabilities#isPrivateDnsBroken is false. It cannot ensure
that the private DNS is working until the network is validated.
So change the design to waiting the network to be validated after
setting a valid private DNS.
Bug: 196769780
Test: atest CtsNetTestCases:ConnectivityManagerTest
Change-Id: I9c173a70e2b81788efa2ecbf928acda0379846da
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions
