summaryrefslogtreecommitdiffstats
path: root/tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-06-05 21:06:05 +0200
committerGitHub <noreply@github.com>2022-06-05 20:06:05 +0100
commit4c48760558808bb42c99934a0e2c330679d6c6cf (patch)
tree3b09b95dc6c4a71c94a9e0088120b41ea43ea903 /tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp
parent95d20e6d8bb1ffaf3024af793daf789ee0b75727 (diff)
Apply EXPECT_REPORT and EXPECT_EMPTY_REPORT (#17311)
...convenience macros to test cases that where missed during #17284
Diffstat (limited to 'tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp')
-rw-r--r--tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp b/tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp
index b3d4e520f6..dc0de0e44d 100644
--- a/tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp
+++ b/tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp
@@ -42,10 +42,10 @@ TEST_F(RetroTapping, tap_and_hold_mod_tap_hold_key) {
/* Release mod-tap-hold key. */
/* TODO: Why is LSHIFT send at all? */
- EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(KC_LSHIFT)));
- EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport()));
- EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(KC_P)));
- EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport()));
+ EXPECT_REPORT(driver, (KC_LSHIFT));
+ EXPECT_EMPTY_REPORT(driver);
+ EXPECT_REPORT(driver, (KC_P));
+ EXPECT_EMPTY_REPORT(driver);
mod_tap_hold_key.release();
run_one_scan_loop();
testing::Mock::VerifyAndClearExpectations(&driver);