Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 1 | // Copyright (C) 2020 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. |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 14 | |
| 15 | cc_test { |
| 16 | name: "inputflinger_tests", |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 17 | defaults: [ |
| 18 | "inputflinger_defaults", |
| 19 | // For all targets inside inputflinger, these tests build all of their sources using their |
| 20 | // defaults rather than including them as shared or static libraries. By doing so, the tests |
| 21 | // will always run against the compiled version of the inputflinger code rather than the |
| 22 | // version on the device. |
| 23 | "libinputflinger_base_defaults", |
| 24 | "libinputreader_defaults", |
| 25 | "libinputreporter_defaults", |
| 26 | "libinputdispatcher_defaults", |
| 27 | "libinputflinger_defaults", |
| 28 | ], |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 29 | srcs: [ |
Siarhei Vishniakou | d44dddf | 2020-03-25 16:16:40 -0700 | [diff] [blame] | 30 | "AnrTracker_test.cpp", |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 31 | "BlockingQueue_test.cpp", |
Siarhei Vishniakou | 8588cc9 | 2018-12-12 18:17:58 -0800 | [diff] [blame] | 32 | "EventHub_test.cpp", |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 33 | "TestInputListener.cpp", |
| 34 | "InputClassifier_test.cpp", |
Siarhei Vishniakou | a47a4d4 | 2019-05-06 17:14:11 -0700 | [diff] [blame] | 35 | "InputClassifierConverter_test.cpp", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 36 | "InputDispatcher_test.cpp", |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 37 | "InputReader_test.cpp", |
Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 38 | "InputFlingerService_test.cpp", |
Prabir Pradhan | e0105c9 | 2019-12-26 12:32:13 -0800 | [diff] [blame] | 39 | "UinputDevice.cpp", |
Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 40 | "IInputFlingerQuery.aidl" |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 41 | ], |
Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 42 | aidl: { |
| 43 | include_dirs: [ |
| 44 | "frameworks/native/libs/input", |
| 45 | ], |
| 46 | }, |
Chris Ye | 8594e19 | 2020-07-14 10:34:06 -0700 | [diff] [blame^] | 47 | static_libs: [ |
| 48 | "libc++fs" |
| 49 | ], |
Siarhei Vishniakou | 8588cc9 | 2018-12-12 18:17:58 -0800 | [diff] [blame] | 50 | require_root: true, |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 51 | } |