commit | daa67f1b10cee982f700ffa15d930be70cbf3127 | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Sat Mar 05 17:07:13 2022 +0800 |
committer | Ken Chen <cken@google.com> | Sat Mar 05 17:25:25 2022 +0800 |
tree | eae6df73f390c75c34968b242809233ccfced5f3 | |
parent | a17ba5aee1ffde3f71cca4e2c8078a4f6205fd8a [diff] |
Move SetMdnsRoute() and RemoveMdnsRoute() to test utilities Reduce code duplication in resolv_integration_test.cpp and resolv_unit_test.cpp. Also, the function can be reused by other tests. Test: atest Change-Id: Ia1bd1513d799e971a6f268e29c88f8dfe4df8bda
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.