Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f755b7b6 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Add diag for inputflinger tests

In some cases diag may give us better error reporting. We can't add diag
to production code because it would slow down the code, but having it on
tests shouldn't have any impact.

Bug: 378308551
Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST
Flag: TEST_ONLY
Change-Id: I91349ee7e880685519690a47580a18f240d00b9f
parent 3001fd61
Loading
Loading
Loading
Loading
+16 −9
Original line number Diff line number Diff line
@@ -40,11 +40,11 @@ cc_test {
        // defaults rather than including them as shared or static libraries. By doing so, the tests
        // will always run against the compiled version of the inputflinger code rather than the
        // version on the device.
        "libinputdispatcher_defaults",
        "libinputflinger_base_defaults",
        "libinputflinger_defaults",
        "libinputreader_defaults",
        "libinputreporter_defaults",
        "libinputdispatcher_defaults",
        "libinputflinger_defaults",
    ],
    srcs: [
        ":inputdispatcher_common_test_sources",
@@ -62,16 +62,18 @@ cc_test {
        "HardwareStateConverter_test.cpp",
        "InputDeviceMetricsCollector_test.cpp",
        "InputDeviceMetricsSource_test.cpp",
        "InputDispatcher_test.cpp",
        "InputMapperTest.cpp",
        "InputProcessor_test.cpp",
        "InputProcessorConverter_test.cpp",
        "InputDispatcher_test.cpp",
        "InputProcessor_test.cpp",
        "InputReader_test.cpp",
        "InputTraceSession.cpp",
        "InputTracingTest.cpp",
        "InstrumentedInputReader.cpp",
        "JoystickInputMapper_test.cpp",
        "KeyboardInputMapper_test.cpp",
        "LatencyTracker_test.cpp",
        "MultiTouchInputMapper_test.cpp",
        "MultiTouchMotionAccumulator_test.cpp",
        "NotifyArgs_test.cpp",
        "PointerChoreographer_test.cpp",
@@ -82,14 +84,12 @@ cc_test {
        "SlopController_test.cpp",
        "SwitchInputMapper_test.cpp",
        "SyncQueue_test.cpp",
        "TimerProvider_test.cpp",
        "TestInputListener.cpp",
        "TimerProvider_test.cpp",
        "TouchpadInputMapper_test.cpp",
        "VibratorInputMapper_test.cpp",
        "MultiTouchInputMapper_test.cpp",
        "KeyboardInputMapper_test.cpp",
        "UinputDevice.cpp",
        "UnwantedInteractionBlocker_test.cpp",
        "VibratorInputMapper_test.cpp",
    ],
    aidl: {
        include_dirs: [
@@ -109,7 +109,14 @@ cc_test {
        undefined: true,
        all_undefined: true,
        diag: {
            cfi: true,
            integer_overflow: true,
            memtag_heap: true,
            undefined: true,
            misc_undefined: [
                "all",
                "bounds",
            ],
        },
    },
    static_libs: [
@@ -121,8 +128,8 @@ cc_test {
        unit_test: true,
    },
    test_suites: [
        "device-tests",
        "device-platinum-tests",
        "device-tests",
    ],
    native_coverage: false,
}