diff options
Diffstat (limited to 'tests/test_common/test_fixture.cpp')
-rw-r--r-- | tests/test_common/test_fixture.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_common/test_fixture.cpp b/tests/test_common/test_fixture.cpp index 8caf1fca4..20ed838eb 100644 --- a/tests/test_common/test_fixture.cpp +++ b/tests/test_common/test_fixture.cpp | |||
@@ -32,14 +32,15 @@ TestFixture::TestFixture() {} | |||
32 | 32 | ||
33 | TestFixture::~TestFixture() { | 33 | TestFixture::~TestFixture() { |
34 | TestDriver driver; | 34 | TestDriver driver; |
35 | layer_clear(); | ||
36 | clear_all_keys(); | ||
37 | // Run for a while to make sure all keys are completely released | 35 | // Run for a while to make sure all keys are completely released |
38 | EXPECT_CALL(driver, send_keyboard_mock(_)).Times(AnyNumber()); | 36 | EXPECT_CALL(driver, send_keyboard_mock(_)).Times(AnyNumber()); |
37 | layer_clear(); | ||
38 | clear_all_keys(); | ||
39 | idle_for(TAPPING_TERM + 10); | 39 | idle_for(TAPPING_TERM + 10); |
40 | testing::Mock::VerifyAndClearExpectations(&driver); | 40 | testing::Mock::VerifyAndClearExpectations(&driver); |
41 | // Verify that the matrix really is cleared | 41 | // Verify that the matrix really is cleared |
42 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(Between(0, 1)); | 42 | EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(0); |
43 | idle_for(TAPPING_TERM + 10); | ||
43 | } | 44 | } |
44 | 45 | ||
45 | void TestFixture::run_one_scan_loop() { | 46 | void TestFixture::run_one_scan_loop() { |