blob: 97138c73c0d4a2451a0dcbddbc14b1eeeaa44bf5 [file] [log] [blame]
Prabir Pradhan9244aea2020-02-05 20:31:40 -08001// 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 Cross45a1b9c2017-04-19 16:56:46 -070014
Bob Badour3306e492021-02-25 15:35:37 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Colin Cross45a1b9c2017-04-19 16:56:46 -070024cc_test {
25 name: "inputflinger_tests",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070026 host_supported: true,
Prabir Pradhan9244aea2020-02-05 20:31:40 -080027 defaults: [
28 "inputflinger_defaults",
29 // For all targets inside inputflinger, these tests build all of their sources using their
30 // defaults rather than including them as shared or static libraries. By doing so, the tests
31 // will always run against the compiled version of the inputflinger code rather than the
32 // version on the device.
33 "libinputflinger_base_defaults",
34 "libinputreader_defaults",
35 "libinputreporter_defaults",
36 "libinputdispatcher_defaults",
37 "libinputflinger_defaults",
38 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -070039 srcs: [
Siarhei Vishniakoud44dddf2020-03-25 16:16:40 -070040 "AnrTracker_test.cpp",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080041 "BlockingQueue_test.cpp",
Siarhei Vishniakou8588cc92018-12-12 18:17:58 -080042 "EventHub_test.cpp",
Harry Cuttsa5b71292022-11-28 12:56:17 +000043 "FakeEventHub.cpp",
Harry Cutts6b5fbc52022-11-28 16:37:43 +000044 "FakeInputReaderPolicy.cpp",
Harry Cuttsb57f1702022-11-28 15:34:22 +000045 "FakePointerController.cpp",
Vishnu Nairc519ff72021-01-21 08:23:08 -080046 "FocusResolver_test.cpp",
Harry Cutts4fb941a2022-12-14 19:14:04 +000047 "GestureConverter_test.cpp",
Harry Cutts47db1c72022-12-13 19:20:47 +000048 "HardwareStateConverter_test.cpp",
Harry Cuttse6512e12022-11-28 18:44:01 +000049 "InputMapperTest.cpp",
Siarhei Vishniakou98996032022-08-03 11:54:47 -070050 "InputProcessor_test.cpp",
51 "InputProcessorConverter_test.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070052 "InputDispatcher_test.cpp",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080053 "InputReader_test.cpp",
Harry Cutts144ff542022-11-28 17:41:06 +000054 "InstrumentedInputReader.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000055 "LatencyTracker_test.cpp",
Michael Wright1f2db4f2022-11-24 16:47:38 +000056 "NotifyArgs_test.cpp",
Siarhei Vishniakoua3c8e512022-02-10 19:46:34 -080057 "PreferStylusOverTouch_test.cpp",
Harry Cutts1b217912023-01-03 17:13:19 +000058 "PropertyProvider_test.cpp",
Vishnu Naire798b472020-07-23 13:52:21 -070059 "TestInputListener.cpp",
Prabir Pradhane0105c92019-12-26 12:32:13 -080060 "UinputDevice.cpp",
Siarhei Vishniakouba0a8752021-09-14 14:43:25 -070061 "UnwantedInteractionBlocker_test.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070062 ],
Chris Ye0783e992020-06-02 21:34:49 -070063 aidl: {
64 include_dirs: [
chaviw98318de2021-05-19 16:45:23 -050065 "frameworks/native/libs/gui",
Chris Ye0783e992020-06-02 21:34:49 -070066 "frameworks/native/libs/input",
67 ],
68 },
Siarhei Vishniakou31977182022-09-30 08:51:23 -070069 target: {
70 android: {
71 shared_libs: [
72 "libinput",
73 "libvintf",
74 ],
75 },
76 host: {
77 include_dirs: [
78 "bionic/libc/kernel/android/uapi/",
79 "bionic/libc/kernel/uapi",
80 ],
81 cflags: [
82 "-D__ANDROID_HOST__",
83 ],
84 static_libs: [
85 "libinput",
86 ],
87 },
88 },
Siarhei Vishniakou14bcc3d2023-02-28 14:07:41 -080089 sanitize: {
90 undefined: true,
91 all_undefined: true,
92 diag: {
93 undefined: true,
94 },
95 },
Chris Ye8594e192020-07-14 10:34:06 -070096 static_libs: [
Siarhei Vishniakou60a15882022-01-31 09:00:15 -080097 "libc++fs",
Siarhei Vishniakou88151b82022-08-11 00:53:38 +000098 "libgmock",
Chris Ye8594e192020-07-14 10:34:06 -070099 ],
Siarhei Vishniakou8588cc92018-12-12 18:17:58 -0800100 require_root: true,
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700101 test_options: {
102 unit_test: true,
103 },
Siarhei Vishniakoua8388392020-10-21 23:58:48 -0500104 test_suites: ["device-tests"],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700105}