commit | 6cb2be0732c5e620e8e14f9a61ea5362974b42db | [log] [tgz] |
---|---|---|
author | Hungming Chen <nuccachen@google.com> | Fri Mar 06 15:25:25 2020 +0800 |
committer | Nucca Chen <nuccachen@google.com> | Tue Mar 10 09:54:23 2020 +0000 |
tree | ae6788a0d2400ffe15da946310e64c689ead2ee6 | |
parent | 427364ce00be4e893542f08c2cb62030a1a435d7 [diff] |
resolv_gold_test: use static linked libprotobuf-cpp-lite Currently, resolv gold test is using dynamic linked libprotobuf-cpp-full because it needs class TextFormat to convert the human readable protobuf text file to protobuf object. Unfortunately, the libprotobuf-cpp-full raises a linked library compatibility issue and it is prohibited to be static linked. The resolv gold test built from R can't run on Q device. An alternative way is that uses static linked libprotobuf-cpp-lite and pre-convert all pb text files into pb binary files. It helps the test get rid of libprotobuf-cpp-full because class TextFormat is not required any more. Bug: 145176964 Test: atest Change-Id: Id35bd71eb427c09af47ab871e1ad3bef1d1eb9a1
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.