blob: 0452f8404de0ece1b2e9f39295556f840e5c394f [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 {
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070032 name: "GraphicBuffer_test",
33 header_libs: [
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070034 "libdvr_headers",
35 "libnativewindow_headers",
36 ],
37 shared_libs: [
Fan Xu021776e2018-12-05 13:34:48 -080038 "android.frameworks.bufferhub@1.0",
39 "libcutils",
40 "libhidlbase",
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070041 "libui",
42 "libutils",
43 ],
44 srcs: ["GraphicBuffer_test.cpp"],
45 cflags: ["-Wall", "-Werror"],
46}
47
Tianyu Jiang83e514e2019-05-15 15:05:30 -070048// This test has a main method, and requires a separate binary to be built.
49cc_test {
50 name: "GraphicBufferOverBinder_test",
51 srcs: ["GraphicBufferOverBinder_test.cpp"],
52 cflags: ["-Wall", "-Werror"],
53 header_libs: [
54 "libdvr_headers",
55 ],
56 shared_libs: [
57 "android.frameworks.bufferhub@1.0",
58 "libbinder",
59 "libgui",
60 "liblog",
61 "libui",
62 "libutils",
63 ],
64}
65
Jiwen 'Steve' Cai2daf5182018-10-16 00:14:03 -070066cc_test {
Jiwen 'Steve' Cai33fa2362018-12-13 13:52:45 -080067 name: "BufferHub_test",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070068 header_libs: [
Fan Xu93c94902018-11-01 12:22:05 -070069 "libdvr_headers",
70 "libnativewindow_headers",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070071 ],
Tianyu Jiang99dacaa2018-11-27 18:47:00 -080072 static_libs: [
73 "libgmock",
74 ],
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070075 shared_libs: [
76 "android.frameworks.bufferhub@1.0",
Fan Xu467e08f2018-11-09 15:58:51 -080077 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070078 "libhidlbase",
Tianyu Jiang99dacaa2018-11-27 18:47:00 -080079 "liblog",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070080 "libui",
81 "libutils"
82 ],
Tianyu Jiang99dacaa2018-11-27 18:47:00 -080083 srcs: [
84 "BufferHubBuffer_test.cpp",
85 "BufferHubEventFd_test.cpp",
Jiwen 'Steve' Cai33fa2362018-12-13 13:52:45 -080086 "BufferHubMetadata_test.cpp",
Tianyu Jiang99dacaa2018-11-27 18:47:00 -080087 ],
Jiwen 'Steve' Cai0e7ee222018-10-12 17:20:40 -070088 cflags: ["-Wall", "-Werror"],
89}
Lloyd Pique31cb2942018-10-19 17:23:03 -070090
91cc_test {
92 name: "Size_test",
93 shared_libs: ["libui"],
94 srcs: ["Size_test.cpp"],
95 cflags: ["-Wall", "-Werror"],
96}