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 | |
Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "frameworks_native_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["frameworks_native_license"], |
| 24 | } |
| 25 | |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "binder_test_defaults", |
| 28 | cflags: [ |
| 29 | "-Wall", |
| 30 | "-Werror", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 31 | ], |
| 32 | } |
| 33 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 34 | cc_test { |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 35 | name: "binderDriverInterfaceTest_IPC_32", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 36 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 37 | srcs: ["binderDriverInterfaceTest.cpp"], |
Yifan Hong | 4e419d8 | 2021-04-26 11:32:56 -0700 | [diff] [blame] | 38 | header_libs: ["libbinder_headers"], |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 39 | compile_multilib: "32", |
Steven Moreland | f9f3de2 | 2020-05-06 17:14:39 -0700 | [diff] [blame] | 40 | multilib: { lib32: { suffix: "" } }, |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 41 | cflags: ["-DBINDER_IPC_32BIT=1"], |
Steven Moreland | f9f3de2 | 2020-05-06 17:14:39 -0700 | [diff] [blame] | 42 | test_suites: ["vts"], |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | cc_test { |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 46 | name: "binderDriverInterfaceTest", |
| 47 | defaults: ["binder_test_defaults"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 48 | product_variables: { |
| 49 | binder32bit: { |
| 50 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 51 | }, |
| 52 | }, |
Yifan Hong | 4e419d8 | 2021-04-26 11:32:56 -0700 | [diff] [blame] | 53 | header_libs: ["libbinder_headers"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 54 | srcs: ["binderDriverInterfaceTest.cpp"], |
Dan Shi | eb25b67 | 2020-03-26 11:43:04 -0700 | [diff] [blame] | 55 | test_suites: ["device-tests", "vts"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | cc_test { |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 59 | name: "binderLibTest_IPC_32", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 60 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 61 | srcs: ["binderLibTest.cpp"], |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 62 | shared_libs: [ |
Yifan Hong | 84bedeb | 2021-04-21 21:37:17 -0700 | [diff] [blame] | 63 | "libbase", |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 64 | "libbinder", |
Yifan Hong | 8b89085 | 2021-06-10 13:44:09 -0700 | [diff] [blame] | 65 | "liblog", |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 66 | "libutils", |
| 67 | ], |
Yifan Hong | bbd2a0d | 2021-05-07 22:12:23 -0700 | [diff] [blame] | 68 | static_libs: [ |
| 69 | "libgmock", |
| 70 | ], |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 71 | compile_multilib: "32", |
Steven Moreland | f9f3de2 | 2020-05-06 17:14:39 -0700 | [diff] [blame] | 72 | multilib: { lib32: { suffix: "" } }, |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 73 | cflags: ["-DBINDER_IPC_32BIT=1"], |
Steven Moreland | f9f3de2 | 2020-05-06 17:14:39 -0700 | [diff] [blame] | 74 | test_suites: ["vts"], |
| 75 | require_root: true, |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 76 | } |
| 77 | |
Steven Moreland | cefba61 | 2020-11-05 22:57:06 +0000 | [diff] [blame] | 78 | // unit test only, which can run on host and doesn't use /dev/binder |
| 79 | cc_test { |
Steven Moreland | 2831860 | 2021-06-25 01:16:29 +0000 | [diff] [blame] | 80 | name: "binderUnitTest", |
Steven Moreland | cefba61 | 2020-11-05 22:57:06 +0000 | [diff] [blame] | 81 | host_supported: true, |
| 82 | target: { |
| 83 | darwin: { |
| 84 | enabled: false, |
| 85 | }, |
| 86 | }, |
Steven Moreland | 63a2d51 | 2021-06-25 01:10:15 +0000 | [diff] [blame] | 87 | srcs: ["binderParcelUnitTest.cpp", "binderBinderUnitTest.cpp"], |
Steven Moreland | cefba61 | 2020-11-05 22:57:06 +0000 | [diff] [blame] | 88 | shared_libs: [ |
| 89 | "libbinder", |
| 90 | "libutils", |
| 91 | ], |
| 92 | test_suites: ["general-tests"], |
| 93 | } |
| 94 | |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 95 | cc_test { |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 96 | name: "binderLibTest", |
| 97 | defaults: ["binder_test_defaults"], |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 98 | product_variables: { |
| 99 | binder32bit: { |
| 100 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 101 | }, |
| 102 | }, |
| 103 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 104 | srcs: ["binderLibTest.cpp"], |
| 105 | shared_libs: [ |
Yifan Hong | 84bedeb | 2021-04-21 21:37:17 -0700 | [diff] [blame] | 106 | "libbase", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 107 | "libbinder", |
Yifan Hong | 8b89085 | 2021-06-10 13:44:09 -0700 | [diff] [blame] | 108 | "liblog", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 109 | "libutils", |
| 110 | ], |
Yifan Hong | bbd2a0d | 2021-05-07 22:12:23 -0700 | [diff] [blame] | 111 | static_libs: [ |
| 112 | "libgmock", |
| 113 | ], |
Dan Shi | eb25b67 | 2020-03-26 11:43:04 -0700 | [diff] [blame] | 114 | test_suites: ["device-tests", "vts"], |
Dan Shi | 80ada59 | 2019-09-13 09:17:17 -0700 | [diff] [blame] | 115 | require_root: true, |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 116 | } |
| 117 | |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 118 | aidl_interface { |
| 119 | name: "binderRpcTestIface", |
| 120 | host_supported: true, |
| 121 | unstable: true, |
| 122 | srcs: [ |
Steven Moreland | 659416d | 2021-05-11 00:47:50 +0000 | [diff] [blame] | 123 | "IBinderRpcCallback.aidl", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 124 | "IBinderRpcSession.aidl", |
| 125 | "IBinderRpcTest.aidl", |
| 126 | ], |
| 127 | backend: { |
| 128 | java: { |
| 129 | enabled: false, |
| 130 | }, |
| 131 | }, |
| 132 | } |
| 133 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 134 | cc_test { |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 135 | name: "binderRpcTest", |
Steven Moreland | f6ec463 | 2021-04-01 16:20:47 +0000 | [diff] [blame] | 136 | host_supported: true, |
| 137 | target: { |
| 138 | darwin: { |
| 139 | enabled: false, |
| 140 | }, |
Steven Moreland | 1d448af | 2021-04-20 01:05:18 +0000 | [diff] [blame] | 141 | android: { |
| 142 | test_suites: ["vts"], |
| 143 | }, |
Steven Moreland | f6ec463 | 2021-04-01 16:20:47 +0000 | [diff] [blame] | 144 | }, |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 145 | defaults: [ |
| 146 | "binder_test_defaults", |
| 147 | "libbinder_ndk_host_user", |
Yifan Hong | 9240975 | 2021-07-30 21:25:32 -0700 | [diff] [blame] | 148 | "libbinder_tls_shared_deps", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 149 | ], |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 150 | |
| 151 | srcs: [ |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 152 | "binderRpcTest.cpp", |
Yifan Hong | 13c9006 | 2021-09-09 14:59:53 -0700 | [diff] [blame^] | 153 | "RpcCertificateVerifierSimple.cpp", |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 154 | ], |
| 155 | shared_libs: [ |
| 156 | "libbinder", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 157 | "libbinder_ndk", |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 158 | "libbase", |
| 159 | "libutils", |
| 160 | "libcutils", |
| 161 | "liblog", |
| 162 | ], |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 163 | static_libs: [ |
Yifan Hong | 9240975 | 2021-07-30 21:25:32 -0700 | [diff] [blame] | 164 | "libbinder_tls_static", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 165 | "binderRpcTestIface-cpp", |
Jiyong Park | 9a9427c | 2021-08-09 09:01:15 +0900 | [diff] [blame] | 166 | "binderRpcTestIface-ndk", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 167 | ], |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 168 | test_suites: ["general-tests"], |
| 169 | require_root: true, |
| 170 | } |
| 171 | |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 172 | cc_benchmark { |
| 173 | name: "binderRpcBenchmark", |
| 174 | defaults: ["binder_test_defaults"], |
| 175 | host_supported: true, |
Steven Moreland | 722b490 | 2021-04-16 16:30:18 +0000 | [diff] [blame] | 176 | target: { |
| 177 | darwin: { |
| 178 | enabled: false, |
| 179 | }, |
| 180 | }, |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 181 | srcs: [ |
| 182 | "binderRpcBenchmark.cpp", |
| 183 | "IBinderRpcBenchmark.aidl", |
| 184 | ], |
| 185 | shared_libs: [ |
| 186 | "libbase", |
| 187 | "libbinder", |
| 188 | "liblog", |
| 189 | "libutils", |
| 190 | ], |
| 191 | } |
| 192 | |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 193 | cc_test { |
Steven Moreland | 59640db | 2021-07-22 17:19:31 -0700 | [diff] [blame] | 194 | name: "binderRpcWireProtocolTest", |
| 195 | host_supported: true, |
| 196 | target: { |
| 197 | darwin: { |
| 198 | enabled: false, |
| 199 | }, |
| 200 | android: { |
| 201 | test_suites: ["vts"], |
| 202 | }, |
| 203 | }, |
| 204 | defaults: [ |
| 205 | "binder_test_defaults", |
| 206 | ], |
| 207 | srcs: [ |
| 208 | "binderRpcWireProtocolTest.cpp", |
| 209 | ], |
| 210 | shared_libs: [ |
| 211 | "libbinder", |
| 212 | "libbase", |
| 213 | "libutils", |
| 214 | "libcutils", |
| 215 | "liblog", |
| 216 | ], |
| 217 | test_suites: ["general-tests"], |
| 218 | } |
| 219 | |
| 220 | cc_test { |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 221 | name: "binderThroughputTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 222 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 223 | srcs: ["binderThroughputTest.cpp"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 224 | shared_libs: [ |
| 225 | "libbinder", |
| 226 | "libutils", |
| 227 | ], |
| 228 | clang: true, |
| 229 | cflags: [ |
| 230 | "-g", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 231 | "-Wno-missing-field-initializers", |
| 232 | "-Wno-sign-compare", |
| 233 | "-O3", |
| 234 | ], |
| 235 | } |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 236 | |
| 237 | cc_test { |
| 238 | name: "binderTextOutputTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 239 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 240 | srcs: ["binderTextOutputTest.cpp"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 241 | shared_libs: [ |
| 242 | "libbinder", |
| 243 | "libutils", |
| 244 | "libbase", |
| 245 | ], |
Steven Moreland | 67812c2 | 2019-07-10 13:50:40 -0700 | [diff] [blame] | 246 | test_suites: ["device-tests"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 247 | } |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 248 | |
| 249 | cc_test { |
| 250 | name: "schd-dbg", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 251 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 252 | srcs: ["schd-dbg.cpp"], |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 253 | shared_libs: [ |
| 254 | "libbinder", |
| 255 | "libutils", |
| 256 | "libbase", |
| 257 | ], |
| 258 | } |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 259 | |
| 260 | cc_test { |
| 261 | name: "binderSafeInterfaceTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 262 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 263 | srcs: ["binderSafeInterfaceTest.cpp"], |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 264 | |
| 265 | cppflags: [ |
Colin Cross | 1383d9f | 2019-11-06 13:33:40 -0800 | [diff] [blame] | 266 | "-Wextra", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 267 | ], |
| 268 | |
| 269 | cpp_std: "experimental", |
| 270 | gnu_extensions: false, |
| 271 | |
| 272 | shared_libs: [ |
| 273 | "libbinder", |
Dan Stoza | 2537db7 | 2017-04-07 16:32:38 -0700 | [diff] [blame] | 274 | "libcutils", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 275 | "liblog", |
| 276 | "libutils", |
| 277 | ], |
Dan Shi | eb25b67 | 2020-03-26 11:43:04 -0700 | [diff] [blame] | 278 | test_suites: ["device-tests", "vts"], |
Dan Shi | 80ada59 | 2019-09-13 09:17:17 -0700 | [diff] [blame] | 279 | require_root: true, |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 280 | } |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 281 | |
Steven Moreland | f23dae2 | 2020-10-27 19:34:55 +0000 | [diff] [blame] | 282 | cc_test { |
| 283 | name: "binderClearBufTest", |
| 284 | defaults: ["binder_test_defaults"], |
| 285 | srcs: [ |
| 286 | "binderClearBufTest.cpp", |
| 287 | ], |
| 288 | |
| 289 | shared_libs: [ |
| 290 | "libbase", |
| 291 | "libbinder", |
| 292 | "liblog", |
| 293 | "libutils", |
| 294 | ], |
| 295 | |
| 296 | test_suites: ["general-tests"], |
| 297 | require_root: true, |
| 298 | } |
| 299 | |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 300 | aidl_interface { |
| 301 | name: "binderStabilityTestIface", |
Jiyong Park | 701fa1a | 2020-04-13 12:55:44 +0900 | [diff] [blame] | 302 | unstable: true, |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 303 | srcs: [ |
| 304 | "IBinderStabilityTest.aidl", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 305 | ], |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 306 | backend: { |
| 307 | java: { |
| 308 | enabled: false, |
| 309 | }, |
| 310 | }, |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 311 | } |
| 312 | |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 313 | cc_test { |
| 314 | name: "binderStabilityTest", |
| 315 | defaults: ["binder_test_defaults"], |
| 316 | srcs: [ |
| 317 | "binderStabilityTest.cpp", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 318 | ], |
| 319 | |
Steven Moreland | 13f8466 | 2020-07-23 21:30:41 +0000 | [diff] [blame] | 320 | // critical that libbinder/libbinder_ndk are shared for VTS |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 321 | shared_libs: [ |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 322 | "libbinder_ndk", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 323 | "libbinder", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 324 | "liblog", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 325 | "libutils", |
| 326 | ], |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 327 | static_libs: [ |
| 328 | "binderStabilityTestIface-cpp", |
Jiyong Park | 9a9427c | 2021-08-09 09:01:15 +0900 | [diff] [blame] | 329 | "binderStabilityTestIface-ndk", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 330 | ], |
| 331 | |
Steven Moreland | 13f8466 | 2020-07-23 21:30:41 +0000 | [diff] [blame] | 332 | test_suites: ["device-tests", "vts"], |
Dan Shi | 302709b | 2019-09-19 15:28:15 -0700 | [diff] [blame] | 333 | require_root: true, |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 334 | } |
Steven Moreland | 042ae82 | 2020-05-27 17:45:17 +0000 | [diff] [blame] | 335 | |
| 336 | cc_test { |
| 337 | name: "binderAllocationLimits", |
| 338 | defaults: ["binder_test_defaults"], |
| 339 | srcs: ["binderAllocationLimits.cpp"], |
| 340 | shared_libs: [ |
| 341 | "libbinder", |
| 342 | "liblog", |
| 343 | "libutils", |
| 344 | "libutilscallstack", |
| 345 | "libbase", |
| 346 | ], |
| 347 | test_suites: ["device-tests"], |
| 348 | require_root: true, |
| 349 | } |
Andy Hung | 73a1470 | 2020-11-24 13:04:46 -0800 | [diff] [blame] | 350 | |
| 351 | cc_benchmark { |
| 352 | name: "binderParcelBenchmark", |
| 353 | defaults: ["binder_test_defaults"], |
| 354 | srcs: ["binderParcelBenchmark.cpp"], |
| 355 | shared_libs: [ |
| 356 | "libbase", |
| 357 | "libbinder", |
| 358 | "liblog", |
| 359 | "libutils", |
| 360 | ], |
| 361 | } |
Yifan Hong | af766e6 | 2021-06-14 13:24:19 -0700 | [diff] [blame] | 362 | |
| 363 | cc_test_host { |
| 364 | name: "binderUtilsHostTest", |
| 365 | defaults: ["binder_test_defaults"], |
| 366 | srcs: ["binderUtilsHostTest.cpp"], |
| 367 | shared_libs: [ |
| 368 | "libbase", |
| 369 | "libbinder", |
| 370 | ], |
| 371 | static_libs: [ |
| 372 | "libgmock", |
| 373 | ], |
| 374 | test_suites: ["general-tests"], |
Yifan Hong | 44dec54 | 2021-06-22 10:47:44 -0700 | [diff] [blame] | 375 | target: { |
| 376 | darwin: { |
| 377 | enabled: false, |
| 378 | }, |
| 379 | }, |
Yifan Hong | af766e6 | 2021-06-14 13:24:19 -0700 | [diff] [blame] | 380 | } |
Yifan Hong | 1b6f12f | 2021-06-03 20:01:57 -0700 | [diff] [blame] | 381 | |
| 382 | cc_test_host { |
| 383 | name: "binderHostDeviceTest", |
| 384 | defaults: ["binder_test_defaults"], |
| 385 | srcs: ["binderHostDeviceTest.cpp"], |
| 386 | test_config: "binderHostDeviceTest.xml", |
| 387 | shared_libs: [ |
| 388 | "libbase", |
| 389 | "libbinder", |
| 390 | "liblog", |
| 391 | "libutils", |
| 392 | ], |
| 393 | static_libs: [ |
| 394 | "libgmock", |
| 395 | ], |
| 396 | target_required: [ |
| 397 | "binderHostDeviceTestService", |
| 398 | ], |
| 399 | test_suites: ["general-tests"], |
| 400 | target: { |
| 401 | darwin: { |
| 402 | enabled: false, |
| 403 | }, |
| 404 | }, |
| 405 | test_options: { |
| 406 | unit_test: false, |
| 407 | }, |
| 408 | } |
| 409 | |
| 410 | cc_test { |
| 411 | name: "binderHostDeviceTestService", |
| 412 | // The binary is named differently from the module so that PushFilePreparer pushes the binary |
| 413 | // directly, not the test module directory. |
| 414 | stem: "binderHostDeviceTest-service", |
| 415 | defaults: ["binder_test_defaults"], |
| 416 | gtest: false, |
| 417 | auto_gen_config: false, |
| 418 | srcs: ["binderHostDeviceTestService.cpp"], |
| 419 | shared_libs: [ |
| 420 | "libbase", |
| 421 | "libbinder", |
| 422 | "liblog", |
| 423 | "libutils", |
| 424 | ], |
| 425 | test_suites: ["general-tests"], |
| 426 | } |