More natural interface for setting keyboard leds
This commit is contained in:
parent
36f820be7e
commit
43d8fa5bf1
4 changed files with 4 additions and 8 deletions
|
@ -27,12 +27,10 @@ TestFixture::~TestFixture() {
|
|||
// Run for a while to make sure all keys are completely released
|
||||
// Should probably wait until tapping term etc, has timed out
|
||||
EXPECT_CALL(driver, send_keyboard_mock(_)).Times(AnyNumber());
|
||||
EXPECT_CALL(driver, keyboard_leds_mock()).WillRepeatedly(Return(0));
|
||||
for (int i=0; i<100; i++) {
|
||||
keyboard_task();
|
||||
}
|
||||
testing::Mock::VerifyAndClearExpectations(&driver);
|
||||
// Verify that the matrix really is cleared
|
||||
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(Between(0, 1));
|
||||
EXPECT_CALL(driver, keyboard_leds_mock()).WillRepeatedly(Return(0));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue