diff options
Diffstat (limited to 'libs/input/tests/Android.bp')
-rw-r--r-- | libs/input/tests/Android.bp | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/libs/input/tests/Android.bp b/libs/input/tests/Android.bp index 3b57146461..6ffc6a8926 100644 --- a/libs/input/tests/Android.bp +++ b/libs/input/tests/Android.bp @@ -1,14 +1,24 @@ // Build the unit tests. +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_native_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["frameworks_native_license"], +} + cc_test { name: "libinput_tests", srcs: [ + "NamedEnum_test.cpp", + "Flags_test.cpp", "IdGenerator_test.cpp", "InputChannel_test.cpp", "InputDevice_test.cpp", "InputEvent_test.cpp", "InputPublisherAndConsumer_test.cpp", "InputWindow_test.cpp", - "LatencyStatistics_test.cpp", "TouchVideoFrame_test.cpp", "VelocityTracker_test.cpp", "VerifiedInputEvent_test.cpp", @@ -18,14 +28,18 @@ cc_test { "-Wextra", "-Werror", ], - shared_libs: [ + static_libs: [ "libinput", - "libcutils", - "libutils", + ], + shared_libs: [ + "libbase", "libbinder", + "libcutils", + "liblog", "libui", - "libbase", - ] + "libutils", + ], + test_suites: ["device-tests"], } // NOTE: This is a compile time test, and does not need to be @@ -34,8 +48,8 @@ cc_test { cc_library_static { name: "StructLayout_test", srcs: ["StructLayout_test.cpp"], + compile_multilib: "both", cflags: [ - "-O0", "-Wall", "-Werror", "-Wextra", |