1// 2// Copyright (C) 2020 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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_defaults { 22 name: "dmabufheap-unit-tests-default", 23 cflags: [ 24 "-Wall", 25 "-Werror", 26 ], 27 static_libs: [ 28 "libbase", 29 "liblog", 30 ], 31 shared_libs: [ 32 "libdmabufheap", 33 "libvintf", 34 ], 35 srcs: [ 36 "dmabuf_heap_test.cpp", 37 ], 38} 39 40cc_test { 41 name: "dmabufheap-vts-unit-tests", 42 defaults: ["dmabufheap-unit-tests-default"], 43 test_config: "dmabufheap-vts-unit-tests.xml", 44 test_suites: [ 45 "general-tests", 46 "vts", 47 ], 48} 49 50cc_test { 51 name: "dmabufheap-unit-tests", 52 defaults: ["dmabufheap-unit-tests-default"], 53 test_suites: [ 54 "device-tests", 55 ], 56 require_root: true, 57} 58 59cc_test { 60 name: "dmabufheaptest", 61 srcs: ["dmabuf_heap_test.c"], 62 static_libs: [ 63 "libion", 64 "libdmabufheap", 65 "liblog", 66 "libbase", 67 ], 68 cflags: [ 69 "-Werror", 70 "-Wall", 71 "-Wextra", 72 ], 73} 74 75cc_test { 76 name: "dmabuf-heap-bench", 77 srcs: ["dmabuf_heap_bench.c"], 78 static_libs: [ 79 "libion", 80 "liblog", 81 "libbase", 82 ], 83 cflags: [ 84 "-Werror", 85 "-Wall", 86 "-Wextra", 87 ], 88} 89