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