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 { |
Robert Quattlebaum | 6316f5b | 2017-01-04 13:25:14 -0800 | [diff] [blame] | 36 | name: "binderValueTypeTest", |
| 37 | srcs: ["binderValueTypeTest.cpp"], |
| 38 | shared_libs: [ |
| 39 | "libbinder", |
| 40 | "libutils", |
| 41 | ], |
| 42 | } |
| 43 | |
| 44 | cc_test { |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 45 | name: "binderLibTest_IPC_32", |
| 46 | srcs: ["binderLibTest.cpp"], |
| 47 | shared_libs: [ |
| 48 | "libbinder", |
| 49 | "libutils", |
| 50 | ], |
| 51 | compile_multilib: "32", |
| 52 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 53 | } |
| 54 | |
| 55 | cc_test { |
| 56 | product_variables: { |
| 57 | binder32bit: { |
| 58 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 59 | }, |
| 60 | }, |
| 61 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 62 | name: "binderLibTest", |
| 63 | srcs: ["binderLibTest.cpp"], |
| 64 | shared_libs: [ |
| 65 | "libbinder", |
| 66 | "libutils", |
| 67 | ], |
| 68 | } |
| 69 | |
| 70 | cc_test { |
| 71 | name: "binderThroughputTest", |
| 72 | srcs: ["binderThroughputTest.cpp"], |
| 73 | shared_libs: [ |
| 74 | "libbinder", |
| 75 | "libutils", |
| 76 | ], |
| 77 | clang: true, |
| 78 | cflags: [ |
| 79 | "-g", |
| 80 | "-Wall", |
| 81 | "-Werror", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 82 | "-Wno-missing-field-initializers", |
| 83 | "-Wno-sign-compare", |
| 84 | "-O3", |
| 85 | ], |
| 86 | } |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 87 | |
| 88 | cc_test { |
| 89 | name: "binderTextOutputTest", |
| 90 | srcs: ["binderTextOutputTest.cpp"], |
| 91 | shared_libs: [ |
| 92 | "libbinder", |
| 93 | "libutils", |
| 94 | "libbase", |
| 95 | ], |
| 96 | } |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 97 | |
| 98 | cc_test { |
| 99 | name: "schd-dbg", |
| 100 | srcs: ["schd-dbg.cpp"], |
| 101 | shared_libs: [ |
| 102 | "libbinder", |
| 103 | "libutils", |
| 104 | "libbase", |
| 105 | ], |
| 106 | } |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 107 | |
| 108 | cc_test { |
| 109 | name: "binderSafeInterfaceTest", |
| 110 | srcs: ["binderSafeInterfaceTest.cpp"], |
| 111 | |
| 112 | cppflags: [ |
| 113 | "-Werror", |
| 114 | "-Weverything", |
| 115 | "-Wno-c++98-compat", |
| 116 | "-Wno-c++98-compat-pedantic", |
| 117 | "-Wno-global-constructors", |
| 118 | "-Wno-padded", |
| 119 | "-Wno-weak-vtables", |
| 120 | ], |
| 121 | |
| 122 | cpp_std: "experimental", |
| 123 | gnu_extensions: false, |
| 124 | |
| 125 | shared_libs: [ |
| 126 | "libbinder", |
Dan Stoza | 2537db7 | 2017-04-07 16:32:38 -0700 | [diff] [blame] | 127 | "libcutils", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 128 | "liblog", |
| 129 | "libutils", |
| 130 | ], |
| 131 | } |