| 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 | 3c53823 | 2021-02-12 21:26:48 -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"], |
| 24 | } |
| 25 | |
| Dan Willemsen | 871dda3 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 26 | cc_test { |
| 27 | name: "Region_test", |
| 28 | shared_libs: ["libui"], |
| 29 | srcs: ["Region_test.cpp"], |
| Chih-Hung Hsieh | d66be0a | 2017-10-05 13:51:32 -0700 | [diff] [blame] | 30 | cflags: ["-Wall", "-Werror"], |
| Dan Willemsen | 871dda3 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | cc_test { |
| Romain Guy | caf2ca4 | 2016-11-10 11:45:58 -0800 | [diff] [blame] | 34 | name: "colorspace_test", |
| 35 | shared_libs: ["libui"], |
| 36 | srcs: ["colorspace_test.cpp"], |
| Chih-Hung Hsieh | d66be0a | 2017-10-05 13:51:32 -0700 | [diff] [blame] | 37 | cflags: ["-Wall", "-Werror"], |
| Romain Guy | caf2ca4 | 2016-11-10 11:45:58 -0800 | [diff] [blame] | 38 | } |
| Jiwen 'Steve' Cai | 44addfe | 2018-03-13 21:37:11 -0700 | [diff] [blame] | 39 | |
| 40 | cc_test { |
| Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 41 | name: "GraphicBufferAllocator_test", |
| 42 | header_libs: [ |
| Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 43 | "libnativewindow_headers", |
| 44 | ], |
| 45 | static_libs: [ |
| 46 | "libgmock", |
| 47 | ], |
| 48 | shared_libs: [ |
| Marissa Wall | 22b2de1 | 2019-12-02 18:11:43 -0800 | [diff] [blame] | 49 | "libhidlbase", |
| Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 50 | "liblog", |
| Marissa Wall | 22b2de1 | 2019-12-02 18:11:43 -0800 | [diff] [blame] | 51 | "libui", |
| Valerie Hau | 35493e7 | 2019-10-18 13:25:27 -0700 | [diff] [blame] | 52 | ], |
| 53 | srcs: [ |
| 54 | "GraphicBufferAllocator_test.cpp", |
| 55 | "mock/MockGrallocAllocator.cpp", |
| 56 | ], |
| 57 | cflags: ["-Wall", "-Werror"], |
| 58 | } |
| 59 | |
| 60 | cc_test { |
| Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 61 | name: "GraphicBuffer_test", |
| 62 | header_libs: [ |
| Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 63 | "libnativewindow_headers", |
| 64 | ], |
| 65 | shared_libs: [ |
| Fan Xu | 021776e | 2018-12-05 13:34:48 -0800 | [diff] [blame] | 66 | "libcutils", |
| 67 | "libhidlbase", |
| Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 68 | "libui", |
| 69 | "libutils", |
| 70 | ], |
| 71 | srcs: ["GraphicBuffer_test.cpp"], |
| 72 | cflags: ["-Wall", "-Werror"], |
| 73 | } |
| 74 | |
| Tianyu Jiang | 83e514e | 2019-05-15 15:05:30 -0700 | [diff] [blame] | 75 | // This test has a main method, and requires a separate binary to be built. |
| 76 | cc_test { |
| 77 | name: "GraphicBufferOverBinder_test", |
| 78 | srcs: ["GraphicBufferOverBinder_test.cpp"], |
| 79 | cflags: ["-Wall", "-Werror"], |
| Tianyu Jiang | 83e514e | 2019-05-15 15:05:30 -0700 | [diff] [blame] | 80 | shared_libs: [ |
| Tianyu Jiang | 83e514e | 2019-05-15 15:05:30 -0700 | [diff] [blame] | 81 | "libbinder", |
| 82 | "libgui", |
| 83 | "liblog", |
| 84 | "libui", |
| 85 | "libutils", |
| 86 | ], |
| 87 | } |
| 88 | |
| Jiwen 'Steve' Cai | 2daf518 | 2018-10-16 00:14:03 -0700 | [diff] [blame] | 89 | cc_test { |
| Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 90 | name: "Size_test", |
| Lloyd Pique | 1e10136 | 2020-02-13 13:24:45 -0800 | [diff] [blame] | 91 | test_suites: ["device-tests"], |
| Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 92 | shared_libs: ["libui"], |
| 93 | srcs: ["Size_test.cpp"], |
| 94 | cflags: ["-Wall", "-Werror"], |
| 95 | } |