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