Add test coverage for strict mode private DNS.
Support faking out the DNS lookups used by NetworkMonitor to
resolve strict mode DNS, and add more test coverage.
These tests were partly adapted from tests we have in Q but
also contain new coverage. This is because in Q the interface
between ConnectivityService and NetworkMonitor changed
substantially, and it is impractical to backport
Test: atest FrameworksNetTests
(cherry picked from commit 60cd85533d3a9ad4e3758de4804d1716e7fe0371)
2 files changed