blob: 28ef77a49618b0c15dccb7fd1cca2e99d2c68902 [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
17cc_test {
18 name: "Region_test",
19 shared_libs: ["libui"],
20 srcs: ["Region_test.cpp"],
Chih-Hung Hsiehd66be0a2017-10-05 13:51:32 -070021 cflags: ["-Wall", "-Werror"],
Dan Willemsen871dda32016-08-25 17:05:22 -070022}
23
24cc_test {
Romain Guycaf2ca42016-11-10 11:45:58 -080025 name: "colorspace_test",
26 shared_libs: ["libui"],
27 srcs: ["colorspace_test.cpp"],
Chih-Hung Hsiehd66be0a2017-10-05 13:51:32 -070028 cflags: ["-Wall", "-Werror"],
Romain Guycaf2ca42016-11-10 11:45:58 -080029}
Jiwen 'Steve' Cai44addfe2018-03-13 21:37:11 -070030
31cc_test {
Marin Shalamanov896e6302020-04-06 16:11:25 +020032 name: "FlattenableHelpers_test",
33 shared_libs: ["libui"],
34 srcs: ["FlattenableHelpers_test.cpp"],
35 cflags: ["-Wall", "-Werror"],
36}
37
38cc_test {
Valerie Hau35493e72019-10-18 13:25:27 -070039 name: "GraphicBufferAllocator_test",
40 header_libs: [
Valerie Hau35493e72019-10-18 13:25:27 -070041 "libnativewindow_headers",
42 ],
43 static_libs: [
44 "libgmock",
45 ],
46 shared_libs: [
Marissa Wall22b2de12019-12-02 18:11:43 -080047 "libhidlbase",
Valerie Hau35493e72019-10-18 13:25:27 -070048 "liblog",
Marissa Wall22b2de12019-12-02 18:11:43 -080049 "libui",
Valerie Hau35493e72019-10-18 13:25:27 -070050 ],
51 srcs: [
52 "GraphicBufferAllocator_test.cpp",
53 "mock/MockGrallocAllocator.cpp",
54 ],
55 cflags: ["-Wall", "-Werror"],
56}
57
58cc_test {
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070059 name: "GraphicBuffer_test",
60 header_libs: [
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070061 "libnativewindow_headers",
62 ],
63 shared_libs: [
Fan Xu021776e2018-12-05 13:34:48 -080064 "libcutils",
65 "libhidlbase",
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070066 "libui",
67 "libutils",
68 ],
69 srcs: ["GraphicBuffer_test.cpp"],
70 cflags: ["-Wall", "-Werror"],
71}
72
Tianyu Jiang83e514e2019-05-15 15:05:30 -070073// This test has a main method, and requires a separate binary to be built.
74cc_test {
75 name: "GraphicBufferOverBinder_test",
76 srcs: ["GraphicBufferOverBinder_test.cpp"],
77 cflags: ["-Wall", "-Werror"],
Tianyu Jiang83e514e2019-05-15 15:05:30 -070078 shared_libs: [
Tianyu Jiang83e514e2019-05-15 15:05:30 -070079 "libbinder",
80 "libgui",
81 "liblog",
82 "libui",
83 "libutils",
84 ],
85}
86
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070087cc_test {
Lloyd Pique31cb2942018-10-19 17:23:03 -070088 name: "Size_test",
Lloyd Pique1e101362020-02-13 13:24:45 -080089 test_suites: ["device-tests"],
Lloyd Pique31cb2942018-10-19 17:23:03 -070090 shared_libs: ["libui"],
91 srcs: ["Size_test.cpp"],
92 cflags: ["-Wall", "-Werror"],
93}