summaryrefslogtreecommitdiff
path: root/libs/binder/tests/binderParcelUnitTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Binder unique_fdTomasz Wasilczyk2023-11-171-1/+1
| | | | | | Test: mma Bug: 302723053 Change-Id: I52f14cadb027b3f854946d5315dce3d23aa21b19
* binderUnitTest: Parcel::appendFromSteven Moreland2023-06-161-0/+161
| | | | | | | | | | Coverage from this exists elsewhere and in Java, but it's helpful to have these tests easily accessible when working on C++ code here. Bug: 287093457 Test: binderUnitTest Change-Id: If393c90f972cacff36e1a04614635c1597d419f4
* libbinder: service driver fuzzes nested ifacesSteven Moreland2022-03-241-0/+37
| | | | | | | | | | | | | | We: - make a binder call - get all of the FDs and binder objects from this call - also fuzz these additional binder objects and use them and the FDs to construct parcels Bug: 224646709 Fixes: 225083088 Test: android.hardware.vibrator-service.example_fuzzer Test: binder_parcel_fuzzer Change-Id: I3a1594c5777d7dfd4776b751d6f9054428655302
* libbinder: added enforceNoDataAvail()Jooyung Han2021-12-241-1/+16
| | | | | | | | | | enforceNoDataAvail() verifies that there's no bytes left to be read on the Parcel. Bug: 208509444 Test: atest binderUnitTest Test: binder_parcel_fuzzer Change-Id: I469c8778fa54f3db27f00a9df8db668a0c4c76bc
* binderUnitTests: getOpenAshmemSizeSteven Moreland2021-10-071-1/+17
| | | | | | | | | In preparation for changing the implementation of this API, it has no tests! Bug: 195752513 Test: binderUnitTest Change-Id: I4207f636b61dabbc81c5e188aa5cde0d5d1ba6ee
* Merge changes Ib1c28c94,Id3485a2a,If5ad5acf,Idc9054bd,Ie4e7e25d am: ↵Steven Moreland2021-06-281-28/+65
| | | | | | | | 756621f54d am: aae80e18c3 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1749081 Change-Id: I84f8e44f1142d3b43e2c12e4c926fe1f4dd3400a
* rename binderParcelTest binderUnitTestSteven Moreland2021-06-251-0/+111
This is a host test, and I would like to have more tests here which can also work on the host. Bug: 192023359 Test: binderUnitTest Change-Id: Ie4e7e25d99fd87ef81b1da4345fc9dfe1cc2da6d