Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 1 | // 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 | |
| 15 | cc_test { |
| 16 | name: "SurfaceFlinger_test", |
| 17 | defaults: ["surfaceflinger_defaults"], |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 18 | test_suites: ["device-tests"], |
| 19 | srcs: [ |
Marissa Wall | 713b63f | 2018-10-17 15:42:43 -0700 | [diff] [blame] | 20 | "BufferGenerator.cpp", |
Marissa Wall | 5b28548 | 2019-11-18 17:07:46 -0800 | [diff] [blame] | 21 | "CommonTypes_test.cpp", |
Ana Krulec | 13be8ad | 2018-08-21 02:43:56 +0000 | [diff] [blame] | 22 | "Credentials_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 23 | "DereferenceSurfaceControl_test.cpp", |
chaviw | 5e1e8f2 | 2020-07-10 12:46:21 -0700 | [diff] [blame] | 24 | "DetachChildren_test.cpp", |
Ana Krulec | 0782b88 | 2019-10-15 17:34:54 -0700 | [diff] [blame] | 25 | "DisplayConfigs_test.cpp", |
Vishnu Nair | c43a23c | 2020-05-29 14:32:27 -0700 | [diff] [blame] | 26 | "EffectLayer_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 27 | "InvalidHandles_test.cpp", |
Valerie Hau | 9cfc6d8 | 2019-09-23 13:54:07 -0700 | [diff] [blame] | 28 | "LayerCallback_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 29 | "LayerRenderTypeTransaction_test.cpp", |
chaviw | 618c42d | 2020-07-24 15:25:08 -0700 | [diff] [blame^] | 30 | "LayerState_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 31 | "LayerTransaction_test.cpp", |
| 32 | "LayerTypeAndRenderTypeTransaction_test.cpp", |
| 33 | "LayerTypeTransaction_test.cpp", |
| 34 | "LayerUpdate_test.cpp", |
chaviw | fe94a22 | 2019-08-21 13:52:59 -0700 | [diff] [blame] | 35 | "MirrorLayer_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 36 | "MultiDisplayLayerBounds_test.cpp", |
| 37 | "RelativeZ_test.cpp", |
Steven Thomas | 3172e20 | 2020-01-06 19:25:30 -0800 | [diff] [blame] | 38 | "SetFrameRate_test.cpp", |
chaviw | 76f5f2f | 2019-09-23 10:15:51 -0700 | [diff] [blame] | 39 | "SetGeometry_test.cpp", |
| 40 | "Stress_test.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 41 | "SurfaceInterceptor_test.cpp", |
chaviw | 8beb414 | 2019-04-11 13:09:05 -0700 | [diff] [blame] | 42 | "VirtualDisplay_test.cpp", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 43 | ], |
| 44 | data: ["SurfaceFlinger_test.filter"], |
| 45 | static_libs: [ |
| 46 | "libtrace_proto", |
| 47 | ], |
| 48 | shared_libs: [ |
Steven Moreland | 1ac7ce9 | 2020-01-06 13:58:00 -0800 | [diff] [blame] | 49 | "android.hardware.graphics.common-ndk_platform", |
Marissa Wall | 5b28548 | 2019-11-18 17:07:46 -0800 | [diff] [blame] | 50 | "android.hardware.graphics.common@1.2", |
| 51 | "android.hardware.graphics.composer@2.1", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 52 | "libandroid", |
| 53 | "libbinder", |
| 54 | "libcutils", |
| 55 | "libEGL", |
| 56 | "libGLESv2", |
| 57 | "libgui", |
chaviw | 7794ec1 | 2018-03-14 13:28:39 -0700 | [diff] [blame] | 58 | "liblayers_proto", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 59 | "liblog", |
Peiyong Lin | 91a2b3d | 2019-12-12 21:33:11 -0800 | [diff] [blame] | 60 | "libnativewindow", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 61 | "libprotobuf-cpp-full", |
| 62 | "libui", |
| 63 | "libutils", |
Peiyong Lin | 91a2b3d | 2019-12-12 21:33:11 -0800 | [diff] [blame] | 64 | ], |
| 65 | header_libs: [ |
| 66 | "libnativewindow_headers", |
| 67 | ], |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 68 | } |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 69 | |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 70 | cc_defaults { |
| 71 | name: "ipc_defaults", |
| 72 | cflags: [ |
| 73 | "-Wall", |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 74 | "-Werror", |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 75 | ], |
| 76 | } |
| 77 | |
| 78 | cc_test { |
| 79 | name: "IPC_test", |
| 80 | defaults: ["ipc_defaults"], |
| 81 | test_suites: ["device-tests"], |
| 82 | srcs: [ |
| 83 | "BufferGenerator.cpp", |
| 84 | "IPC_test.cpp", |
| 85 | ], |
| 86 | cppflags: [ |
| 87 | "-Wall", |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 88 | "-Werror", |
| 89 | "-Wformat", |
| 90 | "-Wthread-safety", |
| 91 | "-Wunused", |
| 92 | "-Wunreachable-code", |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 93 | ], |
| 94 | shared_libs: [ |
| 95 | "libandroid", |
| 96 | "libbinder", |
| 97 | "libcutils", |
| 98 | "libEGL", |
| 99 | "libGLESv2", |
| 100 | "libgui", |
| 101 | "liblayers_proto", |
| 102 | "liblog", |
| 103 | "libprotobuf-cpp-full", |
Valerie Hau | 9dab973 | 2019-08-20 09:29:25 -0700 | [diff] [blame] | 104 | "libui", |
| 105 | "libutils", |
| 106 | ], |
| 107 | cpp_std: "experimental", |
| 108 | gnu_extensions: false, |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | subdirs = [ |
| 112 | "fakehwc", |
| 113 | "hwc2", |
Lloyd Pique | f58625d | 2017-12-19 13:22:33 -0800 | [diff] [blame] | 114 | "unittests", |
Valerie Hau | e9137b7 | 2019-08-27 13:22:18 -0700 | [diff] [blame] | 115 | "utils", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 116 | "vsync", |
| 117 | "waitforvsync", |
| 118 | ] |