summaryrefslogtreecommitdiff
path: root/libjsonpb
AgeCommit message (Collapse)Author
2024-03-15Fix incompatibilities with Protobuf 22.x.Krzysztof Kosiński
- Add missing headers. - Modify libjsonpb to be compatible with std::string_view usage in Protobuf generated code. Bug: 329747255 Test: presubmit Change-Id: Ibeeb7b7dac66a7fb0189a1d13b36a853d3fcd3d4
2024-02-02Migrate Test Targets to New Android Ownership ModelAditya Choudhary
This CL is created as a best effort to migrate test targets to the new Android ownership model. It is based on historical data from repository history and insights from git blame. Given the nature of this effort, there may be instances of incorrect attribution. If you find incorrect or unnecessary attribution in this CL, please create a new CL to fix that. For detailed guidelines and further information on the migration please refer to the link below, go/new-android-ownership-model Bug: 304529413 Test: N/A Change-Id: I4d1f107d18f767c06f88da57c1bd7dad2b1230a1
2022-09-25Use message() instead of error_message().Krzysztof Kosiński
The error_message() method is removed in newer releases of the protobuf library. Bug: 203713560 Test: presubmit Change-Id: Id0141b9c45ff59c82714c36c3edbfc722c99c683
2021-03-03Remove unused errorMessageHaibo Huang
Change-Id: Ia1f90e1936ca37f1157d22a57b99cb823a4c8256
2021-03-02[libjsonpb] Use new jsoncpp APIHaibo Huang
Reader / StyledWriter are deprecated upstream Bug: 170642246 Change-Id: I530444aa70df939239caa2be9a3197d54bcb6526
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: alloc-stress/Android.bp app-launcher/Android.bp boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp brillo_config/Android.mk checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioblame/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp partition_tools/aidl/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp pssbench/Android.mk puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp zram-perf/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ia559848af903a7b6746d9b12b7de8b83bc57f99d
2021-02-16Revert "[LSC] Add LOCAL_LICENSE_KINDS to system/extras"Bob Badour
This reverts commit 044d055c842a5750359ed71dfe50a6a4bf5f4cc3. Reason for revert: Needs to run as multiple roots. Change-Id: I8e06e7eb19e0f634f52fbd8a1c6662f43e347dd5
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Added legacy_notice to: alloc-stress/Android.bp app-launcher/Android.bp brillo_config/Android.mk ioblame/Android.bp partition_tools/aidl/Android.bp pssbench/Android.mk zram-perf/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ie7c022a4d7f828a89d0cda663684a497af37006e
2021-02-04Remove TEST_MAPPING entry based on go/a-unit-tests updateJulien Desprez
cc_test_host now all run in presubmit without any need for explicit TEST_MAPPING Test: presubmit Bug: 177450457 Change-Id: Id1ebb780477e03265edc3eddc92784d4facbd1e1
2020-10-26libjsonpb: format filesThiébaud Weksteen
Format *.cpp according to the new .clang-format-2. The following command was used to generate this change: $ find . \( -name \*.cpp -o -name \*.h \) -exec clang-format \ --style=file -i {} \; Test: mm Bug: 171699326 Change-Id: I7f1199fd8a3431500484f7373ccb5f1583a00956
2020-07-23Update language to comply with Android’s inclusive language guidanceXevi Miro Bruix
See https://source.android.com/setup/contribute/respectful-code for reference inclusivefixit Bug: 161896447 Test: Modified documentation Change-Id: I470977d509be623bd099369e082f0ed5079c098c
2019-11-08Fix build with new googletestHaibo Huang
The new googletest requires prefix to be non-empty. Change-Id: Iacd96a6e2fcfb2193c7627212e9e710fb655d6d9
2019-09-05libjsonpb: fix tests for new protobuf versionYifan Hong
Bug: 117607748 Test: atest --host libjsonpbverify_test Change-Id: I5ce89c330d769fac10d8092734a37c26694587a2 Merged-In: I5ce89c330d769fac10d8092734a37c26694587a2
2019-09-05Adapt to google::protobuf::int64 type change and scoped_ptr removalColin Cross
Protobuf 3.9.1 redefines google::protobuf::int64 from long long to int64_t, which is sometimes long and sometimes long long. Use PRId64 to print it. scoped_ptr has been removed, use std::unique_ptr instead. Bug: 117607748 Test: m checkbuild Change-Id: Idfcaba262c27cf2b895a0a6ded8394c8465547e8 Merged-In: Idfcaba262c27cf2b895a0a6ded8394c8465547e8
2019-03-14libjsonverify: allow option for missing files.Yifan Hong
When 'optional' is set to true: - If file is missing, test pass (with logs) - If file is present but empty, test fails - If file is present but in wrong format, test fails Test: vts_processgroup_validate_test Bug: 123664216 Change-Id: Ib6640c3c1ce159c5cac068042af564d98c9bbb1f
2019-02-14Add libjsonpbverify.Yifan Hong
- libjsonpbverify is a helper library that a gtest can link against when checking JSON files against their protobuf schema. - Add unittests to ensure these validation functions are correct. (libjsonpbverify_test) - Add tests to mitigate discrepancies of behavior between libjsoncpp and libprocessgroup. (libjsonpbverify_test) - Add tests to impose additional restrictions on proto3 files when using them as JSON schema. Test: libjsonpbverify_test Bug: 123664216 Change-Id: I1e6257c9a25fd8d10fad103f3b74f7e1c6fad8a6
2019-02-14Add libjsonpbparse.Yifan Hong
- libjsonpbparse is intended to be used in client parsing code, but due to libprotobuf versions it can't be used yet. Hence, libprocessgroup continue to use libjsoncpp. Test: builds Bug: 123664216 Change-Id: I01b08a0e6ba1110f2f3398ddde9333622153dc9a