blob: 9a202150c59ac8dac978cbb13f2250ef1b79b225 [file] [log] [blame]
Dan Willemsen871dda32016-08-25 17:05:22 -07001//
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
Bob Badour3306e492021-02-25 15:35:37 -080017package {
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
Dan Willemsen871dda32016-08-25 17:05:22 -070026cc_test {
27 name: "Region_test",
28 shared_libs: ["libui"],
29 srcs: ["Region_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -070030 cflags: [
31 "-Wall",
32 "-Werror",
33 ],
Dan Willemsen871dda32016-08-25 17:05:22 -070034}
35
36cc_test {
Romain Guycaf2ca42016-11-10 11:45:58 -080037 name: "colorspace_test",
38 shared_libs: ["libui"],
39 srcs: ["colorspace_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -070040 cflags: [
41 "-Wall",
42 "-Werror",
43 ],
Romain Guycaf2ca42016-11-10 11:45:58 -080044}
Jiwen 'Steve' Cai44addfe2018-03-13 21:37:11 -070045
46cc_test {
Marin Shalamanov0f10d0d2020-08-06 20:04:06 +020047 name: "DisplayId_test",
48 shared_libs: ["libui"],
49 srcs: ["DisplayId_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -070050 cflags: [
51 "-Wall",
52 "-Werror",
53 ],
Marin Shalamanov0f10d0d2020-08-06 20:04:06 +020054}
55
56cc_test {
Dominik Laskowskiee79fcb2024-02-09 15:17:17 -050057 name: "DisplayIdentification_test",
58 shared_libs: ["libui"],
59 static_libs: ["libgmock"],
60 srcs: ["DisplayIdentification_test.cpp"],
61 cflags: [
62 "-Wall",
63 "-Werror",
64 ],
65}
66
67cc_test {
Marin Shalamanov896e6302020-04-06 16:11:25 +020068 name: "FlattenableHelpers_test",
69 shared_libs: ["libui"],
70 srcs: ["FlattenableHelpers_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -070071 cflags: [
72 "-Wall",
73 "-Werror",
74 ],
Marin Shalamanov896e6302020-04-06 16:11:25 +020075}
76
77cc_test {
Valerie Hau35493e72019-10-18 13:25:27 -070078 name: "GraphicBufferAllocator_test",
79 header_libs: [
Valerie Hau35493e72019-10-18 13:25:27 -070080 "libnativewindow_headers",
81 ],
82 static_libs: [
83 "libgmock",
84 ],
85 shared_libs: [
Marissa Wall22b2de12019-12-02 18:11:43 -080086 "libhidlbase",
Valerie Hau35493e72019-10-18 13:25:27 -070087 "liblog",
Marissa Wall22b2de12019-12-02 18:11:43 -080088 "libui",
Valerie Hau35493e72019-10-18 13:25:27 -070089 ],
90 srcs: [
91 "GraphicBufferAllocator_test.cpp",
92 "mock/MockGrallocAllocator.cpp",
93 ],
Prabir Pradhan61b41732021-08-16 12:19:26 -070094 cflags: [
95 "-Wall",
96 "-Werror",
97 ],
Valerie Hau35493e72019-10-18 13:25:27 -070098}
99
100cc_test {
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -0700101 name: "GraphicBuffer_test",
102 header_libs: [
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -0700103 "libnativewindow_headers",
104 ],
105 shared_libs: [
Fan Xu021776e2018-12-05 13:34:48 -0800106 "libcutils",
107 "libhidlbase",
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -0700108 "libui",
109 "libutils",
110 ],
111 srcs: ["GraphicBuffer_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -0700112 cflags: [
113 "-Wall",
114 "-Werror",
115 ],
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -0700116}
117
Tianyu Jiang83e514e2019-05-15 15:05:30 -0700118// This test has a main method, and requires a separate binary to be built.
119cc_test {
120 name: "GraphicBufferOverBinder_test",
121 srcs: ["GraphicBufferOverBinder_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -0700122 cflags: [
123 "-Wall",
124 "-Werror",
125 ],
Tianyu Jiang83e514e2019-05-15 15:05:30 -0700126 shared_libs: [
Tianyu Jiang83e514e2019-05-15 15:05:30 -0700127 "libbinder",
Tianyu Jiang83e514e2019-05-15 15:05:30 -0700128 "liblog",
129 "libui",
130 "libutils",
131 ],
132}
133
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -0700134cc_test {
Marin Shalamanov4aa3af12020-09-25 14:20:58 +0200135 name: "Rect_test",
136 test_suites: ["device-tests"],
137 shared_libs: ["libui"],
138 srcs: ["Rect_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -0700139 cflags: [
140 "-Wall",
141 "-Werror",
142 ],
Marin Shalamanov4aa3af12020-09-25 14:20:58 +0200143}
144
145cc_test {
Lloyd Pique31cb2942018-10-19 17:23:03 -0700146 name: "Size_test",
Lloyd Pique1e101362020-02-13 13:24:45 -0800147 test_suites: ["device-tests"],
Lloyd Pique31cb2942018-10-19 17:23:03 -0700148 shared_libs: ["libui"],
149 srcs: ["Size_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -0700150 cflags: [
151 "-Wall",
152 "-Werror",
153 ],
Lloyd Pique31cb2942018-10-19 17:23:03 -0700154}
Ady Abrahamd4302022021-09-14 16:22:24 -0700155
156cc_test {
157 name: "MockFence_test",
158 shared_libs: ["libui"],
159 static_libs: ["libgmock"],
160 srcs: ["MockFence_test.cpp"],
Prabir Pradhan61b41732021-08-16 12:19:26 -0700161 cflags: [
162 "-Wall",
163 "-Werror",
164 ],
Ady Abrahamd4302022021-09-14 16:22:24 -0700165}
166
Prabir Pradhan61b41732021-08-16 12:19:26 -0700167cc_test {
168 name: "Transform_test",
169 shared_libs: ["libui"],
170 srcs: ["Transform_test.cpp"],
171 cflags: [
172 "-Wall",
173 "-Werror",
174 ],
175}
Alec Mouricdf6cbc2021-11-01 17:21:15 -0700176
177cc_test {
Sally Qif6918d42023-08-07 15:28:30 -0700178 name: "HdrRenderTypeUtils_test",
Alec Mouricdf6cbc2021-11-01 17:21:15 -0700179 shared_libs: ["libui"],
Sally Qif6918d42023-08-07 15:28:30 -0700180 srcs: ["HdrRenderTypeUtils_test.cpp"],
Alec Mouricdf6cbc2021-11-01 17:21:15 -0700181 cflags: [
182 "-Wall",
183 "-Werror",
184 ],
185}