|author||Mike Yu <email@example.com>||Sat Jun 20 11:11:44 2020 +0800|
|committer||Mike Yu <firstname.lastname@example.org>||Sat Jun 20 12:43:30 2020 +0800|
Fix flaky tests due to onDnsEvent Since not every test checks onDnsEvent, a test might receive a DnsEvent which should have been catched by the previous test. Modify ExpectDnsEvent() to drop unexpected DnsEvents until the target DnsEvent is found. Bug: 159439402 Test: delayed the resolver to send DnsEvents, and ran resolv_integration_test Change-Id: Id06546fca9438f89aaa2af383b34b52b7e536e26
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.