blob: a87740aeca83660d4a03216361d79258b2f4d861 [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"],
Chih-Hung Hsiehd66be0a2017-10-05 13:51:32 -070030 cflags: ["-Wall", "-Werror"],
Dan Willemsen871dda32016-08-25 17:05:22 -070031}
32
33cc_test {
Romain Guycaf2ca42016-11-10 11:45:58 -080034 name: "colorspace_test",
35 shared_libs: ["libui"],
36 srcs: ["colorspace_test.cpp"],
Chih-Hung Hsiehd66be0a2017-10-05 13:51:32 -070037 cflags: ["-Wall", "-Werror"],
Romain Guycaf2ca42016-11-10 11:45:58 -080038}
Jiwen 'Steve' Cai44addfe2018-03-13 21:37:11 -070039
40cc_test {
Marin Shalamanov0f10d0d2020-08-06 20:04:06 +020041 name: "DisplayId_test",
42 shared_libs: ["libui"],
43 srcs: ["DisplayId_test.cpp"],
44 cflags: ["-Wall", "-Werror"],
45}
46
47cc_test {
Marin Shalamanov896e6302020-04-06 16:11:25 +020048 name: "FlattenableHelpers_test",
49 shared_libs: ["libui"],
50 srcs: ["FlattenableHelpers_test.cpp"],
51 cflags: ["-Wall", "-Werror"],
52}
53
54cc_test {
Valerie Hau35493e72019-10-18 13:25:27 -070055 name: "GraphicBufferAllocator_test",
56 header_libs: [
Valerie Hau35493e72019-10-18 13:25:27 -070057 "libnativewindow_headers",
58 ],
59 static_libs: [
60 "libgmock",
61 ],
62 shared_libs: [
Marissa Wall22b2de12019-12-02 18:11:43 -080063 "libhidlbase",
Valerie Hau35493e72019-10-18 13:25:27 -070064 "liblog",
Marissa Wall22b2de12019-12-02 18:11:43 -080065 "libui",
Valerie Hau35493e72019-10-18 13:25:27 -070066 ],
67 srcs: [
68 "GraphicBufferAllocator_test.cpp",
69 "mock/MockGrallocAllocator.cpp",
70 ],
71 cflags: ["-Wall", "-Werror"],
72}
73
74cc_test {
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070075 name: "GraphicBuffer_test",
76 header_libs: [
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070077 "libnativewindow_headers",
78 ],
79 shared_libs: [
Fan Xu021776e2018-12-05 13:34:48 -080080 "libcutils",
81 "libhidlbase",
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070082 "libui",
83 "libutils",
84 ],
85 srcs: ["GraphicBuffer_test.cpp"],
86 cflags: ["-Wall", "-Werror"],
87}
88
Tianyu Jiang83e514e2019-05-15 15:05:30 -070089// This test has a main method, and requires a separate binary to be built.
90cc_test {
91 name: "GraphicBufferOverBinder_test",
92 srcs: ["GraphicBufferOverBinder_test.cpp"],
93 cflags: ["-Wall", "-Werror"],
Tianyu Jiang83e514e2019-05-15 15:05:30 -070094 shared_libs: [
Tianyu Jiang83e514e2019-05-15 15:05:30 -070095 "libbinder",
96 "libgui",
97 "liblog",
98 "libui",
99 "libutils",
100 ],
101}
102
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -0700103cc_test {
Marin Shalamanov4aa3af12020-09-25 14:20:58 +0200104 name: "Rect_test",
105 test_suites: ["device-tests"],
106 shared_libs: ["libui"],
107 srcs: ["Rect_test.cpp"],
108 cflags: ["-Wall", "-Werror"],
109}
110
111cc_test {
Lloyd Pique31cb2942018-10-19 17:23:03 -0700112 name: "Size_test",
Lloyd Pique1e101362020-02-13 13:24:45 -0800113 test_suites: ["device-tests"],
Lloyd Pique31cb2942018-10-19 17:23:03 -0700114 shared_libs: ["libui"],
115 srcs: ["Size_test.cpp"],
116 cflags: ["-Wall", "-Werror"],
117}
Ady Abrahamd4302022021-09-14 16:22:24 -0700118
119cc_test {
120 name: "MockFence_test",
121 shared_libs: ["libui"],
122 static_libs: ["libgmock"],
123 srcs: ["MockFence_test.cpp"],
124 cflags: ["-Wall", "-Werror"],
125}
126