diff options
Diffstat (limited to 'tests/basic/test_one_shot_keys.cpp')
| -rw-r--r-- | tests/basic/test_one_shot_keys.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/basic/test_one_shot_keys.cpp b/tests/basic/test_one_shot_keys.cpp index 98178912e4..43fc3e1ba3 100644 --- a/tests/basic/test_one_shot_keys.cpp +++ b/tests/basic/test_one_shot_keys.cpp | |||
| @@ -175,22 +175,20 @@ TEST_F(OneShot, OSLWithAdditionalKeypress) { | |||
| 175 | testing::Mock::VerifyAndClearExpectations(&driver); | 175 | testing::Mock::VerifyAndClearExpectations(&driver); |
| 176 | 176 | ||
| 177 | /* Release OSL key */ | 177 | /* Release OSL key */ |
| 178 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(2); | 178 | EXPECT_CALL(driver, send_keyboard_mock(_)).Times(0); |
| 179 | osl_key.release(); | 179 | osl_key.release(); |
| 180 | run_one_scan_loop(); | 180 | run_one_scan_loop(); |
| 181 | testing::Mock::VerifyAndClearExpectations(&driver); | 181 | testing::Mock::VerifyAndClearExpectations(&driver); |
| 182 | 182 | ||
| 183 | /* Press regular key */ | 183 | /* Press regular key */ |
| 184 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())); | 184 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(regular_key.report_code))).Times(1); |
| 185 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(regular_key.report_code))).Times(2); | ||
| 186 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())); | ||
| 187 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())); | 185 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())); |
| 188 | regular_key.press(); | 186 | regular_key.press(); |
| 189 | run_one_scan_loop(); | 187 | run_one_scan_loop(); |
| 190 | testing::Mock::VerifyAndClearExpectations(&driver); | 188 | testing::Mock::VerifyAndClearExpectations(&driver); |
| 191 | 189 | ||
| 192 | /* Release regular key */ | 190 | /* Release regular key */ |
| 193 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())); | 191 | EXPECT_CALL(driver, send_keyboard_mock(_)).Times(0); |
| 194 | regular_key.release(); | 192 | regular_key.release(); |
| 195 | run_one_scan_loop(); | 193 | run_one_scan_loop(); |
| 196 | testing::Mock::VerifyAndClearExpectations(&driver); | 194 | testing::Mock::VerifyAndClearExpectations(&driver); |
