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: [ |
Yifan Hong | 1deca4b | 2021-09-10 16:16:44 -0700 | [diff] [blame] | 123 | "BinderRpcTestClientInfo.aidl", |
| 124 | "BinderRpcTestServerInfo.aidl", |
Steven Moreland | 659416d | 2021-05-11 00:47:50 +0000 | [diff] [blame] | 125 | "IBinderRpcCallback.aidl", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 126 | "IBinderRpcSession.aidl", |
| 127 | "IBinderRpcTest.aidl", |
Yifan Hong | 1deca4b | 2021-09-10 16:16:44 -0700 | [diff] [blame] | 128 | "ParcelableCertificateData.aidl", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 129 | ], |
| 130 | backend: { |
| 131 | java: { |
| 132 | enabled: false, |
| 133 | }, |
| 134 | }, |
| 135 | } |
| 136 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 137 | cc_test { |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 138 | name: "binderRpcTest", |
Steven Moreland | f6ec463 | 2021-04-01 16:20:47 +0000 | [diff] [blame] | 139 | host_supported: true, |
| 140 | target: { |
| 141 | darwin: { |
| 142 | enabled: false, |
| 143 | }, |
Steven Moreland | 1d448af | 2021-04-20 01:05:18 +0000 | [diff] [blame] | 144 | android: { |
| 145 | test_suites: ["vts"], |
| 146 | }, |
Steven Moreland | f6ec463 | 2021-04-01 16:20:47 +0000 | [diff] [blame] | 147 | }, |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 148 | defaults: [ |
| 149 | "binder_test_defaults", |
| 150 | "libbinder_ndk_host_user", |
Yifan Hong | 9240975 | 2021-07-30 21:25:32 -0700 | [diff] [blame] | 151 | "libbinder_tls_shared_deps", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 152 | ], |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 153 | |
| 154 | srcs: [ |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 155 | "binderRpcTest.cpp", |
Yifan Hong | ffdaf95 | 2021-09-17 18:08:38 -0700 | [diff] [blame] | 156 | "RpcAuthTesting.cpp", |
Yifan Hong | 13c9006 | 2021-09-09 14:59:53 -0700 | [diff] [blame] | 157 | "RpcCertificateVerifierSimple.cpp", |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 158 | ], |
| 159 | shared_libs: [ |
| 160 | "libbinder", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 161 | "libbinder_ndk", |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 162 | "libbase", |
| 163 | "libutils", |
| 164 | "libcutils", |
| 165 | "liblog", |
| 166 | ], |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 167 | static_libs: [ |
Yifan Hong | 9240975 | 2021-07-30 21:25:32 -0700 | [diff] [blame] | 168 | "libbinder_tls_static", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 169 | "binderRpcTestIface-cpp", |
Jiyong Park | 9a9427c | 2021-08-09 09:01:15 +0900 | [diff] [blame] | 170 | "binderRpcTestIface-ndk", |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 171 | ], |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 172 | test_suites: ["general-tests"], |
| 173 | require_root: true, |
| 174 | } |
| 175 | |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 176 | cc_benchmark { |
| 177 | name: "binderRpcBenchmark", |
Yifan Hong | aecdd17 | 2021-09-21 14:53:13 -0700 | [diff] [blame^] | 178 | defaults: [ |
| 179 | "binder_test_defaults", |
| 180 | "libbinder_tls_shared_deps", |
| 181 | ], |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 182 | host_supported: true, |
Steven Moreland | 722b490 | 2021-04-16 16:30:18 +0000 | [diff] [blame] | 183 | target: { |
| 184 | darwin: { |
| 185 | enabled: false, |
| 186 | }, |
| 187 | }, |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 188 | srcs: [ |
| 189 | "binderRpcBenchmark.cpp", |
| 190 | "IBinderRpcBenchmark.aidl", |
Yifan Hong | aecdd17 | 2021-09-21 14:53:13 -0700 | [diff] [blame^] | 191 | "RpcAuthTesting.cpp", |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 192 | ], |
| 193 | shared_libs: [ |
| 194 | "libbase", |
| 195 | "libbinder", |
| 196 | "liblog", |
| 197 | "libutils", |
| 198 | ], |
Yifan Hong | aecdd17 | 2021-09-21 14:53:13 -0700 | [diff] [blame^] | 199 | static_libs: [ |
| 200 | "libbinder_tls_static", |
| 201 | ], |
Steven Moreland | cda6085 | 2021-04-14 23:45:32 +0000 | [diff] [blame] | 202 | } |
| 203 | |
Steven Moreland | 5553ac4 | 2020-11-11 02:14:45 +0000 | [diff] [blame] | 204 | cc_test { |
Steven Moreland | 59640db | 2021-07-22 17:19:31 -0700 | [diff] [blame] | 205 | name: "binderRpcWireProtocolTest", |
| 206 | host_supported: true, |
| 207 | target: { |
| 208 | darwin: { |
| 209 | enabled: false, |
| 210 | }, |
| 211 | android: { |
| 212 | test_suites: ["vts"], |
| 213 | }, |
| 214 | }, |
| 215 | defaults: [ |
| 216 | "binder_test_defaults", |
| 217 | ], |
| 218 | srcs: [ |
| 219 | "binderRpcWireProtocolTest.cpp", |
| 220 | ], |
| 221 | shared_libs: [ |
| 222 | "libbinder", |
| 223 | "libbase", |
| 224 | "libutils", |
| 225 | "libcutils", |
| 226 | "liblog", |
| 227 | ], |
| 228 | test_suites: ["general-tests"], |
| 229 | } |
| 230 | |
| 231 | cc_test { |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 232 | name: "binderThroughputTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 233 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 234 | srcs: ["binderThroughputTest.cpp"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 235 | shared_libs: [ |
| 236 | "libbinder", |
| 237 | "libutils", |
| 238 | ], |
| 239 | clang: true, |
| 240 | cflags: [ |
| 241 | "-g", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 242 | "-Wno-missing-field-initializers", |
| 243 | "-Wno-sign-compare", |
| 244 | "-O3", |
| 245 | ], |
| 246 | } |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 247 | |
| 248 | cc_test { |
| 249 | name: "binderTextOutputTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 250 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 251 | srcs: ["binderTextOutputTest.cpp"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 252 | shared_libs: [ |
| 253 | "libbinder", |
| 254 | "libutils", |
| 255 | "libbase", |
| 256 | ], |
Steven Moreland | 67812c2 | 2019-07-10 13:50:40 -0700 | [diff] [blame] | 257 | test_suites: ["device-tests"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 258 | } |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 259 | |
| 260 | cc_test { |
| 261 | name: "schd-dbg", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 262 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 263 | srcs: ["schd-dbg.cpp"], |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 264 | shared_libs: [ |
| 265 | "libbinder", |
| 266 | "libutils", |
| 267 | "libbase", |
| 268 | ], |
| 269 | } |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 270 | |
| 271 | cc_test { |
| 272 | name: "binderSafeInterfaceTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 273 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 274 | srcs: ["binderSafeInterfaceTest.cpp"], |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 275 | |
| 276 | cppflags: [ |
Colin Cross | 1383d9f | 2019-11-06 13:33:40 -0800 | [diff] [blame] | 277 | "-Wextra", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 278 | ], |
| 279 | |
| 280 | cpp_std: "experimental", |
| 281 | gnu_extensions: false, |
| 282 | |
| 283 | shared_libs: [ |
| 284 | "libbinder", |
Dan Stoza | 2537db7 | 2017-04-07 16:32:38 -0700 | [diff] [blame] | 285 | "libcutils", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 286 | "liblog", |
| 287 | "libutils", |
| 288 | ], |
Dan Shi | eb25b67 | 2020-03-26 11:43:04 -0700 | [diff] [blame] | 289 | test_suites: ["device-tests", "vts"], |
Dan Shi | 80ada59 | 2019-09-13 09:17:17 -0700 | [diff] [blame] | 290 | require_root: true, |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 291 | } |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 292 | |
Steven Moreland | f23dae2 | 2020-10-27 19:34:55 +0000 | [diff] [blame] | 293 | cc_test { |
| 294 | name: "binderClearBufTest", |
| 295 | defaults: ["binder_test_defaults"], |
| 296 | srcs: [ |
| 297 | "binderClearBufTest.cpp", |
| 298 | ], |
| 299 | |
| 300 | shared_libs: [ |
| 301 | "libbase", |
| 302 | "libbinder", |
| 303 | "liblog", |
| 304 | "libutils", |
| 305 | ], |
| 306 | |
| 307 | test_suites: ["general-tests"], |
| 308 | require_root: true, |
| 309 | } |
| 310 | |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 311 | aidl_interface { |
| 312 | name: "binderStabilityTestIface", |
Jiyong Park | 701fa1a | 2020-04-13 12:55:44 +0900 | [diff] [blame] | 313 | unstable: true, |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 314 | srcs: [ |
| 315 | "IBinderStabilityTest.aidl", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 316 | ], |
Steven Moreland | 37aff18 | 2021-03-26 02:04:16 +0000 | [diff] [blame] | 317 | backend: { |
| 318 | java: { |
| 319 | enabled: false, |
| 320 | }, |
| 321 | }, |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 322 | } |
| 323 | |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 324 | cc_test { |
| 325 | name: "binderStabilityTest", |
| 326 | defaults: ["binder_test_defaults"], |
| 327 | srcs: [ |
| 328 | "binderStabilityTest.cpp", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 329 | ], |
| 330 | |
Steven Moreland | 13f8466 | 2020-07-23 21:30:41 +0000 | [diff] [blame] | 331 | // critical that libbinder/libbinder_ndk are shared for VTS |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 332 | shared_libs: [ |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 333 | "libbinder_ndk", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 334 | "libbinder", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 335 | "liblog", |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 336 | "libutils", |
| 337 | ], |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 338 | static_libs: [ |
| 339 | "binderStabilityTestIface-cpp", |
Jiyong Park | 9a9427c | 2021-08-09 09:01:15 +0900 | [diff] [blame] | 340 | "binderStabilityTestIface-ndk", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 341 | ], |
| 342 | |
Steven Moreland | 13f8466 | 2020-07-23 21:30:41 +0000 | [diff] [blame] | 343 | test_suites: ["device-tests", "vts"], |
Dan Shi | 302709b | 2019-09-19 15:28:15 -0700 | [diff] [blame] | 344 | require_root: true, |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 345 | } |
Steven Moreland | 042ae82 | 2020-05-27 17:45:17 +0000 | [diff] [blame] | 346 | |
| 347 | cc_test { |
| 348 | name: "binderAllocationLimits", |
| 349 | defaults: ["binder_test_defaults"], |
| 350 | srcs: ["binderAllocationLimits.cpp"], |
| 351 | shared_libs: [ |
| 352 | "libbinder", |
| 353 | "liblog", |
| 354 | "libutils", |
| 355 | "libutilscallstack", |
| 356 | "libbase", |
| 357 | ], |
| 358 | test_suites: ["device-tests"], |
| 359 | require_root: true, |
| 360 | } |
Andy Hung | 73a1470 | 2020-11-24 13:04:46 -0800 | [diff] [blame] | 361 | |
| 362 | cc_benchmark { |
| 363 | name: "binderParcelBenchmark", |
| 364 | defaults: ["binder_test_defaults"], |
| 365 | srcs: ["binderParcelBenchmark.cpp"], |
| 366 | shared_libs: [ |
| 367 | "libbase", |
| 368 | "libbinder", |
| 369 | "liblog", |
| 370 | "libutils", |
| 371 | ], |
| 372 | } |
Yifan Hong | af766e6 | 2021-06-14 13:24:19 -0700 | [diff] [blame] | 373 | |
| 374 | cc_test_host { |
| 375 | name: "binderUtilsHostTest", |
| 376 | defaults: ["binder_test_defaults"], |
| 377 | srcs: ["binderUtilsHostTest.cpp"], |
| 378 | shared_libs: [ |
| 379 | "libbase", |
| 380 | "libbinder", |
| 381 | ], |
| 382 | static_libs: [ |
| 383 | "libgmock", |
| 384 | ], |
| 385 | test_suites: ["general-tests"], |
Yifan Hong | 44dec54 | 2021-06-22 10:47:44 -0700 | [diff] [blame] | 386 | target: { |
| 387 | darwin: { |
| 388 | enabled: false, |
| 389 | }, |
| 390 | }, |
Yifan Hong | af766e6 | 2021-06-14 13:24:19 -0700 | [diff] [blame] | 391 | } |
Yifan Hong | 1b6f12f | 2021-06-03 20:01:57 -0700 | [diff] [blame] | 392 | |
| 393 | cc_test_host { |
| 394 | name: "binderHostDeviceTest", |
| 395 | defaults: ["binder_test_defaults"], |
| 396 | srcs: ["binderHostDeviceTest.cpp"], |
| 397 | test_config: "binderHostDeviceTest.xml", |
| 398 | shared_libs: [ |
| 399 | "libbase", |
| 400 | "libbinder", |
| 401 | "liblog", |
| 402 | "libutils", |
| 403 | ], |
| 404 | static_libs: [ |
| 405 | "libgmock", |
| 406 | ], |
| 407 | target_required: [ |
| 408 | "binderHostDeviceTestService", |
| 409 | ], |
| 410 | test_suites: ["general-tests"], |
| 411 | target: { |
| 412 | darwin: { |
| 413 | enabled: false, |
| 414 | }, |
| 415 | }, |
| 416 | test_options: { |
| 417 | unit_test: false, |
| 418 | }, |
| 419 | } |
| 420 | |
| 421 | cc_test { |
| 422 | name: "binderHostDeviceTestService", |
| 423 | // The binary is named differently from the module so that PushFilePreparer pushes the binary |
| 424 | // directly, not the test module directory. |
| 425 | stem: "binderHostDeviceTest-service", |
| 426 | defaults: ["binder_test_defaults"], |
| 427 | gtest: false, |
| 428 | auto_gen_config: false, |
| 429 | srcs: ["binderHostDeviceTestService.cpp"], |
| 430 | shared_libs: [ |
| 431 | "libbase", |
| 432 | "libbinder", |
| 433 | "liblog", |
| 434 | "libutils", |
| 435 | ], |
| 436 | test_suites: ["general-tests"], |
| 437 | } |