History log of /system/tools/aidl/tests/aidl_test_client.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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_client.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_client.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_client.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_client.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_client.cpp
546d27d8776c91d0769202b82d9d81405e8ab5d7 04-Dec-2015 Samuel Tan <samueltan@google.com> aidl: tests: split up aidl_test_client.cpp

Split aidl_test_client functions up into separate files that
share functions in the android::aidl::tests::client namespace.
Functions testing primitives go to aidl_test_client_primitives.cpp,
functions that test parcelables go to aidl_test_client_parcelables.cpp,
and functions that test file descriptors go to
aidl_test_client_file_descriptors.cpp.

BUG: 26009326
Change-Id: I3f811340aeefec091802c544aaaecad135413b4b
TEST: aidl builds successfully
TEST: system/tools/aidl/tests/integration-test.py passes
/system/tools/aidl/tests/aidl_test_client.cpp
d40e2fed2c19850d53f1620322ac5cbca2c0e245 24-Nov-2015 Casey Dahlin <sadmac@google.com> Introduce integer constants

We can now declare a "const int" variable in an AIDL interface, in
addition to methods. These constants will become static members of the
interface/base class in the generated code.

Change-Id: I6b690ecbbe2acae37abb106510e42283f0753f26
Test: Unit and integration tests updated and pass
Bug: 23600061
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/tests/aidl_test_client.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_client.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_client.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_client.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_client.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_client.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_client.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_client.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_client.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_client.cpp