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