commit | 21c0f8366ca80a21a2a8b146443a5bdd3b4252af | [log] [tgz] |
---|---|---|
author | Hungming Chen <nuccachen@google.com> | Fri Sep 20 18:38:47 2019 +0800 |
committer | Hungming Chen <nuccachen@google.com> | Wed Oct 30 16:18:36 2019 +0800 |
tree | c891bdc968a322b6c237bd0976b2875344f9b1af | |
parent | f9cd4ebcd935f346bfdad8c4866753ec0e5215bc [diff] |
resolv_gold_test: Use proto text file to store test data Wrap DNS query API arguments and its corresponding DNS packets from real life network into proto text file. The proto text file is used to be gold test data. Test: cd packages/modules/DnsResolver && atest Change-Id: If3e73fee093c6e2228950c61ec11050f90f9b770
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.