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 name: "Region_test", 19 shared_libs: ["libui"], 20 srcs: ["Region_test.cpp"], 21 cflags: ["-Wall", "-Werror"], 22} 23 24cc_test { 25 name: "colorspace_test", 26 shared_libs: ["libui"], 27 srcs: ["colorspace_test.cpp"], 28 cflags: ["-Wall", "-Werror"], 29} 30 31cc_test { 32 name: "GraphicBufferAllocator_test", 33 header_libs: [ 34 "libdvr_headers", 35 "libnativewindow_headers", 36 ], 37 static_libs: [ 38 "libgmock", 39 ], 40 shared_libs: [ 41 "liblog", 42 "libui", 43 ], 44 srcs: [ 45 "GraphicBufferAllocator_test.cpp", 46 "mock/MockGrallocAllocator.cpp", 47 ], 48 cflags: ["-Wall", "-Werror"], 49} 50 51cc_test { 52 name: "GraphicBuffer_test", 53 header_libs: [ 54 "libdvr_headers", 55 "libnativewindow_headers", 56 ], 57 shared_libs: [ 58 "android.frameworks.bufferhub@1.0", 59 "libcutils", 60 "libhidlbase", 61 "libui", 62 "libutils", 63 ], 64 srcs: ["GraphicBuffer_test.cpp"], 65 cflags: ["-Wall", "-Werror"], 66} 67 68cc_test { 69 name: "BufferHub_test", 70 header_libs: [ 71 "libdvr_headers", 72 "libnativewindow_headers", 73 ], 74 static_libs: [ 75 "libgmock", 76 ], 77 shared_libs: [ 78 "android.frameworks.bufferhub@1.0", 79 "libcutils", 80 "libhidlbase", 81 "liblog", 82 "libui", 83 "libutils" 84 ], 85 srcs: [ 86 "BufferHubBuffer_test.cpp", 87 "BufferHubEventFd_test.cpp", 88 "BufferHubMetadata_test.cpp", 89 ], 90 cflags: ["-Wall", "-Werror"], 91} 92 93cc_test { 94 name: "Size_test", 95 shared_libs: ["libui"], 96 srcs: ["Size_test.cpp"], 97 cflags: ["-Wall", "-Werror"], 98} 99