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 17cc_defaults { 18 name: "binder_test_defaults", 19 cflags: [ 20 "-Wall", 21 "-Werror", 22 ], 23} 24 25cc_test { 26 name: "binderDriverInterfaceTest_IPC_32", 27 defaults: ["binder_test_defaults"], 28 srcs: ["binderDriverInterfaceTest.cpp"], 29 compile_multilib: "32", 30 multilib: { lib32: { suffix: "" } }, 31 cflags: ["-DBINDER_IPC_32BIT=1"], 32 test_suites: ["vts"], 33} 34 35cc_test { 36 name: "binderDriverInterfaceTest", 37 defaults: ["binder_test_defaults"], 38 product_variables: { 39 binder32bit: { 40 cflags: ["-DBINDER_IPC_32BIT=1"], 41 }, 42 }, 43 44 srcs: ["binderDriverInterfaceTest.cpp"], 45 test_suites: ["device-tests", "vts"], 46} 47 48cc_test { 49 name: "binderLibTest_IPC_32", 50 defaults: ["binder_test_defaults"], 51 srcs: ["binderLibTest.cpp"], 52 shared_libs: [ 53 "libbinder", 54 "libutils", 55 ], 56 compile_multilib: "32", 57 multilib: { lib32: { suffix: "" } }, 58 cflags: ["-DBINDER_IPC_32BIT=1"], 59 test_suites: ["vts"], 60 require_root: true, 61} 62 63cc_test { 64 name: "binderLibTest", 65 defaults: ["binder_test_defaults"], 66 product_variables: { 67 binder32bit: { 68 cflags: ["-DBINDER_IPC_32BIT=1"], 69 }, 70 }, 71 72 srcs: ["binderLibTest.cpp"], 73 shared_libs: [ 74 "libbinder", 75 "libutils", 76 ], 77 test_suites: ["device-tests", "vts"], 78 require_root: true, 79} 80 81cc_test { 82 name: "binderThroughputTest", 83 defaults: ["binder_test_defaults"], 84 srcs: ["binderThroughputTest.cpp"], 85 shared_libs: [ 86 "libbinder", 87 "libutils", 88 ], 89 clang: true, 90 cflags: [ 91 "-g", 92 "-Wno-missing-field-initializers", 93 "-Wno-sign-compare", 94 "-O3", 95 ], 96} 97 98cc_test { 99 name: "binderTextOutputTest", 100 defaults: ["binder_test_defaults"], 101 srcs: ["binderTextOutputTest.cpp"], 102 shared_libs: [ 103 "libbinder", 104 "libutils", 105 "libbase", 106 ], 107 test_suites: ["device-tests"], 108} 109 110cc_test { 111 name: "schd-dbg", 112 defaults: ["binder_test_defaults"], 113 srcs: ["schd-dbg.cpp"], 114 shared_libs: [ 115 "libbinder", 116 "libutils", 117 "libbase", 118 ], 119} 120 121cc_test { 122 name: "binderSafeInterfaceTest", 123 defaults: ["binder_test_defaults"], 124 srcs: ["binderSafeInterfaceTest.cpp"], 125 126 cppflags: [ 127 "-Wextra", 128 ], 129 130 cpp_std: "experimental", 131 gnu_extensions: false, 132 133 shared_libs: [ 134 "libbinder", 135 "libcutils", 136 "liblog", 137 "libutils", 138 ], 139 test_suites: ["device-tests", "vts"], 140 require_root: true, 141} 142 143aidl_interface { 144 name: "binderStabilityTestIface", 145 unstable: true, 146 srcs: [ 147 "IBinderStabilityTest.aidl", 148 ], 149} 150 151cc_test { 152 name: "binderStabilityTest", 153 defaults: ["binder_test_defaults"], 154 srcs: [ 155 "binderStabilityTest.cpp", 156 ], 157 158 shared_libs: [ 159 "libbinder_ndk", 160 "libbinder", 161 "liblog", 162 "libutils", 163 ], 164 static_libs: [ 165 "binderStabilityTestIface-cpp", 166 "binderStabilityTestIface-ndk_platform", 167 ], 168 169 test_suites: ["device-tests"], 170 require_root: true, 171} 172