summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-09-20 07:52:43 +0100
committerGitHub <noreply@github.com>2022-09-20 08:52:43 +0200
commit456d6f33426946d632ed52a3278b5fcd0c398644 (patch)
treee8570b678d3597339006214bf3f9b921e73f0e55 /tests
parent100cf3db3a14b4d841bf55e53aba5b54036f67af (diff)
Remove legacy keycodes from unit tests (#18430)
Diffstat (limited to 'tests')
-rw-r--r--tests/tap_hold_configurations/default_mod_tap/test_tap_hold.cpp2
-rw-r--r--tests/tap_hold_configurations/permissive_hold/test_tap_hold.cpp12
-rw-r--r--tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp2
-rw-r--r--tests/tap_hold_configurations/tapping_force_hold/test_tap_hold.cpp2
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/tap_hold_configurations/default_mod_tap/test_tap_hold.cpp b/tests/tap_hold_configurations/default_mod_tap/test_tap_hold.cpp
index e798265623..b70efe4aed 100644
--- a/tests/tap_hold_configurations/default_mod_tap/test_tap_hold.cpp
+++ b/tests/tap_hold_configurations/default_mod_tap/test_tap_hold.cpp
@@ -213,7 +213,7 @@ TEST_F(DefaultTapHold, tap_and_hold_mod_tap_hold_key) {
213 set_keymap({mod_tap_hold_key}); 213 set_keymap({mod_tap_hold_key});
214 214
215 /* Press mod-tap-hold key. */ 215 /* Press mod-tap-hold key. */
216 EXPECT_REPORT(driver, (KC_LSHIFT)); 216 EXPECT_REPORT(driver, (KC_LEFT_SHIFT));
217 mod_tap_hold_key.press(); 217 mod_tap_hold_key.press();
218 idle_for(TAPPING_TERM + 1); 218 idle_for(TAPPING_TERM + 1);
219 testing::Mock::VerifyAndClearExpectations(&driver); 219 testing::Mock::VerifyAndClearExpectations(&driver);
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 ef8d9a9c7f..74e81f347f 100644
--- a/tests/tap_hold_configurations/permissive_hold/test_tap_hold.cpp
+++ b/tests/tap_hold_configurations/permissive_hold/test_tap_hold.cpp
@@ -46,9 +46,9 @@ TEST_F(PermissiveHold, tap_regular_key_while_mod_tap_key_is_held) {
46 testing::Mock::VerifyAndClearExpectations(&driver); 46 testing::Mock::VerifyAndClearExpectations(&driver);
47 47
48 /* Release regular key */ 48 /* Release regular key */
49 EXPECT_REPORT(driver, (KC_LSHIFT)); 49 EXPECT_REPORT(driver, (KC_LEFT_SHIFT));
50 EXPECT_REPORT(driver, (KC_LSHIFT, regular_key.report_code)); 50 EXPECT_REPORT(driver, (KC_LEFT_SHIFT, regular_key.report_code));
51 EXPECT_REPORT(driver, (KC_LSHIFT)); 51 EXPECT_REPORT(driver, (KC_LEFT_SHIFT));
52 regular_key.release(); 52 regular_key.release();
53 run_one_scan_loop(); 53 run_one_scan_loop();
54 testing::Mock::VerifyAndClearExpectations(&driver); 54 testing::Mock::VerifyAndClearExpectations(&driver);
@@ -81,9 +81,9 @@ TEST_F(PermissiveHold, tap_mod_tap_key_while_mod_tap_key_is_held) {
81 testing::Mock::VerifyAndClearExpectations(&driver); 81 testing::Mock::VerifyAndClearExpectations(&driver);
82 82
83 /* Release second mod-tap-hold key */ 83 /* Release second mod-tap-hold key */
84 EXPECT_REPORT(driver, (KC_LSHIFT)); 84 EXPECT_REPORT(driver, (KC_LEFT_SHIFT));
85 EXPECT_REPORT(driver, (KC_LSHIFT, second_mod_tap_hold_key.report_code)); 85 EXPECT_REPORT(driver, (KC_LEFT_SHIFT, second_mod_tap_hold_key.report_code));
86 EXPECT_REPORT(driver, (KC_LSHIFT)); 86 EXPECT_REPORT(driver, (KC_LEFT_SHIFT));
87 second_mod_tap_hold_key.release(); 87 second_mod_tap_hold_key.release();
88 run_one_scan_loop(); 88 run_one_scan_loop();
89 testing::Mock::VerifyAndClearExpectations(&driver); 89 testing::Mock::VerifyAndClearExpectations(&driver);
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 dc0de0e44d..e08c600dbd 100644
--- a/tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp
+++ b/tests/tap_hold_configurations/retro_tapping/test_tap_hold.cpp
@@ -42,7 +42,7 @@ TEST_F(RetroTapping, tap_and_hold_mod_tap_hold_key) {
42 42
43 /* Release mod-tap-hold key. */ 43 /* Release mod-tap-hold key. */
44 /* TODO: Why is LSHIFT send at all? */ 44 /* TODO: Why is LSHIFT send at all? */
45 EXPECT_REPORT(driver, (KC_LSHIFT)); 45 EXPECT_REPORT(driver, (KC_LEFT_SHIFT));
46 EXPECT_EMPTY_REPORT(driver); 46 EXPECT_EMPTY_REPORT(driver);
47 EXPECT_REPORT(driver, (KC_P)); 47 EXPECT_REPORT(driver, (KC_P));
48 EXPECT_EMPTY_REPORT(driver); 48 EXPECT_EMPTY_REPORT(driver);
diff --git a/tests/tap_hold_configurations/tapping_force_hold/test_tap_hold.cpp b/tests/tap_hold_configurations/tapping_force_hold/test_tap_hold.cpp
index 2671862f2d..604f9a4a54 100644
--- a/tests/tap_hold_configurations/tapping_force_hold/test_tap_hold.cpp
+++ b/tests/tap_hold_configurations/tapping_force_hold/test_tap_hold.cpp
@@ -205,7 +205,7 @@ TEST_F(TappingForceHold, tap_mod_tap_hold_key_twice_and_hold_on_second_time) {
205 testing::Mock::VerifyAndClearExpectations(&driver); 205 testing::Mock::VerifyAndClearExpectations(&driver);
206 206
207 /* Release mod-tap-hold key. */ 207 /* Release mod-tap-hold key. */
208 EXPECT_REPORT(driver, (KC_LSHIFT)); 208 EXPECT_REPORT(driver, (KC_LEFT_SHIFT));
209 EXPECT_EMPTY_REPORT(driver); 209 EXPECT_EMPTY_REPORT(driver);
210 mod_tap_hold_key.release(); 210 mod_tap_hold_key.release();
211 run_one_scan_loop(); 211 run_one_scan_loop();