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.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/test_common/test_fixture.cpp b/tests/test_common/test_fixture.cpp
index d86681eea..8caf1fca4 100644
--- a/tests/test_common/test_fixture.cpp
+++ b/tests/test_common/test_fixture.cpp
@@ -11,14 +11,14 @@ extern "C" {
11} 11}
12 12
13extern "C" { 13extern "C" {
14 void set_time(uint32_t t); 14void set_time(uint32_t t);
15 void advance_time(uint32_t ms); 15void advance_time(uint32_t ms);
16} 16}
17 17
18using testing::_; 18using testing::_;
19using testing::AnyNumber; 19using testing::AnyNumber;
20using testing::Return;
21using testing::Between; 20using testing::Between;
21using testing::Return;
22 22
23void TestFixture::SetUpTestCase() { 23void TestFixture::SetUpTestCase() {
24 TestDriver driver; 24 TestDriver driver;
@@ -26,11 +26,9 @@ void TestFixture::SetUpTestCase() {
26 keyboard_init(); 26 keyboard_init();
27} 27}
28 28
29void TestFixture::TearDownTestCase() { 29void TestFixture::TearDownTestCase() {}
30}
31 30
32TestFixture::TestFixture() { 31TestFixture::TestFixture() {}
33}
34 32
35TestFixture::~TestFixture() { 33TestFixture::~TestFixture() {
36 TestDriver driver; 34 TestDriver driver;
@@ -50,7 +48,7 @@ void TestFixture::run_one_scan_loop() {
50} 48}
51 49
52void TestFixture::idle_for(unsigned time) { 50void TestFixture::idle_for(unsigned time) {
53 for (unsigned i=0; i<time; i++) { 51 for (unsigned i = 0; i < time; i++) {
54 run_one_scan_loop(); 52 run_one_scan_loop();
55 } 53 }
56} 54}