commit | 10832aaa42f57a319ac202a706fa64ba0419c3e7 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Aug 25 19:13:11 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Tue Sep 22 13:47:31 2020 +0800 |
tree | 78147627fdf0962e16d47610465bd3e17f205c8f | |
parent | 9b879a6b28354518ec8b06914e90d982f79babc5 [diff] |
Fix a test bug that doesn't restart network when using experiment flag Since the resolver updates the flags only when a network is created or destroyed, it's necessary to restart the testing network after ScopedSystemProperties. Also add a test that passes only if sort_nameservers is enabled. Bug: 137169582 Test: ResolverTest#SkipBadServersDueToInternalError passed ResolverTest#SkipBadServersDueToTimeout passed ResolverTest#DnsServerSelection passed Change-Id: I81b37de7fd6fd09591793bf5e079f5109ab41d0c
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.