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