Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 1 | // |
| 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 Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 17 | cc_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 Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 27 | cc_test { |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 28 | name: "binderDriverInterfaceTest_IPC_32", |
| 29 | srcs: ["binderDriverInterfaceTest.cpp"], |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 30 | defaults: ["binder_test_defaults"], |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 31 | compile_multilib: "32", |
| 32 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 33 | } |
| 34 | |
| 35 | cc_test { |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 36 | product_variables: { |
| 37 | binder32bit: { |
| 38 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 39 | }, |
| 40 | }, |
| 41 | |
| 42 | name: "binderDriverInterfaceTest", |
| 43 | srcs: ["binderDriverInterfaceTest.cpp"], |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 44 | defaults: ["binder_test_defaults"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | cc_test { |
Robert Quattlebaum | 6316f5b | 2017-01-04 13:25:14 -0800 | [diff] [blame] | 48 | name: "binderValueTypeTest", |
| 49 | srcs: ["binderValueTypeTest.cpp"], |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 50 | defaults: ["binder_test_defaults"], |
Robert Quattlebaum | 6316f5b | 2017-01-04 13:25:14 -0800 | [diff] [blame] | 51 | shared_libs: [ |
| 52 | "libbinder", |
| 53 | "libutils", |
| 54 | ], |
| 55 | } |
| 56 | |
| 57 | cc_test { |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 58 | name: "binderLibTest_IPC_32", |
| 59 | srcs: ["binderLibTest.cpp"], |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 60 | defaults: ["binder_test_defaults"], |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 61 | shared_libs: [ |
| 62 | "libbinder", |
| 63 | "libutils", |
| 64 | ], |
| 65 | compile_multilib: "32", |
| 66 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 67 | } |
| 68 | |
| 69 | cc_test { |
| 70 | product_variables: { |
| 71 | binder32bit: { |
| 72 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 73 | }, |
| 74 | }, |
| 75 | |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 76 | defaults: ["binder_test_defaults"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 77 | name: "binderLibTest", |
| 78 | srcs: ["binderLibTest.cpp"], |
| 79 | shared_libs: [ |
| 80 | "libbinder", |
| 81 | "libutils", |
| 82 | ], |
| 83 | } |
| 84 | |
| 85 | cc_test { |
| 86 | name: "binderThroughputTest", |
| 87 | srcs: ["binderThroughputTest.cpp"], |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 88 | defaults: ["binder_test_defaults"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 89 | shared_libs: [ |
| 90 | "libbinder", |
| 91 | "libutils", |
| 92 | ], |
| 93 | clang: true, |
| 94 | cflags: [ |
| 95 | "-g", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 96 | "-Wno-missing-field-initializers", |
| 97 | "-Wno-sign-compare", |
| 98 | "-O3", |
| 99 | ], |
| 100 | } |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 101 | |
| 102 | cc_test { |
| 103 | name: "binderTextOutputTest", |
| 104 | srcs: ["binderTextOutputTest.cpp"], |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 105 | defaults: ["binder_test_defaults"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 106 | shared_libs: [ |
| 107 | "libbinder", |
| 108 | "libutils", |
| 109 | "libbase", |
| 110 | ], |
| 111 | } |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 112 | |
| 113 | cc_test { |
| 114 | name: "schd-dbg", |
| 115 | srcs: ["schd-dbg.cpp"], |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 116 | defaults: ["binder_test_defaults"], |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 117 | shared_libs: [ |
| 118 | "libbinder", |
| 119 | "libutils", |
| 120 | "libbase", |
| 121 | ], |
| 122 | } |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 123 | |
| 124 | cc_test { |
| 125 | name: "binderSafeInterfaceTest", |
| 126 | srcs: ["binderSafeInterfaceTest.cpp"], |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 127 | defaults: ["binder_test_defaults"], |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 128 | |
| 129 | cppflags: [ |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 130 | "-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 Stoza | 2537db7 | 2017-04-07 16:32:38 -0700 | [diff] [blame] | 143 | "libcutils", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 144 | "liblog", |
| 145 | "libutils", |
| 146 | ], |
| 147 | } |