blob: 3071408540fabf452c05ad1093d236a640587aff [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
17cc_test {
Hsin-Yi Chen69295752017-06-07 18:05:05 +080018 name: "binderDriverInterfaceTest_IPC_32",
19 srcs: ["binderDriverInterfaceTest.cpp"],
20 compile_multilib: "32",
21 cflags: ["-DBINDER_IPC_32BIT=1"],
22}
23
24cc_test {
Dan Willemsen59e086f2016-07-25 17:13:45 -070025 product_variables: {
26 binder32bit: {
27 cflags: ["-DBINDER_IPC_32BIT=1"],
28 },
29 },
30
31 name: "binderDriverInterfaceTest",
32 srcs: ["binderDriverInterfaceTest.cpp"],
33}
34
35cc_test {
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080036 name: "binderValueTypeTest",
37 srcs: ["binderValueTypeTest.cpp"],
38 shared_libs: [
39 "libbinder",
40 "libutils",
41 ],
42}
43
44cc_test {
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080045 name: "binderLibTest_IPC_32",
46 srcs: ["binderLibTest.cpp"],
47 shared_libs: [
48 "libbinder",
49 "libutils",
50 ],
51 compile_multilib: "32",
52 cflags: ["-DBINDER_IPC_32BIT=1"],
53}
54
55cc_test {
56 product_variables: {
57 binder32bit: {
58 cflags: ["-DBINDER_IPC_32BIT=1"],
59 },
60 },
61
Dan Willemsen59e086f2016-07-25 17:13:45 -070062 name: "binderLibTest",
63 srcs: ["binderLibTest.cpp"],
64 shared_libs: [
65 "libbinder",
66 "libutils",
67 ],
68}
69
70cc_test {
71 name: "binderThroughputTest",
72 srcs: ["binderThroughputTest.cpp"],
73 shared_libs: [
74 "libbinder",
75 "libutils",
76 ],
77 clang: true,
78 cflags: [
79 "-g",
80 "-Wall",
81 "-Werror",
Dan Willemsen59e086f2016-07-25 17:13:45 -070082 "-Wno-missing-field-initializers",
83 "-Wno-sign-compare",
84 "-O3",
85 ],
86}
Wei Wang78f2a372016-10-20 23:18:17 -070087
88cc_test {
89 name: "binderTextOutputTest",
90 srcs: ["binderTextOutputTest.cpp"],
91 shared_libs: [
92 "libbinder",
93 "libutils",
94 "libbase",
95 ],
96}
Howard Chenc135dbc2017-03-25 17:12:59 +080097
98cc_test {
99 name: "schd-dbg",
100 srcs: ["schd-dbg.cpp"],
101 shared_libs: [
102 "libbinder",
103 "libutils",
104 "libbase",
105 ],
106}
Dan Stozad630e522016-12-01 15:16:31 -0800107
108cc_test {
109 name: "binderSafeInterfaceTest",
110 srcs: ["binderSafeInterfaceTest.cpp"],
111
112 cppflags: [
113 "-Werror",
114 "-Weverything",
115 "-Wno-c++98-compat",
116 "-Wno-c++98-compat-pedantic",
117 "-Wno-global-constructors",
118 "-Wno-padded",
119 "-Wno-weak-vtables",
120 ],
121
122 cpp_std: "experimental",
123 gnu_extensions: false,
124
125 shared_libs: [
126 "libbinder",
Dan Stoza2537db72017-04-07 16:32:38 -0700127 "libcutils",
Dan Stozad630e522016-12-01 15:16:31 -0800128 "liblog",
129 "libutils",
130 ],
131}