diff options
Diffstat (limited to 'tests/test_common/test_fixture.cpp')
| -rw-r--r-- | tests/test_common/test_fixture.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_common/test_fixture.cpp b/tests/test_common/test_fixture.cpp index 20ed838eb..e041df712 100644 --- a/tests/test_common/test_fixture.cpp +++ b/tests/test_common/test_fixture.cpp | |||
| @@ -7,10 +7,10 @@ | |||
| 7 | #include "action_tapping.h" | 7 | #include "action_tapping.h" |
| 8 | 8 | ||
| 9 | extern "C" { | 9 | extern "C" { |
| 10 | #include "debug.h" | ||
| 11 | #include "eeconfig.h" | ||
| 10 | #include "action_layer.h" | 12 | #include "action_layer.h" |
| 11 | } | ||
| 12 | 13 | ||
| 13 | extern "C" { | ||
| 14 | void set_time(uint32_t t); | 14 | void set_time(uint32_t t); |
| 15 | void advance_time(uint32_t ms); | 15 | void advance_time(uint32_t ms); |
| 16 | } | 16 | } |
| @@ -21,6 +21,10 @@ using testing::Between; | |||
| 21 | using testing::Return; | 21 | using testing::Return; |
| 22 | 22 | ||
| 23 | void TestFixture::SetUpTestCase() { | 23 | void TestFixture::SetUpTestCase() { |
| 24 | // The following is enough to bootstrap the values set in main | ||
| 25 | eeconfig_init_quantum(); | ||
| 26 | eeconfig_update_debug(debug_config.raw); | ||
| 27 | |||
| 24 | TestDriver driver; | 28 | TestDriver driver; |
| 25 | EXPECT_CALL(driver, send_keyboard_mock(_)); | 29 | EXPECT_CALL(driver, send_keyboard_mock(_)); |
| 26 | keyboard_init(); | 30 | keyboard_init(); |
