1// Build the unit tests.
2package {
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "frameworks_native_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["frameworks_native_license"],
9}
10
11cc_test {
12    name: "libinput_tests",
13    srcs: [
14        "IdGenerator_test.cpp",
15        "InputChannel_test.cpp",
16        "InputDevice_test.cpp",
17        "InputEvent_test.cpp",
18        "InputPublisherAndConsumer_test.cpp",
19        "TouchVideoFrame_test.cpp",
20        "VelocityTracker_test.cpp",
21        "VerifiedInputEvent_test.cpp",
22    ],
23    static_libs: [
24        "libgui_window_info_static",
25        "libinput",
26    ],
27    cflags: [
28        "-Wall",
29        "-Wextra",
30        "-Werror",
31    ],
32    shared_libs: [
33        "libbase",
34        "libbinder",
35        "libcutils",
36        "liblog",
37        "libui",
38        "libutils",
39    ],
40    data: ["data/*.kcm"],
41    test_suites: ["device-tests"],
42}
43
44// NOTE: This is a compile time test, and does not need to be
45// run. All assertions are static_asserts and will fail during
46// buildtime if something's wrong.
47cc_library_static {
48    name: "StructLayout_test",
49    srcs: ["StructLayout_test.cpp"],
50    compile_multilib: "both",
51    cflags: [
52        "-Wall",
53        "-Werror",
54        "-Wextra",
55    ],
56    shared_libs: [
57        "libinput",
58        "libcutils",
59        "libutils",
60        "libbinder",
61        "libui",
62        "libbase",
63    ],
64}
65