blob: f422939abdce889dc68056d27e3c5b63beab616f [file] [log] [blame]
Lloyd Pique66ce40d2018-01-23 16:42:19 -08001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_test {
16 name: "SurfaceFlinger_test",
17 defaults: ["surfaceflinger_defaults"],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080018 test_suites: ["device-tests"],
19 srcs: [
Marissa Wall713b63f2018-10-17 15:42:43 -070020 "BufferGenerator.cpp",
Ana Krulec13be8ad2018-08-21 02:43:56 +000021 "Credentials_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070022 "DereferenceSurfaceControl_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070023 "DisplayActiveConfig_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070024 "InvalidHandles_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070025 "LayerCallback_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070026 "LayerRenderTypeTransaction_test.cpp",
27 "LayerTransaction_test.cpp",
28 "LayerTypeAndRenderTypeTransaction_test.cpp",
29 "LayerTypeTransaction_test.cpp",
30 "LayerUpdate_test.cpp",
31 "MultiDisplayLayerBounds_test.cpp",
32 "RelativeZ_test.cpp",
33 "SetGeometry_test.cpp",
34 "Stress_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080035 "SurfaceInterceptor_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070036 "VirtualDisplay_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080037 ],
38 data: ["SurfaceFlinger_test.filter"],
39 static_libs: [
40 "libtrace_proto",
41 ],
42 shared_libs: [
43 "libandroid",
44 "libbinder",
45 "libcutils",
46 "libEGL",
47 "libGLESv2",
48 "libgui",
chaviw7794ec12018-03-14 13:28:39 -070049 "liblayers_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080050 "liblog",
51 "libprotobuf-cpp-full",
Yiwei Zhang0102ad22018-05-02 17:37:17 -070052 "libtimestats_proto",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080053 "libui",
54 "libutils",
55 ]
Valerie Hau9dab9732019-08-20 09:29:25 -070056}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080057
Valerie Hau9dab9732019-08-20 09:29:25 -070058cc_defaults {
59 name: "ipc_defaults",
60 cflags: [
61 "-Wall",
62 "-Werror",
63 ],
64}
65
66cc_test {
67 name: "IPC_test",
68 defaults: ["ipc_defaults"],
69 test_suites: ["device-tests"],
70 srcs: [
71 "BufferGenerator.cpp",
72 "IPC_test.cpp",
73 ],
74 cppflags: [
75 "-Wall",
76 "-Werror",
77 "-Wformat",
78 "-Wthread-safety",
79 "-Wunused",
80 "-Wunreachable-code",
81 ],
82 shared_libs: [
83 "libandroid",
84 "libbinder",
85 "libcutils",
86 "libEGL",
87 "libGLESv2",
88 "libgui",
89 "liblayers_proto",
90 "liblog",
91 "libprotobuf-cpp-full",
92 "libtimestats_proto",
93 "libui",
94 "libutils",
95 ],
96 cpp_std: "experimental",
97 gnu_extensions: false,
Lloyd Pique66ce40d2018-01-23 16:42:19 -080098}
99
100subdirs = [
101 "fakehwc",
102 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800103 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700104 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800105 "vsync",
106 "waitforvsync",
107]