diff --git a/testing/SimHarness.h b/testing/SimHarness.h index 4256ffde..bda69547 100644 --- a/testing/SimHarness.h +++ b/testing/SimHarness.h @@ -36,6 +36,7 @@ class SimHarness { void Release(uint8_t row, uint8_t col); void SetCycleTime(uint8_t millis); uint8_t CycleTime() const; + private: uint8_t millis_per_cycle_ = 1; }; diff --git a/testing/setup-googletest.h b/testing/setup-googletest.h index a79eb6db..7261cea6 100644 --- a/testing/setup-googletest.h +++ b/testing/setup-googletest.h @@ -30,12 +30,12 @@ #include "testing/matchers.h" #include "testing/VirtualDeviceTest.h" -#define SETUP_GOOGLETEST() \ - void executeTestFunction() { \ - setup(); /* setup Kaleidoscope */ \ - /* Turn off virtual_io's input. */ \ - Kaleidoscope.device().keyScanner().setEnableReadMatrix(false); \ - testing::InitGoogleTest(); \ - int result = RUN_ALL_TESTS(); \ - exit(result); \ +#define SETUP_GOOGLETEST() \ + void executeTestFunction() { \ + setup(); /* setup Kaleidoscope */ \ + /* Turn off virtual_io's input. */ \ + Kaleidoscope.device().keyScanner().setEnableReadMatrix(false); \ + testing::InitGoogleTest(); \ + int result = RUN_ALL_TESTS(); \ + exit(result); \ }