commit | 297830b75bcb067b4fab48175d8db472abaa77dc | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Tue Dec 12 00:44:39 2023 +0800 |
committer | Ken Chen <cken@google.com> | Tue Dec 12 00:44:39 2023 +0800 |
tree | 701eab28e6ffb2d5c107343da875875818700021 | |
parent | b7f8f545733a2857819f73e3ae24219b9f6d2d29 [diff] |
[Test] Correct the BlockDnsQuery_FlaggedOff test Test clears the wrong fake private DNS front-end. It was passing previously because the test didn't flush DNS cache. On the second iteration of the loop, the DNS resolver does not send out the query. It returns results from the cache provided by the first iteration. The correct behavior should be clearing the right private DNS front-end and clearing DNS resolver's cache after each iteration of for-loop. Bug: N/A Test: atest resolv_integration_test Change-Id: I0f87c5cb36bf1887339a3c48bee37358dfac5ae2
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.