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        "libnativewindow_headers",
35    ],
36    static_libs: [
37        "libgmock",
38    ],
39    shared_libs: [
40        "libhidlbase",
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        "libnativewindow_headers",
55    ],
56    shared_libs: [
57        "libcutils",
58        "libhidlbase",
59        "libui",
60        "libutils",
61    ],
62    srcs: ["GraphicBuffer_test.cpp"],
63    cflags: ["-Wall", "-Werror"],
64}
65
66// This test has a main method, and requires a separate binary to be built.
67cc_test {
68    name: "GraphicBufferOverBinder_test",
69    srcs: ["GraphicBufferOverBinder_test.cpp"],
70    cflags: ["-Wall", "-Werror"],
71    shared_libs: [
72        "libbinder",
73        "libgui",
74        "liblog",
75        "libui",
76        "libutils",
77    ],
78}
79
80cc_test {
81    name: "Size_test",
82    test_suites: ["device-tests"],
83    shared_libs: ["libui"],
84    srcs: ["Size_test.cpp"],
85    cflags: ["-Wall", "-Werror"],
86}
87