blob: 15e8744713870f7faf6518f1d221f6412b551679 [file] [log] [blame]
Dan Willemsen3106c1c2016-10-03 23:56:51 -07001// Build the unit tests,
2
3// Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
4// to integrate with auto-test framework.
Bob Badour3306e492021-02-25 15:35:37 -08005package {
Aditya Choudhary3819e602024-02-05 15:41:13 +00006 default_team: "trendy_team_android_core_graphics_stack",
Bob Badour3306e492021-02-25 15:35:37 -08007 // See: http://go/android-license-faq
8 // A large-scale-change added 'default_applicable_licenses' to import
9 // all of the 'license_kinds' from "frameworks_native_license"
10 // to get the below license kinds:
11 // SPDX-license-identifier-Apache-2.0
12 default_applicable_licenses: ["frameworks_native_license"],
13}
14
Dan Willemsen3106c1c2016-10-03 23:56:51 -070015cc_test {
16 name: "libgui_test",
Dan Shi9cd52062017-03-29 23:09:37 -070017 test_suites: ["device-tests"],
Dan Willemsen3106c1c2016-10-03 23:56:51 -070018
Chih-Hung Hsiehd66be0a2017-10-05 13:51:32 -070019 cflags: [
20 "-Wall",
21 "-Werror",
22 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -070023
24 srcs: [
Nolan Scobiecfa41bf2023-06-14 15:13:18 -040025 "LibGuiMain.cpp", // Custom gtest entrypoint
Valerie Hauc5011f92019-10-11 09:52:07 -070026 "BLASTBufferQueue_test.cpp",
Yahan Zhou3cbda592020-08-03 15:53:27 -070027 "BufferItemConsumer_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070028 "BufferQueue_test.cpp",
Dominik Laskowski5a5e01e2022-07-08 07:52:44 -070029 "CompositorTiming_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070030 "CpuConsumer_test.cpp",
Robert Carr1c4c5592018-09-24 13:18:43 -070031 "EndToEndNativeInputTest.cpp",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -070032 "DisplayInfo_test.cpp",
Kevin DuBois9c0a1762018-10-16 13:32:31 -070033 "DisplayedContentSampling_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070034 "FillBuffer.cpp",
35 "GLTest.cpp",
36 "IGraphicBufferProducer_test.cpp",
Dan Stoza47730d62017-05-16 15:12:48 -070037 "Malicious.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070038 "MultiTextureConsumer_test.cpp",
Kevin DuBois4df38a42019-02-14 12:59:43 -080039 "RegionSampling_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070040 "StreamSplitter_test.cpp",
41 "SurfaceTextureClient_test.cpp",
42 "SurfaceTextureFBO_test.cpp",
43 "SurfaceTextureGLThreadToGL_test.cpp",
44 "SurfaceTextureGLToGL_test.cpp",
45 "SurfaceTextureGL_test.cpp",
46 "SurfaceTextureMultiContextGL_test.cpp",
47 "Surface_test.cpp",
48 "TextureRenderer.cpp",
Rachel Lee18c34372022-01-20 13:57:18 -080049 "VsyncEventData_test.cpp",
chaviw98318de2021-05-19 16:45:23 -050050 "WindowInfo_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070051 ],
52
53 shared_libs: [
Courtney Goeltzenleuchter6a570b62017-03-13 14:30:00 -060054 "android.hardware.configstore@1.0",
55 "android.hardware.configstore-utils",
Sundong Ahne6e7d442020-04-23 21:31:20 +090056 "libSurfaceFlingerProp",
Yiwei Zhang5434a782018-12-05 18:06:32 -080057 "libbase",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070058 "liblog",
59 "libEGL",
60 "libGLESv1_CM",
61 "libGLESv2",
62 "libbinder",
63 "libcutils",
64 "libgui",
Courtney Goeltzenleuchter6a570b62017-03-13 14:30:00 -060065 "libhidlbase",
Robert Carr3720ed02018-08-08 16:08:27 -070066 "libinput",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070067 "libui",
68 "libutils",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -070069 "libnativewindow",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070070 ],
Sundong Ahne6e7d442020-04-23 21:31:20 +090071
72 header_libs: ["libsurfaceflinger_headers"],
Dan Willemsen3106c1c2016-10-03 23:56:51 -070073}
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080074
Yahan Zhou3cbda592020-08-03 15:53:27 -070075// Build the tests that need to run with both 32bit and 64bit.
76cc_test {
77 name: "libgui_multilib_test",
78 test_suites: ["device-tests"],
79
Yahan Zhou3cbda592020-08-03 15:53:27 -070080 cflags: [
81 "-Wall",
82 "-Werror",
83 ],
84
85 srcs: [
86 "DisplayEventStructLayout_test.cpp",
87 ],
88
89 shared_libs: [
90 "libgui",
91 ],
92
93 compile_multilib: "both",
94
95 header_libs: ["libsurfaceflinger_headers"],
jahinimtiaz63138ec2023-03-14 00:07:50 +000096 data: [
97 ":libgui_test",
98 ],
Yahan Zhou3cbda592020-08-03 15:53:27 -070099}
100
Dan Stozaec460082018-12-17 15:35:09 -0800101cc_test {
102 name: "SamplingDemo",
103
Dan Stozaec460082018-12-17 15:35:09 -0800104 cflags: [
105 "-Wall",
106 "-Werror",
107 ],
108
109 srcs: [
110 "SamplingDemo.cpp",
111 ],
112
113 shared_libs: [
114 "libbinder",
115 "libcutils",
116 "libgui",
117 "liblog",
118 "libui",
119 "libutils",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700120 ],
Dan Stozaec460082018-12-17 15:35:09 -0800121}