Skip to content

Commit 8e32b85

Browse files
committed
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
1 parent d442304 commit 8e32b85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/inputflinger/tests/KeyboardInputMapper_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ TEST_F(KeyboardInputMapperUnitTest, Process_SendsReadTime) {
346346
ASSERT_EQ(12, expectSingleKeyArg(argsList).readTime);
347347

348348
// Key up
349-
argsList = process(ARBITRARY_TIME, /*readTime=*/15, EV_KEY, KEY_HOME, 1);
349+
argsList = process(ARBITRARY_TIME, /*readTime=*/15, EV_KEY, KEY_HOME, 0);
350350
ASSERT_EQ(15, expectSingleKeyArg(argsList).readTime);
351351
}
352352

0 commit comments

Comments
 (0)