• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17package {
18    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "frameworks_native_libs_ui_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["frameworks_native_libs_ui_license"],
24}
25
26cc_test {
27    name: "Region_test",
28    shared_libs: ["libui"],
29    srcs: ["Region_test.cpp"],
30    cflags: [
31        "-Wall",
32        "-Werror",
33    ],
34}
35
36cc_test {
37    name: "colorspace_test",
38    shared_libs: ["libui"],
39    srcs: ["colorspace_test.cpp"],
40    cflags: [
41        "-Wall",
42        "-Werror",
43    ],
44}
45
46cc_test {
47    name: "DisplayId_test",
48    shared_libs: ["libui"],
49    srcs: ["DisplayId_test.cpp"],
50    cflags: [
51        "-Wall",
52        "-Werror",
53    ],
54}
55
56cc_test {
57    name: "FlattenableHelpers_test",
58    shared_libs: ["libui"],
59    srcs: ["FlattenableHelpers_test.cpp"],
60    cflags: [
61        "-Wall",
62        "-Werror",
63    ],
64}
65
66cc_test {
67    name: "GraphicBufferAllocator_test",
68    header_libs: [
69        "libnativewindow_headers",
70    ],
71    static_libs: [
72        "libgmock",
73    ],
74    shared_libs: [
75        "libhidlbase",
76        "liblog",
77        "libui",
78    ],
79    srcs: [
80        "GraphicBufferAllocator_test.cpp",
81        "mock/MockGrallocAllocator.cpp",
82    ],
83    cflags: [
84        "-Wall",
85        "-Werror",
86    ],
87}
88
89cc_test {
90    name: "GraphicBuffer_test",
91    header_libs: [
92        "libnativewindow_headers",
93    ],
94    shared_libs: [
95        "libcutils",
96        "libhidlbase",
97        "libui",
98        "libutils",
99    ],
100    srcs: ["GraphicBuffer_test.cpp"],
101    cflags: [
102        "-Wall",
103        "-Werror",
104    ],
105}
106
107// This test has a main method, and requires a separate binary to be built.
108cc_test {
109    name: "GraphicBufferOverBinder_test",
110    srcs: ["GraphicBufferOverBinder_test.cpp"],
111    cflags: [
112        "-Wall",
113        "-Werror",
114    ],
115    shared_libs: [
116        "libbinder",
117        "liblog",
118        "libui",
119        "libutils",
120    ],
121}
122
123cc_test {
124    name: "Rect_test",
125    test_suites: ["device-tests"],
126    shared_libs: ["libui"],
127    srcs: ["Rect_test.cpp"],
128    cflags: [
129        "-Wall",
130        "-Werror",
131    ],
132}
133
134cc_test {
135    name: "Size_test",
136    test_suites: ["device-tests"],
137    shared_libs: ["libui"],
138    srcs: ["Size_test.cpp"],
139    cflags: [
140        "-Wall",
141        "-Werror",
142    ],
143}
144
145cc_test {
146    name: "MockFence_test",
147    shared_libs: ["libui"],
148    static_libs: ["libgmock"],
149    srcs: ["MockFence_test.cpp"],
150    cflags: [
151        "-Wall",
152        "-Werror",
153    ],
154}
155
156cc_test {
157    name: "Transform_test",
158    shared_libs: ["libui"],
159    srcs: ["Transform_test.cpp"],
160    cflags: [
161        "-Wall",
162        "-Werror",
163    ],
164}
165
166cc_test {
167    name: "HdrRenderTypeUtils_test",
168    shared_libs: ["libui"],
169    srcs: ["HdrRenderTypeUtils_test.cpp"],
170    cflags: [
171        "-Wall",
172        "-Werror",
173    ],
174}
175