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