blob: 1c5dba3736742440c8bf5e45864d3f72cab89abe [file] [log] [blame]
Steven Moreland2e87adc2018-08-20 19:47:00 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Steven Moreland2e87adc2018-08-20 19:47:00 -070017cc_defaults {
18 name: "test_libbinder_ndk_defaults",
19 shared_libs: [
20 "libbase",
21 ],
22 strip: {
23 none: true,
24 },
25 cflags: [
26 "-O0",
27 "-g",
28 ],
29}
30
31cc_library_static {
32 name: "test_libbinder_ndk_library",
33 defaults: ["test_libbinder_ndk_defaults"],
34 export_include_dirs: ["include"],
35 shared_libs: ["libbinder_ndk"],
36 export_shared_lib_headers: ["libbinder_ndk"],
37 srcs: ["iface.cpp"],
38}
39
40cc_defaults {
41 name: "test_libbinder_ndk_test_defaults",
42 defaults: ["test_libbinder_ndk_defaults"],
43 shared_libs: [
Jooyung Han1f65e772019-03-07 16:55:04 +090044 "libandroid_runtime_lazy",
Steven Moreland2e87adc2018-08-20 19:47:00 -070045 "libbase",
46 "libbinder",
Steven Morelanda9fff712019-08-08 16:00:12 -070047 "libbinder_ndk",
Steven Moreland2e87adc2018-08-20 19:47:00 -070048 "libutils",
49 ],
50 static_libs: [
Steven Moreland2e87adc2018-08-20 19:47:00 -070051 "test_libbinder_ndk_library",
52 ],
53}
54
Steven Moreland507547f2018-11-06 15:58:05 -080055// This test is a unit test of the low-level API that is presented here,
56// specifically the parts which are outside of the NDK. Actual users should
57// also instead use AIDL to generate these stubs. See android.binder.cts.
Steven Moreland2e87adc2018-08-20 19:47:00 -070058cc_test {
59 name: "libbinder_ndk_test_client",
60 defaults: ["test_libbinder_ndk_test_defaults"],
61 srcs: ["main_client.cpp"],
62}
63
64cc_test {
65 name: "libbinder_ndk_test_server",
66 defaults: ["test_libbinder_ndk_test_defaults"],
67 srcs: ["main_server.cpp"],
68 gtest: false,
69}
Steven Morelandd2017342019-07-22 14:30:11 -070070
71cc_test {
72 name: "binderVendorDoubleLoadTest",
73 vendor: true,
74 srcs: [
75 "binderVendorDoubleLoadTest.cpp",
76 ],
77 static_libs: [
78 "IBinderVendorDoubleLoadTest-cpp",
79 "IBinderVendorDoubleLoadTest-ndk_platform",
80 ],
81 shared_libs: [
82 "libbase",
83 "libbinder",
84 "libbinder_ndk",
85 "libutils",
86 ],
87 test_suites: ["device-tests"],
88}
89
90aidl_interface {
91 name: "IBinderVendorDoubleLoadTest",
92 // TODO(b/119771576): only vendor is needed
93 vendor_available: true,
94 srcs: [
95 "IBinderVendorDoubleLoadTest.aidl",
96 ],
97}