blob: 3e005c958ea79f31ab437deec3372b1477689fdc [file] [log] [blame]
Dan Willemsen59e086f2016-07-25 17:13:45 -07001//
2// Copyright (C) 2014 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
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070017cc_defaults {
18 name: "binder_test_defaults",
19 cflags: [
20 "-Wall",
21 "-Werror",
22 "-Wno-unused-private-field",
23 "-Wno-unused-variable",
24 ],
25}
26
Dan Willemsen59e086f2016-07-25 17:13:45 -070027cc_test {
Hsin-Yi Chen69295752017-06-07 18:05:05 +080028 name: "binderDriverInterfaceTest_IPC_32",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070029 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070030 srcs: ["binderDriverInterfaceTest.cpp"],
Hsin-Yi Chen69295752017-06-07 18:05:05 +080031 compile_multilib: "32",
32 cflags: ["-DBINDER_IPC_32BIT=1"],
33}
34
35cc_test {
Steven Morelandc7a30c82019-07-10 13:12:23 -070036 name: "binderDriverInterfaceTest",
37 defaults: ["binder_test_defaults"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070038 product_variables: {
39 binder32bit: {
40 cflags: ["-DBINDER_IPC_32BIT=1"],
41 },
42 },
43
Dan Willemsen59e086f2016-07-25 17:13:45 -070044 srcs: ["binderDriverInterfaceTest.cpp"],
45}
46
47cc_test {
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080048 name: "binderValueTypeTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070049 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070050 srcs: ["binderValueTypeTest.cpp"],
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080051 shared_libs: [
52 "libbinder",
53 "libutils",
54 ],
55}
56
57cc_test {
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080058 name: "binderLibTest_IPC_32",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070059 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070060 srcs: ["binderLibTest.cpp"],
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080061 shared_libs: [
62 "libbinder",
63 "libutils",
64 ],
65 compile_multilib: "32",
66 cflags: ["-DBINDER_IPC_32BIT=1"],
67}
68
69cc_test {
Steven Morelandc7a30c82019-07-10 13:12:23 -070070 name: "binderLibTest",
71 defaults: ["binder_test_defaults"],
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080072 product_variables: {
73 binder32bit: {
74 cflags: ["-DBINDER_IPC_32BIT=1"],
75 },
76 },
77
Dan Willemsen59e086f2016-07-25 17:13:45 -070078 srcs: ["binderLibTest.cpp"],
79 shared_libs: [
80 "libbinder",
81 "libutils",
82 ],
83}
84
85cc_test {
86 name: "binderThroughputTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070087 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070088 srcs: ["binderThroughputTest.cpp"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070089 shared_libs: [
90 "libbinder",
91 "libutils",
92 ],
93 clang: true,
94 cflags: [
95 "-g",
Dan Willemsen59e086f2016-07-25 17:13:45 -070096 "-Wno-missing-field-initializers",
97 "-Wno-sign-compare",
98 "-O3",
99 ],
100}
Wei Wang78f2a372016-10-20 23:18:17 -0700101
102cc_test {
103 name: "binderTextOutputTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700104 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700105 srcs: ["binderTextOutputTest.cpp"],
Wei Wang78f2a372016-10-20 23:18:17 -0700106 shared_libs: [
107 "libbinder",
108 "libutils",
109 "libbase",
110 ],
111}
Howard Chenc135dbc2017-03-25 17:12:59 +0800112
113cc_test {
114 name: "schd-dbg",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700115 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700116 srcs: ["schd-dbg.cpp"],
Howard Chenc135dbc2017-03-25 17:12:59 +0800117 shared_libs: [
118 "libbinder",
119 "libutils",
120 "libbase",
121 ],
122}
Dan Stozad630e522016-12-01 15:16:31 -0800123
124cc_test {
125 name: "binderSafeInterfaceTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700126 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700127 srcs: ["binderSafeInterfaceTest.cpp"],
Dan Stozad630e522016-12-01 15:16:31 -0800128
129 cppflags: [
Dan Stozad630e522016-12-01 15:16:31 -0800130 "-Weverything",
131 "-Wno-c++98-compat",
132 "-Wno-c++98-compat-pedantic",
133 "-Wno-global-constructors",
134 "-Wno-padded",
135 "-Wno-weak-vtables",
136 ],
137
138 cpp_std: "experimental",
139 gnu_extensions: false,
140
141 shared_libs: [
142 "libbinder",
Dan Stoza2537db72017-04-07 16:32:38 -0700143 "libcutils",
Dan Stozad630e522016-12-01 15:16:31 -0800144 "liblog",
145 "libutils",
146 ],
147}