Lloyd Pique | e967d48 | 2018-08-31 11:04:49 -0700 | [diff] [blame] | 1 | // Copyright 2018 The Android Open Source Project |
Lloyd Pique | f58625d | 2017-12-19 13:22:33 -0800 | [diff] [blame] | 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: "libsurfaceflinger_unittest", |
Lloyd Pique | f58625d | 2017-12-19 13:22:33 -0800 | [diff] [blame] | 17 | defaults: ["libsurfaceflinger_defaults"], |
| 18 | test_suites: ["device-tests"], |
Lloyd Pique | e967d48 | 2018-08-31 11:04:49 -0700 | [diff] [blame] | 19 | sanitize: { |
| 20 | // Using the address sanitizer not only helps uncover issues in the code |
| 21 | // covered by the tests, but also covers some of the tricky injection of |
| 22 | // fakes the unit tests currently do. |
| 23 | address: true, |
| 24 | }, |
Lloyd Pique | f58625d | 2017-12-19 13:22:33 -0800 | [diff] [blame] | 25 | srcs: [ |
| 26 | ":libsurfaceflinger_sources", |
Lloyd Pique | 067fe1e | 2018-12-06 19:44:13 -0800 | [diff] [blame^] | 27 | "libsurfaceflinger_unittest_main.cpp", |
Lloyd Pique | d6b579f | 2018-04-06 15:29:10 -0700 | [diff] [blame] | 28 | "CompositionTest.cpp", |
Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 29 | "DisplayIdentificationTest.cpp", |
Lloyd Pique | f58625d | 2017-12-19 13:22:33 -0800 | [diff] [blame] | 30 | "DisplayTransactionTest.cpp", |
Lloyd Pique | 117510d | 2018-03-09 18:52:56 -0800 | [diff] [blame] | 31 | "EventControlThreadTest.cpp", |
Lloyd Pique | 24b0a48 | 2018-03-09 18:52:26 -0800 | [diff] [blame] | 32 | "EventThreadTest.cpp", |
Ana Krulec | 61f86db | 2018-11-19 14:16:35 +0100 | [diff] [blame] | 33 | "LayerHistoryTest.cpp", |
Ana Krulec | 0c8cd52 | 2018-08-31 12:27:28 -0700 | [diff] [blame] | 34 | "SchedulerTest.cpp", |
Ana Krulec | 434c22d | 2018-11-28 13:48:36 +0100 | [diff] [blame] | 35 | "SchedulerUtilsTest.cpp", |
Yiwei Zhang | 16faa5d | 2018-11-13 18:12:59 -0800 | [diff] [blame] | 36 | "TimeStatsTest.cpp", |
Lloyd Pique | cbe0001 | 2018-02-02 15:40:42 -0800 | [diff] [blame] | 37 | "mock/DisplayHardware/MockComposer.cpp", |
| 38 | "mock/DisplayHardware/MockDisplaySurface.cpp", |
Michael Wright | 5d22d4f | 2018-06-21 02:50:34 +0100 | [diff] [blame] | 39 | "mock/DisplayHardware/MockPowerAdvisor.cpp", |
Lloyd Pique | cbe0001 | 2018-02-02 15:40:42 -0800 | [diff] [blame] | 40 | "mock/gui/MockGraphicBufferConsumer.cpp", |
| 41 | "mock/gui/MockGraphicBufferProducer.cpp", |
Lloyd Pique | 41be5d2 | 2018-06-21 13:11:48 -0700 | [diff] [blame] | 42 | "mock/MockDispSync.cpp", |
Lloyd Pique | cbe0001 | 2018-02-02 15:40:42 -0800 | [diff] [blame] | 43 | "mock/MockEventControlThread.cpp", |
| 44 | "mock/MockEventThread.cpp", |
| 45 | "mock/MockMessageQueue.cpp", |
| 46 | "mock/MockNativeWindowSurface.cpp", |
| 47 | "mock/MockSurfaceInterceptor.cpp", |
| 48 | "mock/RenderEngine/MockRenderEngine.cpp", |
| 49 | "mock/system/window/MockNativeWindow.cpp", |
Lloyd Pique | f58625d | 2017-12-19 13:22:33 -0800 | [diff] [blame] | 50 | ], |
| 51 | static_libs: [ |
| 52 | "libgmock", |
| 53 | ], |
| 54 | header_libs: [ |
| 55 | "libsurfaceflinger_headers", |
| 56 | ], |
| 57 | } |