1// Copyright (C) 2019 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_base_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_base_license"],
22}
23
24cc_test {
25    name: "libinputservice_test",
26    srcs: [
27        "PointerController_test.cpp",
28    ],
29    sanitize: {
30        hwaddress: true,
31        undefined: true,
32        all_undefined: true,
33        diag: {
34            undefined: true,
35        },
36    },
37    target: {
38        host: {
39            sanitize: {
40                address: true,
41            },
42        },
43    },
44    shared_libs: [
45        "libandroid_runtime",
46        "libbase",
47        "libinput",
48        "libinputservice",
49        "libhwui",
50        "libgui",
51        "libutils",
52    ],
53    static_libs: [
54        "libflagtest",
55        "libgmock",
56        "libgtest",
57    ],
58    header_libs: [
59        "libbase_headers",
60        "libinputflinger_headers",
61    ],
62    include_dirs: [
63        "frameworks/base/libs",
64    ],
65    cflags: [
66        "-Wall",
67        "-Werror",
68        "-Wextra",
69    ],
70    test_suites: [
71        "general-tests",
72    ],
73}
74