commit | f9cd4ebcd935f346bfdad8c4866753ec0e5215bc | [log] [tgz] |
---|---|---|
author | Hungming Chen <nuccachen@google.com> | Tue Aug 06 20:55:28 2019 +0900 |
committer | Hungming Chen <nuccachen@google.com> | Wed Oct 30 16:18:19 2019 +0800 |
tree | 69457fff94f9e72c6d06bc375508e6d3e2add71c | |
parent | effead990e4cbc5d2f257214aaf19650494566da [diff] |
resolv_gold_test: Initial release The target is that capturing packets from real life network and use them to do unit test. It makes that unit test could have more testing packets from real device usage. In the initial release, the DNS responder has been added the capability for responding predefined packets by a registered query-response packet mapping. Test: cd packages/modules/DnsResolver && atest Change-Id: Ib524e978ba9464d521e72878ae723b573888b38f
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.