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