aboutsummaryrefslogtreecommitdiff
path: root/tests/test_common/test_fixture.cpp
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-06-19 00:19:09 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-06-19 00:19:09 +0300
commit43d8fa5bf1248ce5c1ce5f9cb0d238d794b4475d (patch)
treecc98ca3ae09ef1b639de0f7b81636b8162301ca0 /tests/test_common/test_fixture.cpp
parent36f820be7e80bc8f1f5489373708356cf142c269 (diff)
downloadqmk_firmware-43d8fa5bf1248ce5c1ce5f9cb0d238d794b4475d.tar.gz
qmk_firmware-43d8fa5bf1248ce5c1ce5f9cb0d238d794b4475d.zip
More natural interface for setting keyboard leds
Diffstat (limited to 'tests/test_common/test_fixture.cpp')
-rw-r--r--tests/test_common/test_fixture.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_common/test_fixture.cpp b/tests/test_common/test_fixture.cpp
index aff518d21..eef9b854b 100644
--- a/tests/test_common/test_fixture.cpp
+++ b/tests/test_common/test_fixture.cpp
@@ -27,12 +27,10 @@ TestFixture::~TestFixture() {
27 // Run for a while to make sure all keys are completely released 27 // Run for a while to make sure all keys are completely released
28 // Should probably wait until tapping term etc, has timed out 28 // Should probably wait until tapping term etc, has timed out
29 EXPECT_CALL(driver, send_keyboard_mock(_)).Times(AnyNumber()); 29 EXPECT_CALL(driver, send_keyboard_mock(_)).Times(AnyNumber());
30 EXPECT_CALL(driver, keyboard_leds_mock()).WillRepeatedly(Return(0));
31 for (int i=0; i<100; i++) { 30 for (int i=0; i<100; i++) {
32 keyboard_task(); 31 keyboard_task();
33 } 32 }
34 testing::Mock::VerifyAndClearExpectations(&driver); 33 testing::Mock::VerifyAndClearExpectations(&driver);
35 // Verify that the matrix really is cleared 34 // Verify that the matrix really is cleared
36 EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(Between(0, 1)); 35 EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(Between(0, 1));
37 EXPECT_CALL(driver, keyboard_leds_mock()).WillRepeatedly(Return(0));
38} \ No newline at end of file 36} \ No newline at end of file