aboutsummaryrefslogtreecommitdiff
path: root/tests/test_common/test_fixture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_common/test_fixture.cpp')
-rw-r--r--tests/test_common/test_fixture.cpp8
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
9extern "C" { 9extern "C" {
10#include "debug.h"
11#include "eeconfig.h"
10#include "action_layer.h" 12#include "action_layer.h"
11}
12 13
13extern "C" {
14void set_time(uint32_t t); 14void set_time(uint32_t t);
15void advance_time(uint32_t ms); 15void advance_time(uint32_t ms);
16} 16}
@@ -21,6 +21,10 @@ using testing::Between;
21using testing::Return; 21using testing::Return;
22 22
23void TestFixture::SetUpTestCase() { 23void 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();