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