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