summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2019-04-28 00:55:19 +0900
committerLorenzo Colitti <lorenzo@google.com>2019-05-09 17:58:48 +0900
commitcfc1abc714db769d3844623d927ba96160f50c89 (patch)
tree8a80599c195e5a42c84eda3a80d3bd980f6b7207 /src
parent88ddd882ad28e5c069b8f0fd4c0474cc9f0c1827 (diff)
Add tests for strict mode private DNS validation.
Test successful and failed validation, and updating the config. In order to do this, add a FakeDns class so we can change DNS responses dynamically while the test is running. Also a couple of minor fixes: 1. Make sure the DNS timeout is set. Before this CL, it was always 0. Not sure why. It does seem to be set to the default value (12500) when actually running on device. We didn't catch this because the only tests that use the timeout set it explicitly. 2. Make runNetworkTest a bit more realistic: always send NetworkCapabilities *before* calling notifyNetworkConnected. This is what ConnectivityService does. Bug: 122652057 Test: atest FrameworksNetTests NetworkStackTests Test: atest --generate-new-metrics 50 NetworkStackTests:com.android.server.connectivity.NetworkMonitorTest Change-Id: Ifd6694262501874f3261c864a049cb35c6afb9c8
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions