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", |
Tomasz Wasilczyk | a32912e | 2024-04-30 10:55:58 -0700 | [diff] [blame] | 28 | cmake_snapshot_supported: true, |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 29 | cflags: [ |
| 30 | "-Wall", |
| 31 | "-Werror", |
Tomasz Wasilczyk | e97f3a8 | 2024-04-30 10:37:32 -0700 | [diff] [blame] | 32 | "-Wformat", |
| 33 | "-Wpessimizing-move", |
| 34 | "-Wsign-compare", |
| 35 | "-Wunused-result", |
| 36 | "-Wzero-as-null-pointer-constant", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 37 | ], |
| 38 | } |
| 39 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 40 | cc_test { |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 41 | name: "binderDriverInterfaceTest", |
| 42 | defaults: ["binder_test_defaults"], |
Yifan Hong | 4e419d8 | 2021-04-26 11:32:56 -0700 | [diff] [blame] | 43 | header_libs: ["libbinder_headers"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 44 | srcs: ["binderDriverInterfaceTest.cpp"], |
Yu-Ting Tseng | d5fc446 | 2024-04-30 15:07:13 -0700 | [diff] [blame] | 45 | shared_libs: [ |
| 46 | "libbinder", |
| 47 | ], |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 48 | test_suites: [ |
Julien Desprez | 169452a | 2024-08-23 04:06:18 +0000 | [diff] [blame^] | 49 | "general-tests", |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 50 | "vts", |
| 51 | ], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 52 | } |
| 53 | |
Steven Moreland | cefba61 | 2020-11-05 22:57:06 +0000 | [diff] [blame] | 54 | // unit test only, which can run on host and doesn't use /dev/binder |
| 55 | cc_test { |
Steven Moreland | 2831860 | 2021-06-25 01:16:29 +0000 | [diff] [blame] | 56 | name: "binderUnitTest", |
Steven Moreland | cefba61 | 2020-11-05 22:57:06 +0000 | [diff] [blame] | 57 | host_supported: true, |
| 58 | target: { |
| 59 | darwin: { |
| 60 | enabled: false, |
| 61 | }, |
| 62 | }, |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 63 | srcs: [ |
| 64 | "binderParcelUnitTest.cpp", |
| 65 | "binderBinderUnitTest.cpp", |
Steven Moreland | cf37369 | 2022-01-21 23:55:15 +0000 | [diff] [blame] | 66 | "binderStatusUnitTest.cpp", |
Atneya Nair | 7ade4f4 | 2022-02-07 18:16:48 -0500 | [diff] [blame] | 67 | "binderMemoryHeapBaseUnitTest.cpp", |
Fabián Cañas | 08bdc77 | 2023-01-02 15:02:56 -0500 | [diff] [blame] | 68 | "binderRecordedTransactionTest.cpp", |
Abhishek Gadewar | 76f0082 | 2024-05-09 17:02:18 -0700 | [diff] [blame] | 69 | "binderPersistableBundleTest.cpp", |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 70 | ], |
Steven Moreland | cefba61 | 2020-11-05 22:57:06 +0000 | [diff] [blame] | 71 | shared_libs: [ |
| 72 | "libbinder", |
Steven Moreland | f80809b | 2021-10-07 18:09:20 -0700 | [diff] [blame] | 73 | "libcutils", |
Steven Moreland | cefba61 | 2020-11-05 22:57:06 +0000 | [diff] [blame] | 74 | "libutils", |
| 75 | ], |
| 76 | test_suites: ["general-tests"], |
| 77 | } |
| 78 | |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 79 | cc_test { |
Steven Moreland | a8244b9 | 2023-04-20 23:34:11 +0000 | [diff] [blame] | 80 | name: "binderRecordReplayTest", |
| 81 | srcs: ["binderRecordReplayTest.cpp"], |
Pawan Wagh | 76b1815 | 2023-12-01 14:30:26 +0000 | [diff] [blame] | 82 | cflags: [ |
| 83 | "-DBINDER_WITH_KERNEL_IPC", |
| 84 | ], |
Steven Moreland | a8244b9 | 2023-04-20 23:34:11 +0000 | [diff] [blame] | 85 | shared_libs: [ |
| 86 | "libbinder", |
| 87 | "libcutils", |
| 88 | "libutils", |
Pawan Wagh | 76b1815 | 2023-12-01 14:30:26 +0000 | [diff] [blame] | 89 | "liblog", |
Steven Moreland | a8244b9 | 2023-04-20 23:34:11 +0000 | [diff] [blame] | 90 | ], |
| 91 | static_libs: [ |
| 92 | "binderRecordReplayTestIface-cpp", |
Pawan Wagh | 8da4538 | 2023-05-11 08:08:50 +0000 | [diff] [blame] | 93 | "binderReadParcelIface-cpp", |
Pawan Wagh | 94bf303 | 2023-07-27 17:15:02 +0000 | [diff] [blame] | 94 | "libbinder_random_parcel_seeds", |
| 95 | "libbinder_random_parcel", |
Steven Moreland | a8244b9 | 2023-04-20 23:34:11 +0000 | [diff] [blame] | 96 | ], |
| 97 | test_suites: ["general-tests"], |
Steven Moreland | 4ed688d | 2023-05-03 23:03:56 +0000 | [diff] [blame] | 98 | require_root: true, |
Steven Moreland | a8244b9 | 2023-04-20 23:34:11 +0000 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | aidl_interface { |
| 102 | name: "binderRecordReplayTestIface", |
| 103 | unstable: true, |
| 104 | srcs: [ |
| 105 | "IBinderRecordReplayTest.aidl", |
| 106 | ], |
Pawan Wagh | 8da4538 | 2023-05-11 08:08:50 +0000 | [diff] [blame] | 107 | imports: ["binderReadParcelIface"], |
| 108 | backend: { |
| 109 | java: { |
| 110 | enabled: true, |
| 111 | platform_apis: true, |
| 112 | }, |
Steven Moreland | 5981335 | 2024-02-08 23:52:11 +0000 | [diff] [blame] | 113 | |
| 114 | // TODO: switch from FileDescriptor to ParcelFileDescriptor |
Pawan Wagh | 76b1815 | 2023-12-01 14:30:26 +0000 | [diff] [blame] | 115 | ndk: { |
| 116 | enabled: false, |
| 117 | }, |
Steven Moreland | 5981335 | 2024-02-08 23:52:11 +0000 | [diff] [blame] | 118 | rust: { |
| 119 | enabled: false, |
| 120 | }, |
Pawan Wagh | 8da4538 | 2023-05-11 08:08:50 +0000 | [diff] [blame] | 121 | }, |
Steven Moreland | a8244b9 | 2023-04-20 23:34:11 +0000 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | cc_test { |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 125 | name: "binderLibTest", |
| 126 | defaults: ["binder_test_defaults"], |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 127 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 128 | srcs: ["binderLibTest.cpp"], |
| 129 | shared_libs: [ |
Yifan Hong | 84bedeb | 2021-04-21 21:37:17 -0700 | [diff] [blame] | 130 | "libbase", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 131 | "libbinder", |
Yifan Hong | 8b89085 | 2021-06-10 13:44:09 -0700 | [diff] [blame] | 132 | "liblog", |
Yu-Ting Tseng | d5fc446 | 2024-04-30 15:07:13 -0700 | [diff] [blame] | 133 | "libprocessgroup", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 134 | "libutils", |
| 135 | ], |
Yifan Hong | bbd2a0d | 2021-05-07 22:12:23 -0700 | [diff] [blame] | 136 | static_libs: [ |
| 137 | "libgmock", |
| 138 | ], |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 139 | test_suites: [ |
Julien Desprez | 169452a | 2024-08-23 04:06:18 +0000 | [diff] [blame^] | 140 | "general-tests", |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 141 | "vts", |
| 142 | ], |
Dan Shi | 80ada59 | 2019-09-13 09:17:17 -0700 | [diff] [blame] | 143 | require_root: true, |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 144 | } |
| 145 | |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 146 | aidl_interface { |
| 147 | name: "binderRpcTestIface", |
Andrei Homescu | d65666d | 2023-03-03 07:28:02 +0000 | [diff] [blame] | 148 | vendor_available: true, |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 149 | host_supported: true, |
Tomasz Wasilczyk | a32912e | 2024-04-30 10:55:58 -0700 | [diff] [blame] | 150 | cmake_snapshot_supported: true, |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 151 | unstable: true, |
| 152 | srcs: [ |
Yifan Hong | 1deca4b | 2021-09-10 16:16:44 -0700 | [diff] [blame] | 153 | "BinderRpcTestClientInfo.aidl", |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 154 | "BinderRpcTestServerConfig.aidl", |
Yifan Hong | 1deca4b | 2021-09-10 16:16:44 -0700 | [diff] [blame] | 155 | "BinderRpcTestServerInfo.aidl", |
Steven Moreland | 659416d | 2021-05-11 00:47:50 +0000 | [diff] [blame] | 156 | "IBinderRpcCallback.aidl", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 157 | "IBinderRpcSession.aidl", |
| 158 | "IBinderRpcTest.aidl", |
Yifan Hong | 1deca4b | 2021-09-10 16:16:44 -0700 | [diff] [blame] | 159 | "ParcelableCertificateData.aidl", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 160 | ], |
Tomasz Wasilczyk | 7c511e9 | 2023-12-04 17:00:28 -0800 | [diff] [blame] | 161 | flags: [ |
| 162 | "-Werror", |
| 163 | "-Wno-mixed-oneway", |
| 164 | ], |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 165 | backend: { |
| 166 | java: { |
| 167 | enabled: false, |
| 168 | }, |
| 169 | }, |
| 170 | } |
| 171 | |
Yifan Hong | e0e5328 | 2021-09-23 18:37:21 -0700 | [diff] [blame] | 172 | cc_library_static { |
| 173 | name: "libbinder_tls_test_utils", |
| 174 | host_supported: true, |
Andrei Homescu | d65666d | 2023-03-03 07:28:02 +0000 | [diff] [blame] | 175 | vendor_available: true, |
Yifan Hong | e0e5328 | 2021-09-23 18:37:21 -0700 | [diff] [blame] | 176 | target: { |
| 177 | darwin: { |
| 178 | enabled: false, |
| 179 | }, |
| 180 | }, |
| 181 | defaults: [ |
| 182 | "binder_test_defaults", |
| 183 | "libbinder_tls_shared_deps", |
| 184 | ], |
| 185 | shared_libs: [ |
Yifan Hong | e0e5328 | 2021-09-23 18:37:21 -0700 | [diff] [blame] | 186 | "libbase", |
| 187 | "liblog", |
| 188 | ], |
| 189 | static_libs: [ |
| 190 | "libbinder_tls_static", |
| 191 | ], |
| 192 | srcs: [ |
| 193 | "RpcTlsTestUtils.cpp", |
| 194 | ], |
| 195 | export_include_dirs: [ |
| 196 | "include_tls_test_utils", |
| 197 | ], |
| 198 | visibility: [ |
| 199 | ":__subpackages__", |
| 200 | ], |
| 201 | } |
| 202 | |
Tomasz Wasilczyk | 26db5e4 | 2023-11-02 11:45:11 -0700 | [diff] [blame] | 203 | cc_library_static { |
| 204 | name: "libbinder_test_utils", |
| 205 | host_supported: true, |
| 206 | vendor_available: true, |
| 207 | target: { |
| 208 | darwin: { |
| 209 | enabled: false, |
| 210 | }, |
| 211 | }, |
| 212 | defaults: [ |
| 213 | "binder_test_defaults", |
| 214 | ], |
Tomasz Wasilczyk | fbfea5b | 2024-04-30 10:54:23 -0700 | [diff] [blame] | 215 | header_libs: [ |
| 216 | "libbinder_headers_base", |
| 217 | ], |
Tomasz Wasilczyk | 26db5e4 | 2023-11-02 11:45:11 -0700 | [diff] [blame] | 218 | shared_libs: [ |
| 219 | "libbase", |
Tomasz Wasilczyk | 26db5e4 | 2023-11-02 11:45:11 -0700 | [diff] [blame] | 220 | ], |
| 221 | srcs: [ |
| 222 | "FileUtils.cpp", |
| 223 | ], |
| 224 | visibility: [ |
| 225 | ":__subpackages__", |
| 226 | ], |
| 227 | } |
| 228 | |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 229 | cc_defaults { |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 230 | name: "binderRpcTest_common_defaults", |
Steven Moreland | f6ec463 | 2021-04-01 16:20:47 +0000 | [diff] [blame] | 231 | host_supported: true, |
Tomasz Wasilczyk | a32912e | 2024-04-30 10:55:58 -0700 | [diff] [blame] | 232 | cmake_snapshot_supported: true, |
Steven Moreland | f6ec463 | 2021-04-01 16:20:47 +0000 | [diff] [blame] | 233 | target: { |
| 234 | darwin: { |
| 235 | enabled: false, |
| 236 | }, |
| 237 | }, |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 238 | defaults: [ |
| 239 | "binder_test_defaults", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 240 | ], |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 241 | |
Devin Moore | 1df9c5f | 2024-07-23 22:09:29 +0000 | [diff] [blame] | 242 | compile_multilib: "both", |
| 243 | multilib: { |
| 244 | lib32: { |
| 245 | suffix: "32", |
| 246 | }, |
| 247 | lib64: { |
| 248 | suffix: "64", |
| 249 | }, |
| 250 | }, |
| 251 | |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 252 | static_libs: [ |
Tomasz Wasilczyk | 26db5e4 | 2023-11-02 11:45:11 -0700 | [diff] [blame] | 253 | "libbinder_test_utils", |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 254 | "libbinder_tls_static", |
| 255 | "libbinder_tls_test_utils", |
| 256 | "binderRpcTestIface-cpp", |
| 257 | "binderRpcTestIface-ndk", |
| 258 | ], |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 259 | } |
| 260 | |
| 261 | cc_defaults { |
| 262 | name: "binderRpcTest_service_defaults", |
| 263 | defaults: [ |
| 264 | "binderRpcTest_common_defaults", |
| 265 | ], |
| 266 | gtest: false, |
| 267 | auto_gen_config: false, |
| 268 | srcs: [ |
| 269 | "binderRpcTestCommon.cpp", |
| 270 | "binderRpcTestService.cpp", |
| 271 | ], |
| 272 | } |
| 273 | |
| 274 | cc_defaults { |
| 275 | name: "binderRpcTest_defaults", |
| 276 | target: { |
| 277 | android: { |
| 278 | test_suites: ["vts"], |
| 279 | }, |
| 280 | }, |
| 281 | defaults: [ |
| 282 | "binderRpcTest_common_defaults", |
| 283 | ], |
| 284 | |
| 285 | srcs: [ |
| 286 | "binderRpcTest.cpp", |
| 287 | "binderRpcTestCommon.cpp", |
Andrei Homescu | 9a9b1b4 | 2022-10-14 01:40:59 +0000 | [diff] [blame] | 288 | "binderRpcUniversalTests.cpp", |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 289 | ], |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 290 | |
Steven Moreland | 2053161 | 2023-04-04 18:03:24 +0000 | [diff] [blame] | 291 | // This test uses a lot of resources and takes a long time. Due to |
| 292 | // design of several tests, it is also very sensitive to resource |
| 293 | // contention on the device. b/276820894 |
| 294 | test_options: { |
| 295 | unit_test: false, |
Steven Moreland | f6b18f2 | 2023-12-16 04:46:22 +0000 | [diff] [blame] | 296 | test_runner_options: [ |
| 297 | { |
| 298 | name: "native-test-timeout", |
| 299 | value: "10m", |
| 300 | }, |
| 301 | ], |
Steven Moreland | 2053161 | 2023-04-04 18:03:24 +0000 | [diff] [blame] | 302 | }, |
| 303 | |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 304 | test_suites: ["general-tests"], |
| 305 | require_root: true, |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 306 | |
| 307 | data_bins: [ |
| 308 | "binder_rpc_test_service", |
| 309 | "binder_rpc_test_service_no_kernel", |
| 310 | "binder_rpc_test_service_single_threaded", |
| 311 | "binder_rpc_test_service_single_threaded_no_kernel", |
| 312 | ], |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 313 | } |
| 314 | |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 315 | cc_defaults { |
| 316 | name: "binderRpcTest_shared_defaults", |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 317 | cflags: [ |
| 318 | "-DBINDER_WITH_KERNEL_IPC", |
| 319 | ], |
| 320 | |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 321 | shared_libs: [ |
| 322 | "libbinder", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 323 | "libbinder_ndk", |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 324 | "libbase", |
| 325 | "libutils", |
| 326 | "libcutils", |
| 327 | "liblog", |
| 328 | ], |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 329 | } |
| 330 | |
| 331 | cc_defaults { |
| 332 | name: "binderRpcTest_static_defaults", |
| 333 | |
| 334 | shared_libs: [ |
Andrei Homescu | 68a5561 | 2022-08-02 01:25:15 +0000 | [diff] [blame] | 335 | "liblog", |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 336 | "libutils", |
| 337 | // libcrypto_static is not visible to this module |
| 338 | "libcrypto", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 339 | ], |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 340 | static_libs: [ |
| 341 | "libbase", |
| 342 | "libcutils", |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 343 | "libssl", |
| 344 | ], |
| 345 | |
| 346 | cflags: [ |
| 347 | // Disable tests that require shared libraries, |
| 348 | // e.g., libbinder.so or libbinder_ndk.so |
| 349 | "-DBINDER_TEST_NO_SHARED_LIBS", |
| 350 | ], |
| 351 | } |
| 352 | |
Tomasz Wasilczyk | 75a5dc6 | 2024-06-10 14:34:21 -0700 | [diff] [blame] | 353 | cc_binary { |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 354 | // The module name cannot start with "binderRpcTest" because |
| 355 | // then atest tries to execute it as part of binderRpcTest |
| 356 | name: "binder_rpc_test_service", |
| 357 | defaults: [ |
| 358 | "binderRpcTest_service_defaults", |
| 359 | "binderRpcTest_shared_defaults", |
| 360 | "libbinder_tls_shared_deps", |
| 361 | ], |
| 362 | } |
| 363 | |
Tomasz Wasilczyk | 75a5dc6 | 2024-06-10 14:34:21 -0700 | [diff] [blame] | 364 | cc_binary { |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 365 | name: "binder_rpc_test_service_no_kernel", |
| 366 | defaults: [ |
| 367 | "binderRpcTest_service_defaults", |
| 368 | "binderRpcTest_static_defaults", |
| 369 | ], |
| 370 | static_libs: [ |
| 371 | "libbinder_rpc_no_kernel", |
| 372 | ], |
| 373 | } |
| 374 | |
Tomasz Wasilczyk | 75a5dc6 | 2024-06-10 14:34:21 -0700 | [diff] [blame] | 375 | cc_binary { |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 376 | name: "binder_rpc_test_service_single_threaded", |
| 377 | defaults: [ |
| 378 | "binderRpcTest_service_defaults", |
| 379 | "binderRpcTest_static_defaults", |
| 380 | ], |
| 381 | cflags: [ |
| 382 | "-DBINDER_RPC_SINGLE_THREADED", |
| 383 | "-DBINDER_WITH_KERNEL_IPC", |
| 384 | ], |
| 385 | static_libs: [ |
| 386 | "libbinder_rpc_single_threaded", |
| 387 | ], |
| 388 | } |
| 389 | |
Tomasz Wasilczyk | 75a5dc6 | 2024-06-10 14:34:21 -0700 | [diff] [blame] | 390 | cc_binary { |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 391 | name: "binder_rpc_test_service_single_threaded_no_kernel", |
| 392 | defaults: [ |
| 393 | "binderRpcTest_service_defaults", |
| 394 | "binderRpcTest_static_defaults", |
| 395 | ], |
| 396 | cflags: [ |
| 397 | "-DBINDER_RPC_SINGLE_THREADED", |
| 398 | ], |
| 399 | static_libs: [ |
| 400 | "libbinder_rpc_single_threaded_no_kernel", |
| 401 | ], |
Tomasz Wasilczyk | a32912e | 2024-04-30 10:55:58 -0700 | [diff] [blame] | 402 | shared_libs: [ |
| 403 | "libbinder_ndk", |
| 404 | ], |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 405 | } |
| 406 | |
Andrei Homescu | 9d8adb1 | 2022-08-02 04:38:30 +0000 | [diff] [blame] | 407 | cc_binary { |
| 408 | name: "binderRpcTestService_on_trusty_mock", |
| 409 | defaults: [ |
| 410 | "trusty_mock_defaults", |
| 411 | ], |
| 412 | |
| 413 | srcs: [ |
| 414 | "binderRpcTestCommon.cpp", |
| 415 | "binderRpcTestServiceTrusty.cpp", |
| 416 | ], |
| 417 | |
| 418 | shared_libs: [ |
| 419 | "libbinder_on_trusty_mock", |
| 420 | "libbase", |
| 421 | "libutils", |
| 422 | "libcutils", |
| 423 | ], |
| 424 | |
| 425 | static_libs: [ |
| 426 | "binderRpcTestIface-cpp", |
| 427 | ], |
| 428 | } |
| 429 | |
Andrei Homescu | 4d9420e | 2023-01-31 01:38:48 +0000 | [diff] [blame] | 430 | cc_binary { |
| 431 | name: "binderRpcTest_on_trusty_mock", |
| 432 | defaults: [ |
| 433 | "trusty_mock_defaults", |
| 434 | ], |
| 435 | |
| 436 | srcs: [ |
| 437 | "binderRpcUniversalTests.cpp", |
| 438 | "binderRpcTestCommon.cpp", |
| 439 | "binderRpcTestTrusty.cpp", |
| 440 | ], |
| 441 | |
| 442 | shared_libs: [ |
| 443 | "libbinder_on_trusty_mock", |
| 444 | "libbase", |
| 445 | "libutils", |
| 446 | "libcutils", |
| 447 | ], |
| 448 | |
| 449 | static_libs: [ |
| 450 | "binderRpcTestIface-cpp", |
| 451 | "libgtest", |
| 452 | ], |
| 453 | } |
| 454 | |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 455 | cc_test { |
| 456 | name: "binderRpcTest", |
| 457 | defaults: [ |
| 458 | "binderRpcTest_defaults", |
| 459 | "binderRpcTest_shared_defaults", |
| 460 | "libbinder_tls_shared_deps", |
| 461 | ], |
Andrei Homescu | 875996f | 2022-08-24 04:25:11 +0000 | [diff] [blame] | 462 | |
| 463 | // Add the Trusty mock library as a fake dependency so it gets built |
| 464 | required: [ |
| 465 | "libbinder_on_trusty_mock", |
Andrei Homescu | 40dbf25 | 2024-03-28 21:19:42 +0000 | [diff] [blame] | 466 | "libbinder_ndk_on_trusty_mock", |
Andrei Homescu | 6dfa8c9 | 2024-03-29 04:58:32 +0000 | [diff] [blame] | 467 | "libbinder_rs_on_trusty_mock", |
Andrei Homescu | 9d8adb1 | 2022-08-02 04:38:30 +0000 | [diff] [blame] | 468 | "binderRpcTestService_on_trusty_mock", |
Andrei Homescu | 4d9420e | 2023-01-31 01:38:48 +0000 | [diff] [blame] | 469 | "binderRpcTest_on_trusty_mock", |
Andrei Homescu | 875996f | 2022-08-24 04:25:11 +0000 | [diff] [blame] | 470 | ], |
Andrei Homescu | 2a29801 | 2022-06-15 01:08:54 +0000 | [diff] [blame] | 471 | } |
| 472 | |
| 473 | cc_test { |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 474 | name: "binderRpcTestNoKernel", |
| 475 | defaults: [ |
| 476 | "binderRpcTest_defaults", |
| 477 | "binderRpcTest_static_defaults", |
| 478 | ], |
| 479 | static_libs: [ |
| 480 | "libbinder_rpc_no_kernel", |
| 481 | ], |
| 482 | } |
| 483 | |
| 484 | cc_test { |
Tomasz Wasilczyk | 2265ad9 | 2024-05-01 12:54:46 -0700 | [diff] [blame] | 485 | name: "binderRpcTestNoKernelAtAll", |
| 486 | defaults: [ |
| 487 | "binderRpcTest_defaults", |
| 488 | "binderRpcTest_static_defaults", |
| 489 | ], |
| 490 | static_libs: [ |
| 491 | "libbinder_rpc_no_kernel", |
| 492 | ], |
| 493 | cflags: [ |
| 494 | "-DBINDER_NO_KERNEL_IPC_TESTING", |
| 495 | ], |
| 496 | } |
| 497 | |
| 498 | cc_test { |
Andrei Homescu | 12106de | 2022-04-27 04:42:21 +0000 | [diff] [blame] | 499 | name: "binderRpcTestSingleThreaded", |
| 500 | defaults: [ |
| 501 | "binderRpcTest_defaults", |
| 502 | "binderRpcTest_static_defaults", |
| 503 | ], |
| 504 | cflags: [ |
| 505 | "-DBINDER_RPC_SINGLE_THREADED", |
| 506 | "-DBINDER_WITH_KERNEL_IPC", |
| 507 | ], |
| 508 | static_libs: [ |
| 509 | "libbinder_rpc_single_threaded", |
| 510 | ], |
| 511 | } |
| 512 | |
| 513 | cc_test { |
| 514 | name: "binderRpcTestSingleThreadedNoKernel", |
| 515 | defaults: [ |
| 516 | "binderRpcTest_defaults", |
| 517 | "binderRpcTest_static_defaults", |
| 518 | ], |
| 519 | cflags: [ |
| 520 | "-DBINDER_RPC_SINGLE_THREADED", |
| 521 | ], |
| 522 | static_libs: [ |
| 523 | "libbinder_rpc_single_threaded_no_kernel", |
| 524 | ], |
Tomasz Wasilczyk | a32912e | 2024-04-30 10:55:58 -0700 | [diff] [blame] | 525 | shared_libs: [ |
| 526 | "libbinder_ndk", |
| 527 | ], |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 528 | } |
| 529 | |
Yifan Hong | ff73aa9 | 2021-09-17 21:28:01 -0700 | [diff] [blame] | 530 | cc_test { |
Andrei Homescu | d65666d | 2023-03-03 07:28:02 +0000 | [diff] [blame] | 531 | name: "binderRpcToTrustyTest", |
| 532 | vendor: true, |
| 533 | host_supported: false, |
| 534 | defaults: [ |
| 535 | "binderRpcTest_common_defaults", |
| 536 | "binderRpcTest_static_defaults", |
| 537 | ], |
| 538 | |
| 539 | srcs: [ |
| 540 | "binderRpcTest.cpp", |
| 541 | "binderRpcTestCommon.cpp", |
| 542 | "binderRpcUniversalTests.cpp", |
| 543 | ], |
| 544 | |
| 545 | cflags: [ |
| 546 | "-DBINDER_RPC_TO_TRUSTY_TEST", |
| 547 | ], |
| 548 | |
| 549 | static_libs: [ |
| 550 | // We want to link libbinder statically so we can push the binary |
| 551 | // to the device for testing independently of the library |
| 552 | "libbinder_rpc_no_kernel", |
| 553 | "libbinder_trusty", |
| 554 | "libtrusty", |
| 555 | ], |
| 556 | |
| 557 | test_suites: ["device-tests"], |
| 558 | require_root: true, |
| 559 | } |
| 560 | |
| 561 | cc_test { |
Yifan Hong | ff73aa9 | 2021-09-17 21:28:01 -0700 | [diff] [blame] | 562 | name: "RpcTlsUtilsTest", |
| 563 | host_supported: true, |
| 564 | target: { |
| 565 | darwin: { |
| 566 | enabled: false, |
| 567 | }, |
| 568 | android: { |
| 569 | test_suites: ["vts"], |
| 570 | }, |
| 571 | }, |
| 572 | defaults: [ |
| 573 | "binder_test_defaults", |
| 574 | "libbinder_tls_shared_deps", |
| 575 | ], |
| 576 | srcs: [ |
Yifan Hong | ff73aa9 | 2021-09-17 21:28:01 -0700 | [diff] [blame] | 577 | "RpcTlsUtilsTest.cpp", |
| 578 | ], |
| 579 | shared_libs: [ |
| 580 | "libbinder", |
| 581 | "libbase", |
| 582 | "libutils", |
| 583 | "liblog", |
| 584 | ], |
| 585 | static_libs: [ |
Yifan Hong | e0e5328 | 2021-09-23 18:37:21 -0700 | [diff] [blame] | 586 | "libbinder_tls_test_utils", |
Yifan Hong | ff73aa9 | 2021-09-17 21:28:01 -0700 | [diff] [blame] | 587 | "libbinder_tls_static", |
| 588 | ], |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 589 | test_suites: [ |
| 590 | "general-tests", |
| 591 | "device-tests", |
| 592 | ], |
Yifan Hong | ff73aa9 | 2021-09-17 21:28:01 -0700 | [diff] [blame] | 593 | } |
| 594 | |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 595 | cc_benchmark { |
| 596 | name: "binderRpcBenchmark", |
Yifan Hong | aecdd17 | 2021-09-21 14:53:13 -0700 | [diff] [blame] | 597 | defaults: [ |
| 598 | "binder_test_defaults", |
| 599 | "libbinder_tls_shared_deps", |
| 600 | ], |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 601 | host_supported: true, |
Steven Moreland | 722b490 | 2021-04-16 16:30:18 +0000 | [diff] [blame] | 602 | target: { |
| 603 | darwin: { |
| 604 | enabled: false, |
| 605 | }, |
| 606 | }, |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 607 | srcs: [ |
| 608 | "binderRpcBenchmark.cpp", |
| 609 | "IBinderRpcBenchmark.aidl", |
| 610 | ], |
| 611 | shared_libs: [ |
| 612 | "libbase", |
| 613 | "libbinder", |
| 614 | "liblog", |
| 615 | "libutils", |
| 616 | ], |
Yifan Hong | aecdd17 | 2021-09-21 14:53:13 -0700 | [diff] [blame] | 617 | static_libs: [ |
Yifan Hong | e0e5328 | 2021-09-23 18:37:21 -0700 | [diff] [blame] | 618 | "libbinder_tls_test_utils", |
Yifan Hong | aecdd17 | 2021-09-21 14:53:13 -0700 | [diff] [blame] | 619 | "libbinder_tls_static", |
| 620 | ], |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 621 | } |
| 622 | |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 623 | cc_test { |
Steven Moreland | 59640db | 2021-07-22 17:19:31 -0700 | [diff] [blame] | 624 | name: "binderRpcWireProtocolTest", |
| 625 | host_supported: true, |
| 626 | target: { |
| 627 | darwin: { |
| 628 | enabled: false, |
| 629 | }, |
| 630 | android: { |
| 631 | test_suites: ["vts"], |
| 632 | }, |
| 633 | }, |
| 634 | defaults: [ |
| 635 | "binder_test_defaults", |
| 636 | ], |
| 637 | srcs: [ |
| 638 | "binderRpcWireProtocolTest.cpp", |
| 639 | ], |
| 640 | shared_libs: [ |
| 641 | "libbinder", |
| 642 | "libbase", |
| 643 | "libutils", |
| 644 | "libcutils", |
| 645 | "liblog", |
| 646 | ], |
| 647 | test_suites: ["general-tests"], |
| 648 | } |
| 649 | |
| 650 | cc_test { |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 651 | name: "binderThroughputTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 652 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 653 | srcs: ["binderThroughputTest.cpp"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 654 | shared_libs: [ |
| 655 | "libbinder", |
| 656 | "libutils", |
| 657 | ], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 658 | cflags: [ |
| 659 | "-g", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 660 | "-Wno-missing-field-initializers", |
| 661 | "-Wno-sign-compare", |
| 662 | "-O3", |
| 663 | ], |
| 664 | } |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 665 | |
| 666 | cc_test { |
| 667 | name: "binderTextOutputTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 668 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 669 | srcs: ["binderTextOutputTest.cpp"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 670 | shared_libs: [ |
| 671 | "libbinder", |
| 672 | "libutils", |
| 673 | "libbase", |
| 674 | ], |
Steven Moreland | 67812c2 | 2019-07-10 13:50:40 -0700 | [diff] [blame] | 675 | test_suites: ["device-tests"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 676 | } |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 677 | |
| 678 | cc_test { |
| 679 | name: "schd-dbg", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 680 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 681 | srcs: ["schd-dbg.cpp"], |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 682 | shared_libs: [ |
| 683 | "libbinder", |
| 684 | "libutils", |
| 685 | "libbase", |
| 686 | ], |
| 687 | } |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 688 | |
| 689 | cc_test { |
| 690 | name: "binderSafeInterfaceTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 691 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 692 | srcs: ["binderSafeInterfaceTest.cpp"], |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 693 | |
| 694 | cppflags: [ |
Colin Cross | 1383d9f | 2019-11-06 13:33:40 -0800 | [diff] [blame] | 695 | "-Wextra", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 696 | ], |
| 697 | |
| 698 | cpp_std: "experimental", |
| 699 | gnu_extensions: false, |
| 700 | |
| 701 | shared_libs: [ |
| 702 | "libbinder", |
Dan Stoza | 2537db7 | 2017-04-07 16:32:38 -0700 | [diff] [blame] | 703 | "libcutils", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 704 | "liblog", |
| 705 | "libutils", |
| 706 | ], |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 707 | test_suites: [ |
Julien Desprez | 169452a | 2024-08-23 04:06:18 +0000 | [diff] [blame^] | 708 | "general-tests", |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 709 | "vts", |
| 710 | ], |
Dan Shi | 80ada59 | 2019-09-13 09:17:17 -0700 | [diff] [blame] | 711 | require_root: true, |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 712 | } |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 713 | |
Steven Moreland | f23dae2 | 2020-10-27 19:34:55 +0000 | [diff] [blame] | 714 | cc_test { |
| 715 | name: "binderClearBufTest", |
| 716 | defaults: ["binder_test_defaults"], |
| 717 | srcs: [ |
| 718 | "binderClearBufTest.cpp", |
| 719 | ], |
| 720 | |
| 721 | shared_libs: [ |
| 722 | "libbase", |
| 723 | "libbinder", |
| 724 | "liblog", |
| 725 | "libutils", |
| 726 | ], |
| 727 | |
| 728 | test_suites: ["general-tests"], |
| 729 | require_root: true, |
| 730 | } |
| 731 | |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 732 | aidl_interface { |
| 733 | name: "binderStabilityTestIface", |
Jiyong Park | 701fa1a | 2020-04-13 12:55:44 +0900 | [diff] [blame] | 734 | unstable: true, |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 735 | srcs: [ |
| 736 | "IBinderStabilityTest.aidl", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 737 | ], |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 738 | backend: { |
| 739 | java: { |
| 740 | enabled: false, |
| 741 | }, |
| 742 | }, |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 743 | } |
| 744 | |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 745 | cc_test { |
| 746 | name: "binderStabilityTest", |
| 747 | defaults: ["binder_test_defaults"], |
| 748 | srcs: [ |
| 749 | "binderStabilityTest.cpp", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 750 | ], |
| 751 | |
Steven Moreland | 13f8466 | 2020-07-23 21:30:41 +0000 | [diff] [blame] | 752 | // critical that libbinder/libbinder_ndk are shared for VTS |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 753 | shared_libs: [ |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 754 | "libbinder_ndk", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 755 | "libbinder", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 756 | "liblog", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 757 | "libutils", |
| 758 | ], |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 759 | static_libs: [ |
| 760 | "binderStabilityTestIface-cpp", |
Jiyong Park | 9a9427c | 2021-08-09 09:01:15 +0900 | [diff] [blame] | 761 | "binderStabilityTestIface-ndk", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 762 | ], |
| 763 | |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 764 | test_suites: [ |
Julien Desprez | 169452a | 2024-08-23 04:06:18 +0000 | [diff] [blame^] | 765 | "general-tests", |
Steven Moreland | ea7659e | 2022-02-03 00:04:06 +0000 | [diff] [blame] | 766 | "vts", |
| 767 | ], |
Dan Shi | 302709b | 2019-09-19 15:28:15 -0700 | [diff] [blame] | 768 | require_root: true, |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 769 | } |
Steven Moreland | 042ae82 | 2020-05-27 17:45:17 +0000 | [diff] [blame] | 770 | |
| 771 | cc_test { |
| 772 | name: "binderAllocationLimits", |
| 773 | defaults: ["binder_test_defaults"], |
| 774 | srcs: ["binderAllocationLimits.cpp"], |
| 775 | shared_libs: [ |
| 776 | "libbinder", |
| 777 | "liblog", |
Steven Moreland | 66acefe | 2022-09-09 00:34:40 +0000 | [diff] [blame] | 778 | "libcutils", |
Steven Moreland | 042ae82 | 2020-05-27 17:45:17 +0000 | [diff] [blame] | 779 | "libutils", |
| 780 | "libutilscallstack", |
| 781 | "libbase", |
| 782 | ], |
| 783 | test_suites: ["device-tests"], |
| 784 | require_root: true, |
| 785 | } |
Andy Hung | 73a1470 | 2020-11-24 13:04:46 -0800 | [diff] [blame] | 786 | |
| 787 | cc_benchmark { |
| 788 | name: "binderParcelBenchmark", |
| 789 | defaults: ["binder_test_defaults"], |
| 790 | srcs: ["binderParcelBenchmark.cpp"], |
| 791 | shared_libs: [ |
| 792 | "libbase", |
| 793 | "libbinder", |
| 794 | "liblog", |
| 795 | "libutils", |
| 796 | ], |
Steven Moreland | 9b254dd | 2023-05-11 00:37:55 +0000 | [diff] [blame] | 797 | test_suites: ["general-tests"], |
Andy Hung | 73a1470 | 2020-11-24 13:04:46 -0800 | [diff] [blame] | 798 | } |
Yifan Hong | af766e6 | 2021-06-14 13:24:19 -0700 | [diff] [blame] | 799 | |
| 800 | cc_test_host { |
| 801 | name: "binderUtilsHostTest", |
| 802 | defaults: ["binder_test_defaults"], |
| 803 | srcs: ["binderUtilsHostTest.cpp"], |
| 804 | shared_libs: [ |
| 805 | "libbase", |
| 806 | "libbinder", |
| 807 | ], |
| 808 | static_libs: [ |
| 809 | "libgmock", |
| 810 | ], |
| 811 | test_suites: ["general-tests"], |
Yifan Hong | 44dec54 | 2021-06-22 10:47:44 -0700 | [diff] [blame] | 812 | target: { |
| 813 | darwin: { |
| 814 | enabled: false, |
| 815 | }, |
| 816 | }, |
Yifan Hong | af766e6 | 2021-06-14 13:24:19 -0700 | [diff] [blame] | 817 | } |
Yifan Hong | 1b6f12f | 2021-06-03 20:01:57 -0700 | [diff] [blame] | 818 | |
| 819 | cc_test_host { |
| 820 | name: "binderHostDeviceTest", |
| 821 | defaults: ["binder_test_defaults"], |
| 822 | srcs: ["binderHostDeviceTest.cpp"], |
| 823 | test_config: "binderHostDeviceTest.xml", |
| 824 | shared_libs: [ |
| 825 | "libbase", |
| 826 | "libbinder", |
| 827 | "liblog", |
| 828 | "libutils", |
| 829 | ], |
| 830 | static_libs: [ |
| 831 | "libgmock", |
| 832 | ], |
| 833 | target_required: [ |
| 834 | "binderHostDeviceTestService", |
| 835 | ], |
| 836 | test_suites: ["general-tests"], |
| 837 | target: { |
| 838 | darwin: { |
| 839 | enabled: false, |
| 840 | }, |
| 841 | }, |
| 842 | test_options: { |
| 843 | unit_test: false, |
| 844 | }, |
| 845 | } |
| 846 | |
| 847 | cc_test { |
| 848 | name: "binderHostDeviceTestService", |
| 849 | // The binary is named differently from the module so that PushFilePreparer pushes the binary |
| 850 | // directly, not the test module directory. |
| 851 | stem: "binderHostDeviceTest-service", |
| 852 | defaults: ["binder_test_defaults"], |
| 853 | gtest: false, |
| 854 | auto_gen_config: false, |
| 855 | srcs: ["binderHostDeviceTestService.cpp"], |
| 856 | shared_libs: [ |
| 857 | "libbase", |
| 858 | "libbinder", |
| 859 | "liblog", |
| 860 | "libutils", |
| 861 | ], |
| 862 | test_suites: ["general-tests"], |
| 863 | } |
Pawan | f00fabb | 2022-08-04 17:56:18 +0000 | [diff] [blame] | 864 | |
| 865 | cc_defaults { |
| 866 | name: "service_fuzzer_defaults", |
| 867 | static_libs: [ |
| 868 | "libbase", |
| 869 | "libbinder_random_parcel", |
| 870 | "libcutils", |
| 871 | ], |
| 872 | target: { |
| 873 | android: { |
| 874 | shared_libs: [ |
| 875 | "libbinder_ndk", |
| 876 | "libbinder", |
| 877 | "libutils", |
| 878 | ], |
| 879 | }, |
| 880 | host: { |
| 881 | static_libs: [ |
| 882 | "libbinder_ndk", |
| 883 | "libbinder", |
| 884 | "libutils", |
| 885 | ], |
| 886 | }, |
| 887 | darwin: { |
| 888 | enabled: false, |
| 889 | }, |
| 890 | }, |
| 891 | fuzz_config: { |
| 892 | cc: [ |
| 893 | "smoreland@google.com", |
| 894 | "waghpawan@google.com", |
| 895 | ], |
Pawan Wagh | 595377b | 2022-11-16 08:42:20 +0000 | [diff] [blame] | 896 | // Adds bugs to hotlist "AIDL fuzzers bugs" on buganizer |
| 897 | hotlists: ["4637097"], |
Pawan Wagh | 813a06f | 2023-12-21 23:39:39 +0000 | [diff] [blame] | 898 | use_for_presubmit: true, |
Pawan | f00fabb | 2022-08-04 17:56:18 +0000 | [diff] [blame] | 899 | }, |
| 900 | } |
Pawan Wagh | 475f66c | 2023-05-05 21:46:07 +0000 | [diff] [blame] | 901 | |
| 902 | cc_defaults { |
| 903 | name: "fuzzer_disable_leaks", |
Pawan Wagh | 9e2d296 | 2023-06-20 23:43:24 +0000 | [diff] [blame] | 904 | fuzz_config: { |
| 905 | asan_options: [ |
| 906 | "detect_leaks=0", |
| 907 | ], |
| 908 | hwasan_options: [ |
| 909 | "detect_leaks=0", |
| 910 | ], |
| 911 | }, |
Pawan Wagh | 475f66c | 2023-05-05 21:46:07 +0000 | [diff] [blame] | 912 | } |