|
|
@ -17,8 +17,8 @@
|
|
|
|
#include "test_common.hpp"
|
|
|
|
#include "test_common.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
using testing::_;
|
|
|
|
using testing::_;
|
|
|
|
using testing::Return;
|
|
|
|
|
|
|
|
using testing::InSequence;
|
|
|
|
using testing::InSequence;
|
|
|
|
|
|
|
|
using testing::Return;
|
|
|
|
|
|
|
|
|
|
|
|
class KeyPress : public TestFixture {};
|
|
|
|
class KeyPress : public TestFixture {};
|
|
|
|
|
|
|
|
|
|
|
@ -167,7 +167,7 @@ TEST_F(KeyPress, PressPlusEqualDontReleaseBeforePress) {
|
|
|
|
run_one_scan_loop();
|
|
|
|
run_one_scan_loop();
|
|
|
|
testing::Mock::VerifyAndClearExpectations(&driver);
|
|
|
|
testing::Mock::VerifyAndClearExpectations(&driver);
|
|
|
|
|
|
|
|
|
|
|
|
release_key(1, 1); //KC_PLS
|
|
|
|
release_key(1, 1); // KC_PLS
|
|
|
|
// BUG: Should really still return KC_EQL, but this is fine too
|
|
|
|
// BUG: Should really still return KC_EQL, but this is fine too
|
|
|
|
// It's also called twice for some reason
|
|
|
|
// It's also called twice for some reason
|
|
|
|
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(2);
|
|
|
|
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(2);
|
|
|
@ -225,7 +225,7 @@ TEST_F(KeyPress, PressEqualPlusDontReleaseBeforePress) {
|
|
|
|
run_one_scan_loop();
|
|
|
|
run_one_scan_loop();
|
|
|
|
testing::Mock::VerifyAndClearExpectations(&driver);
|
|
|
|
testing::Mock::VerifyAndClearExpectations(&driver);
|
|
|
|
|
|
|
|
|
|
|
|
release_key(0, 1); //KC_EQL
|
|
|
|
release_key(0, 1); // KC_EQL
|
|
|
|
// I guess it's fine to still report shift here
|
|
|
|
// I guess it's fine to still report shift here
|
|
|
|
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(KC_LSFT)));
|
|
|
|
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(KC_LSFT)));
|
|
|
|
run_one_scan_loop();
|
|
|
|
run_one_scan_loop();
|
|
|
|