Dan Willemsen | 871dda3 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2014 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "frameworks_native_libs_ui_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["frameworks_native_libs_ui_license"], |
John Reck | 38bc8a8 | 2024-02-21 17:08:27 -0500 | [diff] [blame] | 24 | default_team: "trendy_team_android_core_graphics_stack", |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 25 | } |
| 26 | |
Dan Willemsen | 871dda3 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 27 | cc_test { |
| 28 | name: "Region_test", |
| 29 | shared_libs: ["libui"], |
| 30 | srcs: ["Region_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 31 | cflags: [ |
| 32 | "-Wall", |
| 33 | "-Werror", |
| 34 | ], |
Dan Willemsen | 871dda3 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | cc_test { |
Romain Guy | caf2ca4 | 2016-11-10 11:45:58 -0800 | [diff] [blame] | 38 | name: "colorspace_test", |
| 39 | shared_libs: ["libui"], |
| 40 | srcs: ["colorspace_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 41 | cflags: [ |
| 42 | "-Wall", |
| 43 | "-Werror", |
| 44 | ], |
Romain Guy | caf2ca4 | 2016-11-10 11:45:58 -0800 | [diff] [blame] | 45 | } |
Jiwen 'Steve' Cai | 44addfe | 2018-03-13 21:37:11 -0700 | [diff] [blame] | 46 | |
| 47 | cc_test { |
Marin Shalamanov | 0f10d0d | 2020-08-06 20:04:06 +0200 | [diff] [blame] | 48 | name: "DisplayId_test", |
| 49 | shared_libs: ["libui"], |
| 50 | srcs: ["DisplayId_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 51 | cflags: [ |
| 52 | "-Wall", |
| 53 | "-Werror", |
| 54 | ], |
Marin Shalamanov | 0f10d0d | 2020-08-06 20:04:06 +0200 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | cc_test { |
Dominik Laskowski | ee79fcb | 2024-02-09 15:17:17 -0500 | [diff] [blame] | 58 | name: "DisplayIdentification_test", |
| 59 | shared_libs: ["libui"], |
| 60 | static_libs: ["libgmock"], |
| 61 | srcs: ["DisplayIdentification_test.cpp"], |
| 62 | cflags: [ |
| 63 | "-Wall", |
| 64 | "-Werror", |
| 65 | ], |
| 66 | } |
| 67 | |
| 68 | cc_test { |
Marin Shalamanov | 896e630 | 2020-04-06 16:11:25 +0200 | [diff] [blame] | 69 | name: "FlattenableHelpers_test", |
| 70 | shared_libs: ["libui"], |
| 71 | srcs: ["FlattenableHelpers_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 72 | cflags: [ |
| 73 | "-Wall", |
| 74 | "-Werror", |
| 75 | ], |
Marin Shalamanov | 896e630 | 2020-04-06 16:11:25 +0200 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | cc_test { |
Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 79 | name: "GraphicBufferAllocator_test", |
| 80 | header_libs: [ |
Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 81 | "libnativewindow_headers", |
| 82 | ], |
| 83 | static_libs: [ |
| 84 | "libgmock", |
| 85 | ], |
| 86 | shared_libs: [ |
Marissa Wall | 22b2de1 | 2019-12-02 18:11:43 -0800 | [diff] [blame] | 87 | "libhidlbase", |
Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 88 | "liblog", |
Marissa Wall | 22b2de1 | 2019-12-02 18:11:43 -0800 | [diff] [blame] | 89 | "libui", |
Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 90 | ], |
| 91 | srcs: [ |
| 92 | "GraphicBufferAllocator_test.cpp", |
| 93 | "mock/MockGrallocAllocator.cpp", |
| 94 | ], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 95 | cflags: [ |
| 96 | "-Wall", |
| 97 | "-Werror", |
| 98 | ], |
Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | cc_test { |
Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 102 | name: "GraphicBuffer_test", |
| 103 | header_libs: [ |
Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 104 | "libnativewindow_headers", |
| 105 | ], |
| 106 | shared_libs: [ |
Fan Xu | 021776e | 2018-12-05 13:34:48 -0800 | [diff] [blame] | 107 | "libcutils", |
| 108 | "libhidlbase", |
Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 109 | "libui", |
| 110 | "libutils", |
| 111 | ], |
| 112 | srcs: ["GraphicBuffer_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 113 | cflags: [ |
| 114 | "-Wall", |
| 115 | "-Werror", |
| 116 | ], |
Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 117 | } |
| 118 | |
Tianyu Jiang | 83e514e | 2019-05-15 15:05:30 -0700 | [diff] [blame] | 119 | // This test has a main method, and requires a separate binary to be built. |
| 120 | cc_test { |
| 121 | name: "GraphicBufferOverBinder_test", |
| 122 | srcs: ["GraphicBufferOverBinder_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 123 | cflags: [ |
| 124 | "-Wall", |
| 125 | "-Werror", |
| 126 | ], |
Tianyu Jiang | 83e514e | 2019-05-15 15:05:30 -0700 | [diff] [blame] | 127 | shared_libs: [ |
Tianyu Jiang | 83e514e | 2019-05-15 15:05:30 -0700 | [diff] [blame] | 128 | "libbinder", |
Tianyu Jiang | 83e514e | 2019-05-15 15:05:30 -0700 | [diff] [blame] | 129 | "liblog", |
| 130 | "libui", |
| 131 | "libutils", |
| 132 | ], |
| 133 | } |
| 134 | |
Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 135 | cc_test { |
Marin Shalamanov | 4aa3af1 | 2020-09-25 14:20:58 +0200 | [diff] [blame] | 136 | name: "Rect_test", |
| 137 | test_suites: ["device-tests"], |
| 138 | shared_libs: ["libui"], |
| 139 | srcs: ["Rect_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 140 | cflags: [ |
| 141 | "-Wall", |
| 142 | "-Werror", |
| 143 | ], |
Marin Shalamanov | 4aa3af1 | 2020-09-25 14:20:58 +0200 | [diff] [blame] | 144 | } |
| 145 | |
| 146 | cc_test { |
Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 147 | name: "Size_test", |
Lloyd Pique | 1e10136 | 2020-02-13 13:24:45 -0800 | [diff] [blame] | 148 | test_suites: ["device-tests"], |
Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 149 | shared_libs: ["libui"], |
| 150 | srcs: ["Size_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 151 | cflags: [ |
| 152 | "-Wall", |
| 153 | "-Werror", |
| 154 | ], |
Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 155 | } |
Ady Abraham | d430202 | 2021-09-14 16:22:24 -0700 | [diff] [blame] | 156 | |
| 157 | cc_test { |
| 158 | name: "MockFence_test", |
| 159 | shared_libs: ["libui"], |
| 160 | static_libs: ["libgmock"], |
| 161 | srcs: ["MockFence_test.cpp"], |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 162 | cflags: [ |
| 163 | "-Wall", |
| 164 | "-Werror", |
| 165 | ], |
Ady Abraham | d430202 | 2021-09-14 16:22:24 -0700 | [diff] [blame] | 166 | } |
| 167 | |
Prabir Pradhan | 61b4173 | 2021-08-16 12:19:26 -0700 | [diff] [blame] | 168 | cc_test { |
| 169 | name: "Transform_test", |
| 170 | shared_libs: ["libui"], |
| 171 | srcs: ["Transform_test.cpp"], |
| 172 | cflags: [ |
| 173 | "-Wall", |
| 174 | "-Werror", |
| 175 | ], |
| 176 | } |
Alec Mouri | cdf6cbc | 2021-11-01 17:21:15 -0700 | [diff] [blame] | 177 | |
| 178 | cc_test { |
Sally Qi | f6918d4 | 2023-08-07 15:28:30 -0700 | [diff] [blame] | 179 | name: "HdrRenderTypeUtils_test", |
Alec Mouri | cdf6cbc | 2021-11-01 17:21:15 -0700 | [diff] [blame] | 180 | shared_libs: ["libui"], |
Sally Qi | f6918d4 | 2023-08-07 15:28:30 -0700 | [diff] [blame] | 181 | srcs: ["HdrRenderTypeUtils_test.cpp"], |
Alec Mouri | cdf6cbc | 2021-11-01 17:21:15 -0700 | [diff] [blame] | 182 | cflags: [ |
| 183 | "-Wall", |
| 184 | "-Werror", |
| 185 | ], |
| 186 | } |