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_test { 18 product_variables: { 19 binder32bit: { 20 cflags: ["-DBINDER_IPC_32BIT=1"], 21 }, 22 }, 23 24 name: "binderDriverInterfaceTest", 25 srcs: ["binderDriverInterfaceTest.cpp"], 26} 27 28cc_test { 29 name: "binderValueTypeTest", 30 srcs: ["binderValueTypeTest.cpp"], 31 shared_libs: [ 32 "libbinder", 33 "libutils", 34 ], 35} 36 37cc_test { 38 name: "binderLibTest", 39 srcs: ["binderLibTest.cpp"], 40 shared_libs: [ 41 "libbinder", 42 "libutils", 43 ], 44} 45 46cc_test { 47 name: "binderThroughputTest", 48 srcs: ["binderThroughputTest.cpp"], 49 shared_libs: [ 50 "libbinder", 51 "libutils", 52 ], 53 clang: true, 54 cflags: [ 55 "-g", 56 "-Wall", 57 "-Werror", 58 "-Wno-missing-field-initializers", 59 "-Wno-sign-compare", 60 "-O3", 61 ], 62} 63 64cc_test { 65 name: "binderTextOutputTest", 66 srcs: ["binderTextOutputTest.cpp"], 67 shared_libs: [ 68 "libbinder", 69 "libutils", 70 "libbase", 71 ], 72} 73 74cc_test { 75 name: "schd-dbg", 76 srcs: ["schd-dbg.cpp"], 77 shared_libs: [ 78 "libbinder", 79 "libutils", 80 "libbase", 81 ], 82} 83 84cc_test { 85 name: "binderSafeInterfaceTest", 86 srcs: ["binderSafeInterfaceTest.cpp"], 87 88 cppflags: [ 89 "-Werror", 90 "-Weverything", 91 "-Wno-c++98-compat", 92 "-Wno-c++98-compat-pedantic", 93 "-Wno-global-constructors", 94 "-Wno-padded", 95 "-Wno-weak-vtables", 96 ], 97 98 cpp_std: "experimental", 99 gnu_extensions: false, 100 101 shared_libs: [ 102 "libbinder", 103 "libcutils", 104 "liblog", 105 "libutils", 106 ], 107} 108