diff options
author | 2018-04-03 15:10:34 -0700 | |
---|---|---|
committer | 2018-04-04 16:29:55 -0700 | |
commit | ad3e6e5d5a9746bfe9d4600172798c9d6309b149 (patch) | |
tree | 44c6eb169ebdb86f7bc9e73d8b9f3d97d96f2d4e /libs/protoutil/Android.bp | |
parent | 3275d9a004a45f4a2a9e30bbe7c662955ebdb9ff (diff) |
This cl tries to fix cts tests IncidentdTest
1. Disable BatteryType section which is device-specific
2. Make timeout longer since meminfo section timedout in test
3. make some negative values sint
4. varint can be 64 bits, there is a bug implicitly convert it to 32
which loses values.
5. Found another bug which failed to read 64 bits varint, create a
native test to make sure it works.
Bug: 77291057
Test: atest CtsIncidentHostTestCases:com.android.server.cts.IncidentdTest
Change-Id: I04cc730741f7901f37ac57a11af7777d57118a23
Diffstat (limited to 'libs/protoutil/Android.bp')
-rw-r--r-- | libs/protoutil/Android.bp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/protoutil/Android.bp b/libs/protoutil/Android.bp index 4f1d2d5a4fe5..7ad83ca79695 100644 --- a/libs/protoutil/Android.bp +++ b/libs/protoutil/Android.bp @@ -37,3 +37,20 @@ cc_library { "liblog", ], } + +cc_test { + name: "libprotoutil_test", + + srcs: [ + "tests/EncodedBuffer_test.cpp", + ], + + shared_libs: [ + "libcutils", + "libprotoutil", + ], + + static_libs: [ + "libgmock", + ], +} |