• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15cc_test {
16    name: "inputflinger_tests",
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    ],
29    srcs: [
30        "AnrTracker_test.cpp",
31        "BlockingQueue_test.cpp",
32        "EventHub_test.cpp",
33        "TestInputListener.cpp",
34        "InputClassifier_test.cpp",
35        "InputClassifierConverter_test.cpp",
36        "InputDispatcher_test.cpp",
37        "InputReader_test.cpp",
38        "UinputDevice.cpp",
39    ],
40    require_root: true,
41}
42