summaryrefslogtreecommitdiffstats
path: root/tests/tap_hold_configurations/permissive_hold
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2021-12-14 19:40:18 +0100
committerGitHub <noreply@github.com>2021-12-14 10:40:18 -0800
commit8b865a9d6445e3bce6c991224f373d71c67e87e5 (patch)
tree3e78e95b1f6ecc59833ceed1ee6418c93758bab5 /tests/tap_hold_configurations/permissive_hold
parentce5a2a736792dc6e3e9957a013821374d01fb6d6 (diff)
[Core] Don't send keyboard reports that propagate no changes to the host (#14065)
Diffstat (limited to 'tests/tap_hold_configurations/permissive_hold')
-rw-r--r--tests/tap_hold_configurations/permissive_hold/test_tap_hold.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/tap_hold_configurations/permissive_hold/test_tap_hold.cpp b/tests/tap_hold_configurations/permissive_hold/test_tap_hold.cpp
index ab9dd1518b..00c2b33cb7 100644
--- a/tests/tap_hold_configurations/permissive_hold/test_tap_hold.cpp
+++ b/tests/tap_hold_configurations/permissive_hold/test_tap_hold.cpp
@@ -117,7 +117,6 @@ TEST_F(PermissiveHold, tap_regular_key_while_layer_tap_key_is_held) {
testing::Mock::VerifyAndClearExpectations(&driver);
/* Release regular key */
- EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport()));
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(layer_key.report_code)));
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport()));
regular_key.release();
@@ -125,7 +124,7 @@ TEST_F(PermissiveHold, tap_regular_key_while_layer_tap_key_is_held) {
testing::Mock::VerifyAndClearExpectations(&driver);
/* Release layer-tap-hold key */
- EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport()));
+ EXPECT_CALL(driver, send_keyboard_mock(_)).Times(0);
layer_tap_hold_key.release();
run_one_scan_loop();
testing::Mock::VerifyAndClearExpectations(&driver);