commit | 57c0798c423a51d542691a0756113c0acb68a277 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed Aug 24 13:21:12 2022 +0000 |
committer | Mike Yu <yumike@google.com> | Wed Aug 24 13:37:00 2022 +0000 |
tree | b82408f85825a49de76b9244679f3044e561ee0a | |
parent | 92a1bd416120ac2de375424646ce1ae6d7e484b0 [diff] |
Test: Pass sized 1 vector to IDnsResolver::getResolverInfo Prior to aosp/2152596, DnsResolver would crash if size of wait_for_pending_req_timeout_count is 0. This change ensures the crash won't happen, although it's not expected to see that the latest tests are run on devices with old DnsResolver installed. Bug: 237767883 Test: ResolverTest.ResolverStats passed on a device with old version of DnsResolver installed Change-Id: Ic9c5b57e7576407132efbd16e58ba25c7fef6467
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.