History log of /system/tools/aidl/tests/aidl_test_service.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
671bc9c62855ab1134466cf5371e773d222706c2 09-Feb-2016 Casey Dahlin <sadmac@google.com> Use vector<uint8_t> for byte[]

Most C++ devs want this, and it's more compatible with the rest of
brillo.

Change-Id: Ifed607f7c463651b11b45ce796de61bbc578aee5
Test: Unit and integration tests pass
Bug: 27078230
/system/tools/aidl/tests/aidl_test_service.cpp
99d699bef10f2455931fdd46861a25742a8fd7ea 01-Feb-2016 Christopher Wiley <wiley@google.com> Add integration test for @utf8InCpp List<String>

Test @nullable support as well since we've never seen two
annotations at once before.

Bug: 26729450
Change-Id: If76d617980e1fda3e5efecc8410786295fe1da9f
Test: unit, integration tests pass
/system/tools/aidl/tests/aidl_test_service.cpp
dca2ecf2883771b4c895e52a9f07e2467d603f77 29-Jan-2016 Christopher Wiley <wiley@google.com> Add integration test support for @utf8InCpp

This patch adds validation of String and String[] marked with
@utf8InCpp.

While here, move everything but main() in aidl_test_service.cpp to an
anonymous namespace.

Bug: 26729450
Test: Integration, unittests continue to pass

Change-Id: Iab79bc23ed8a34168544425952afd2e29cdbe030
/system/tools/aidl/tests/aidl_test_service.cpp
fc465468a55047324dd5ecef9282ff41f3d8b542 08-Jan-2016 Casey Dahlin <sadmac@google.com> Move aidl_test_service Run function out of service class

This was discussed in relation to a previous CL. There was no reason for
this to be a method, and now it isn't.

Change-Id: I7fb975bdb74d6b94d6a1366209a8711b5fc98343
Test: Unit and integration tests pass
Bug: None
/system/tools/aidl/tests/aidl_test_service.cpp
c13bf96817473143f17d9c6f7e7ca6b98d18b341 06-Jan-2016 Todd Poynor <toddpoynor@google.com> aidl_test_service: binder service creation and registration fixups

Fixups for proper reference counting:
* Hold a strong pointer to the NativeService object.
* Pass that strong pointer to addService().

Bug: None
Change-Id: I6a486878f8bbb929d0c937610d3eaef9e84ca250
/system/tools/aidl/tests/aidl_test_service.cpp
88c320053c5c0f9c45a5700c89b23a9c0c745369 04-Dec-2015 Samuel Tan <samueltan@google.com> aidl: tests: add PersistableBundle integration tests

Add integration tests for PersistableBundle. Since the aidl
generator currently does not support out params for
PersistableBundles (b/25998882), we do not test for this.

Also:
- Rename ConfirmParcelables() to ConfirmSimpleParcelables().
This makes the addition of ConfirmPersistableBundles() less
confusing, since PersistableBundles are also Parcelables.
- Minor formatting changes in aidl_test_service.cpp.

BUG: 25815410
Change-Id: Ib20f6ecf47dec556929b3fe30e45aa7e410d9054
TEST: aidl builds successfully.
TEST: integration-test.py passes.
/system/tools/aidl/tests/aidl_test_service.cpp
57dbe24bcb8f4509a876e8445c78d9504d7e616a 04-Dec-2015 Casey Dahlin <sadmac@google.com> Add support for @nullable annotation

Using this annotation will now cause C++ types to be wrapped in
unique_ptr, and by extension be capable of handling null values.

Support extends to all arrays, Strings, Lists, and Parcelables.

Change-Id: I148a3666279c2badcba097b8925e55f8fcecb9c2
Test: Unit tests pass
Bug: 25969194
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/tests/aidl_test_service.cpp
7621d4d0592fbf3fb396d0c092a8e41c3c8215cd 29-Nov-2015 Christopher Wiley <wiley@google.com> Integration test for application specific exceptions

Bug: 25800533
Test: Integration tests pass

Change-Id: Iaf742a29509b1280c5db7c7231a4fac538a07574
/system/tools/aidl/tests/aidl_test_service.cpp
a4ba4b6868977b26b471860c038c7bbda4470946 03-Nov-2015 Casey Dahlin <sadmac@google.com> Add support for file descriptors

Change-Id: I172cbb02bbb034ca5d41b1958674b22bb8a7f93e
Test: Expanded unit tests
Bug: 25242023
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/tests/aidl_test_service.cpp
95d44b08a267e695d1f5ee7c61286fddfb3b83e0 19-Nov-2015 Christopher Wiley <wiley@google.com> Integration test for parcelables

This test demonstrates the equivalence of C++ and Java parcelable
handling from an AIDL/libbinder perspective.

Bug: 23600712
Test: These integration tests pass.

