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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_native_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_native_license"], 22} 23 24cc_test { 25 name: "SurfaceFlinger_test", 26 defaults: [ 27 "android.hardware.graphics.common-ndk_shared", 28 "surfaceflinger_defaults", 29 ], 30 test_suites: ["device-tests"], 31 srcs: [ 32 "BootDisplayMode_test.cpp", 33 "BufferGenerator.cpp", 34 "CommonTypes_test.cpp", 35 "Credentials_test.cpp", 36 "DereferenceSurfaceControl_test.cpp", 37 "DisplayConfigs_test.cpp", 38 "DisplayEventReceiver_test.cpp", 39 "EffectLayer_test.cpp", 40 "LayerBorder_test.cpp", 41 "InvalidHandles_test.cpp", 42 "LayerCallback_test.cpp", 43 "LayerRenderTypeTransaction_test.cpp", 44 "LayerState_test.cpp", 45 "LayerTransaction_test.cpp", 46 "LayerTrustedPresentationListener_test.cpp", 47 "LayerTypeAndRenderTypeTransaction_test.cpp", 48 "LayerTypeTransaction_test.cpp", 49 "LayerUpdate_test.cpp", 50 "MirrorLayer_test.cpp", 51 "MultiDisplayLayerBounds_test.cpp", 52 "RefreshRateOverlay_test.cpp", 53 "RelativeZ_test.cpp", 54 "ReleaseBufferCallback_test.cpp", 55 "ScreenCapture_test.cpp", 56 "SetFrameRate_test.cpp", 57 "SetFrameRateOverride_test.cpp", 58 "SetGeometry_test.cpp", 59 "Stress_test.cpp", 60 "TextureFiltering_test.cpp", 61 "VirtualDisplay_test.cpp", 62 "WindowInfosListener_test.cpp", 63 ], 64 data: ["SurfaceFlinger_test.filter"], 65 static_libs: [ 66 "liblayers_proto", 67 "android.hardware.graphics.composer@2.1", 68 ], 69 shared_libs: [ 70 "android.hardware.graphics.common@1.2", 71 "libandroid", 72 "libbase", 73 "libbinder", 74 "libcutils", 75 "libEGL", 76 "libGLESv2", 77 "libgui", 78 "liblog", 79 "libnativewindow", 80 "libprotobuf-cpp-full", 81 "libui", 82 "libutils", 83 ], 84 header_libs: [ 85 "libnativewindow_headers", 86 ], 87} 88 89cc_defaults { 90 name: "ipc_defaults", 91 cflags: [ 92 "-Wall", 93 "-Werror", 94 ], 95} 96 97cc_test { 98 name: "IPC_test", 99 defaults: ["ipc_defaults"], 100 test_suites: ["device-tests"], 101 srcs: [ 102 "BufferGenerator.cpp", 103 "IPC_test.cpp", 104 ], 105 cppflags: [ 106 "-Wall", 107 "-Werror", 108 "-Wformat", 109 "-Wthread-safety", 110 "-Wunused", 111 "-Wunreachable-code", 112 ], 113 shared_libs: [ 114 "libandroid", 115 "libbinder", 116 "libcutils", 117 "libEGL", 118 "libGLESv2", 119 "libgui", 120 "liblayers_proto", 121 "liblog", 122 "libprotobuf-cpp-full", 123 "libui", 124 "libutils", 125 ], 126 cpp_std: "experimental", 127 gnu_extensions: false, 128 data: [ 129 ":SurfaceFlinger_test", 130 ], 131} 132 133subdirs = [ 134 "hwc2", 135 "unittests", 136 "utils", 137 "vsync", 138 "waitforvsync", 139] 140