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. 14 15package { 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 24cc_test { 25 name: "inputflinger_tests", 26 defaults: [ 27 "inputflinger_defaults", 28 // For all targets inside inputflinger, these tests build all of their sources using their 29 // defaults rather than including them as shared or static libraries. By doing so, the tests 30 // will always run against the compiled version of the inputflinger code rather than the 31 // version on the device. 32 "libinputflinger_base_defaults", 33 "libinputreader_defaults", 34 "libinputreporter_defaults", 35 "libinputdispatcher_defaults", 36 "libinputflinger_defaults", 37 ], 38 srcs: [ 39 "AnrTracker_test.cpp", 40 "BlockingQueue_test.cpp", 41 "EventHub_test.cpp", 42 "FocusResolver_test.cpp", 43 "IInputFlingerQuery.aidl", 44 "InputClassifier_test.cpp", 45 "InputClassifierConverter_test.cpp", 46 "InputDispatcher_test.cpp", 47 "InputReader_test.cpp", 48 "InputFlingerService_test.cpp", 49 "LatencyTracker_test.cpp", 50 "TestInputListener.cpp", 51 "UinputDevice.cpp", 52 ], 53 aidl: { 54 include_dirs: [ 55 "frameworks/native/libs/gui", 56 "frameworks/native/libs/input", 57 ], 58 }, 59 static_libs: [ 60 "libc++fs" 61 ], 62 require_root: true, 63 test_suites: ["device-tests"], 64} 65