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 | |
| 17 | cc_test { |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 18 | name: "binderDriverInterfaceTest_IPC_32", |
| 19 | srcs: ["binderDriverInterfaceTest.cpp"], |
| 20 | compile_multilib: "32", |
| 21 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 22 | } |
| 23 | |
| 24 | cc_test { |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 25 | product_variables: { |
| 26 | binder32bit: { |
| 27 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 28 | }, |
| 29 | }, |
| 30 | |
| 31 | name: "binderDriverInterfaceTest", |
| 32 | srcs: ["binderDriverInterfaceTest.cpp"], |
| 33 | } |
| 34 | |
| 35 | cc_test { |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame^] | 36 | name: "binderLibTest_IPC_32", |
| 37 | srcs: ["binderLibTest.cpp"], |
| 38 | shared_libs: [ |
| 39 | "libbinder", |
| 40 | "libutils", |
| 41 | ], |
| 42 | compile_multilib: "32", |
| 43 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 44 | } |
| 45 | |
| 46 | cc_test { |
| 47 | product_variables: { |
| 48 | binder32bit: { |
| 49 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 50 | }, |
| 51 | }, |
| 52 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 53 | name: "binderLibTest", |
| 54 | srcs: ["binderLibTest.cpp"], |
| 55 | shared_libs: [ |
| 56 | "libbinder", |
| 57 | "libutils", |
| 58 | ], |
| 59 | } |
| 60 | |
| 61 | cc_test { |
| 62 | name: "binderThroughputTest", |
| 63 | srcs: ["binderThroughputTest.cpp"], |
| 64 | shared_libs: [ |
| 65 | "libbinder", |
| 66 | "libutils", |
| 67 | ], |
| 68 | clang: true, |
| 69 | cflags: [ |
| 70 | "-g", |
| 71 | "-Wall", |
| 72 | "-Werror", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 73 | "-Wno-missing-field-initializers", |
| 74 | "-Wno-sign-compare", |
| 75 | "-O3", |
| 76 | ], |
| 77 | } |
Wei Wang | 236cdb4 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 78 | |
| 79 | cc_test { |
| 80 | name: "binderTextOutputTest", |
| 81 | srcs: ["binderTextOutputTest.cpp"], |
| 82 | shared_libs: [ |
| 83 | "libbinder", |
| 84 | "libutils", |
| 85 | "libbase", |
| 86 | ], |
| 87 | } |
Howard Chen | b0ad31f | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 88 | |
| 89 | cc_test { |
| 90 | name: "schd-dbg", |
| 91 | srcs: ["schd-dbg.cpp"], |
| 92 | shared_libs: [ |
| 93 | "libbinder", |
| 94 | "libutils", |
| 95 | "libbase", |
| 96 | ], |
| 97 | } |