diff options
| author | Nick Brassel <[email protected]> | 2025-05-26 21:41:49 +1000 |
|---|---|---|
| committer | Nick Brassel <[email protected]> | 2025-05-26 21:41:49 +1000 |
| commit | 75a037d2f0f9c54bad8e2f68ae82134559c92f22 (patch) | |
| tree | 2b264de0e7a724c30cca511a9bac7ad29705d1a2 /tests/test_common/test_driver.hpp | |
| parent | 28720c4d343a9c5e9f5a62dbd583dbf536a2e61e (diff) | |
| parent | 3703699757b6ce938ff412aca0a8b064927c0cdb (diff) | |
| download | qmk_firmware-75a037d2f0f9c54bad8e2f68ae82134559c92f22.tar.gz qmk_firmware-75a037d2f0f9c54bad8e2f68ae82134559c92f22.zip | |
Merge remote-tracking branch 'upstream/develop'0.29.0
Diffstat (limited to 'tests/test_common/test_driver.hpp')
| -rw-r--r-- | tests/test_common/test_driver.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_common/test_driver.hpp b/tests/test_common/test_driver.hpp index fea8225953..5c36c80dfc 100644 --- a/tests/test_common/test_driver.hpp +++ b/tests/test_common/test_driver.hpp @@ -20,7 +20,9 @@ #include <stdint.h> #include "host.h" #include "keyboard_report_util.hpp" -#include "keycode_util.hpp" +extern "C" { +#include "keycode_string.h" +} #include "test_logger.hpp" class TestDriver { @@ -146,11 +148,11 @@ class TestDriver { /** @brief Tests whether keycode `actual` is equal to `expected`. */ #define EXPECT_KEYCODE_EQ(actual, expected) EXPECT_THAT((actual), KeycodeEq((expected))) -MATCHER_P(KeycodeEq, expected_keycode, "is equal to " + testing::PrintToString(expected_keycode) + ", keycode " + get_keycode_identifier_or_default(expected_keycode)) { +MATCHER_P(KeycodeEq, expected_keycode, "is equal to " + testing::PrintToString(expected_keycode) + ", keycode " + get_keycode_string(expected_keycode)) { if (arg == expected_keycode) { return true; } - *result_listener << "keycode " << get_keycode_identifier_or_default(arg); + *result_listener << "keycode " << get_keycode_string(arg); return false; } |
