summaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp53
1 files changed, 53 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index fcb2851..50fce3c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -154,3 +154,56 @@ cc_binary {
"-Wunused-parameter",
],
}
+
+cc_defaults {
+ name: "aidl_test_defaults",
+ cflags: [
+ "-Wall",
+ "-Wextra",
+ "-Werror",
+ "-Wunused-parameter",
+ ],
+ shared_libs: [
+ "libbase",
+ "libbinder",
+ "liblog",
+ "libutils",
+ ],
+}
+
+cc_library_shared {
+ name: "libaidl-integration-test",
+ defaults: ["aidl_test_defaults"],
+ aidl: {
+ export_aidl_headers: true,
+ local_include_dirs: ["tests"],
+ include_dirs: ["frameworks/native/aidl/binder"],
+ },
+ srcs: [
+ "tests/android/aidl/tests/ITestService.aidl",
+ "tests/android/aidl/tests/INamedCallback.aidl",
+ "tests/simple_parcelable.cpp",
+ ],
+}
+
+cc_binary {
+ name: "aidl_test_service",
+ defaults: ["aidl_test_defaults"],
+ shared_libs: ["libaidl-integration-test"],
+ srcs: ["tests/aidl_test_service.cpp"],
+}
+
+cc_binary {
+ name: "aidl_test_client",
+ defaults: ["aidl_test_defaults"],
+ shared_libs: ["libaidl-integration-test"],
+ srcs: [
+ "tests/aidl_test_client.cpp",
+ "tests/aidl_test_client_file_descriptors.cpp",
+ "tests/aidl_test_client_parcelables.cpp",
+ "tests/aidl_test_client_nullables.cpp",
+ "tests/aidl_test_client_primitives.cpp",
+ "tests/aidl_test_client_utf8_strings.cpp",
+ "tests/aidl_test_client_service_exceptions.cpp",
+ ],
+}