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

Commit 8e32b85a authored by Harry Cutts's avatar Harry Cutts
Browse files

KeyboardInputMapper_test: send UP in Process_SendsReadTime

This was sending two key downs, rather than a down and an up.

Test: atest --host \
      frameworks/native/services/inputflinger/tests/KeyboardInputMapper_test.cpp
Bug: 245989146
Flag: TEST_ONLY
Change-Id: Iea57303277766dcfbe8be7e2cd32d0e88e5059d3
parent d442304a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -346,7 +346,7 @@ TEST_F(KeyboardInputMapperUnitTest, Process_SendsReadTime) {
    ASSERT_EQ(12, expectSingleKeyArg(argsList).readTime);

    // Key up
    argsList = process(ARBITRARY_TIME, /*readTime=*/15, EV_KEY, KEY_HOME, 1);
    argsList = process(ARBITRARY_TIME, /*readTime=*/15, EV_KEY, KEY_HOME, 0);
    ASSERT_EQ(15, expectSingleKeyArg(argsList).readTime);
}