commit | c0000255a734fe68d767e1706345963ca6d23eec | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Thu Mar 19 07:14:23 2020 +0000 |
committer | Mike Yu <yumike@google.com> | Mon Mar 23 16:56:21 2020 +0800 |
tree | 28b2d63c8fd973fdd9170c1825c20d83abdbcaad | |
parent | b6402aea0a93a69438dab624df1eed11beaca183 [diff] |
Merge the changes about the tests repeated setResolverConfiguration === Refactor the test code that checks the cleartext DNS stats The test code for stats check is slightly stricter than before since now it checks almost every field rathern few of them. Bug: 150678049 Test: resolv_integration_test passed Change-Id: I86294a9d3a6050ccf8057b34eaa3463e00742850 === 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 === Bug: 150678049 Merged-In: I86294a9d3a6050ccf8057b34eaa3463e00742850 Merged-In: I7a866e7e305c0fb703ccb9546d1c70ce77e2d3c7 Change-Id: I69f449c578799a9437e38743557b8c1bc52d4046 (cherry picked from commit 3ccd410b1726933dac860b8e021b1edb3fe4b4a0)
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.