Change-Id: I49d9d9bd1baaa1c2c49b6d02a5bfeefc0a53612c
/system/tools/aidl/tests/aidl_test_service.cpp
433c8bbdfa1ee6db10b7f08d3c50eafd49ad2687 12-Nov-2015 Christopher Wiley <wiley@google.com> Implement error handling for C++ services

Bug: 25615695
Test: unit tests continue to pass.

Change-Id: I24f4f3a5a7b95438ab7daa707d2b4598b33b8302
/system/tools/aidl/tests/aidl_test_service.cpp
7ecd69f2cc3c31cf569840e9c2d53ed352328d18 03-Nov-2015 Casey Dahlin <sadmac@google.com> Support List<IBinder> type

Change-Id: Ia84cf258702b161f3e7857925b8c2be7b1dfd60e
Test: Expanded unit and integration tests pass
Bug: 24470786
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/tests/aidl_test_service.cpp
56c9bf3c4fb731d5557427667f13f963fa5ef0f7 30-Oct-2015 Christopher Wiley <wiley@google.com> Add support for List<String>

Bug: 24470786
Test: expanded unit tests pass, integration test passes

Change-Id: Ie85e43c04e214315f42a9f1ae83e6b4c67c2f081
/system/tools/aidl/tests/aidl_test_service.cpp
389781f56bb6b4363e9eb03acf915ba297f607d5 22-Oct-2015 Casey Dahlin <sadmac@google.com> Add support for passing binders in C++

Change-Id: I6f7003b4c320897bada8f225943a50825d6c26e7
Test: Unit tests (several new), Integration tests (several new)
Bug: 23600713
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/tests/aidl_test_service.cpp
47964b084c06ad3ab79040ce6586a15a3edca380 28-Oct-2015 Christopher Wiley <wiley@google.com> Remove erroneous override modifier in aidl_test_service.cpp

Bug: None
Test: Compiles, unittests pass

Change-Id: I7c5dc55f948e9b759b698e1d2896b3929e75fa8e
/system/tools/aidl/tests/aidl_test_service.cpp
8949f838b881fe52e8fc6be527ab25806f4cc4e6 27-Oct-2015 Christopher Wiley <wiley@google.com> Test that arrays work in integration test

Leave out checks for byte[] for now, because it requires some
non-trivial patches to libbinder.

Bug: 25241875
Test: integration tests and unittests pass

Change-Id: I8e0b3c9c84a309a224f0c1e9877634bffe052fcd
/system/tools/aidl/tests/aidl_test_service.cpp
b8e49a407e8648afb28ca9bad4bf8434224f0b18 27-Oct-2015 Christopher Wiley <wiley@google.com> Add PrimitiveType

Explicitly check if the type in question is a primitive and should be
passed by const reference. This makes it obvious that String16
instances are being passed by value.

Bug: 24470786
Test: unit tests, integration tests continue to pass

Change-Id: Ie822d89413aa8b87bc92765c73821edfcba4197c
/system/tools/aidl/tests/aidl_test_service.cpp
048b55eeb21d2171c203143da7e329dc85b8c0a0 27-Oct-2015 Chih-Hung Hsieh <chh@google.com> Fix trivial print format error.

* Use %zu for size_t values for both 32 and 64-bit modes.

Change-Id: Iee7227211272a45aaed544c7b14130e31c91b349
/system/tools/aidl/tests/aidl_test_service.cpp
d6130f24cfdc3ae1247c4ac290e3f282b34e7615 26-Oct-2015 Christopher Wiley <wiley@google.com> Integration test for all primitive types

Note that this does not test null references passed for strings from
Java. We'll address that in a separate CL.

Bug: 25241875
Test: unit tests, integration test passes

Change-Id: Id6f1820965b58d46393c34a0fa4988aac4107ce6
/system/tools/aidl/tests/aidl_test_service.cpp
521bb618fa16d0b88ae88b8dcd98b72e579f1ed4 22-Oct-2015 Christopher Wiley <wiley@google.com> android.os.IPingResponder -> android.aidl.tests.ITestService

Rename the aidl file and all references in the code to reflect that this
is the interface we're using in integration tests to validate our
runtime behavior.

Bug: 25159441
Test: Compiles, unittests pass

Change-Id: Ib31d33d87486fcc38b0812e772c6723d7f750cd6
/system/tools/aidl/tests/aidl_test_service.cpp
33ad81e306649cb769e02d10ccf77520b68c7742 21-Oct-2015 Christopher Wiley <wiley@google.com> Rename helloc and hellod to aidl_test_{client,server}

We'll use these binaries to confirm that generated code works correctly
on real Android devices.

Bug: 25159441
Test: script that runs these binaries confirms correctness

Change-Id: Ic9389ddb5bed42644021b77f1c43e4c04b75acab
/system/tools/aidl/tests/aidl_test_service.cpp