commit | 153b5b856ca20430e33b8b96fff094916263e65e | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed Mar 04 19:53:54 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Mar 18 15:51:08 2020 +0800 |
tree | 08cca911dce557a0635f7ce13d858b03fff56ced | |
parent | e2162e545a9c6fa882f5adb884914e0318073c8a [diff] |
Add tests to cover repeated setResolverConfiguration Two tests are added to protect the resolver when it continually receives the same setup requests. When the resolver receives repeated and same setup: [1] Do not clear the cache. [2] Do not clear the stats (the stats for cleartext DNS servers got from GetResolverInfo()). [3] Do not start a new re-evaluation process for the private DNS servers if they have been marked as in_progress. [4] Need not to re-validate the private DNS servers if they have been validated. Another test is added to protect the implementation of aosp/1108695. Fix: 150678049 Test: resolv_integration_test passed Change-Id: I7a866e7e305c0fb703ccb9546d1c70ce77e2d3c7
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.