commit | 61f796b5bed91ef78783383cae34c5e06dab03d2 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu May 21 00:57:49 2020 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Thu May 21 23:01:42 2020 +0900 |
tree | f1a3ecb8809aeccaa3b578bd474ebe60eccb93cd | |
parent | 511b6d4f1fb2cc611fb397bb212aee2120f43029 [diff] |
Test for unexpected prefix updates in SetAndClearNat64Prefix. Add code to check that no onNat64PrefixEvent calls were sent by the resolver other than the ones expected by the test. This adds a simple counter of unexpected events to the test DnsMetricsListener. It does not offer the ability to check which events occur and in what order, but it does at least not require adding timeouts to ensure that the unexpected events do not occur. Bug: 156914456 Test: test-only change Change-Id: Ic86f93161293b4ad5366fd9cab2e26d4a6f636c4
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.