diff options
Diffstat (limited to 'tests/test_common/test_driver.h')
| -rw-r--r-- | tests/test_common/test_driver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_common/test_driver.h b/tests/test_common/test_driver.h index b1b95fbcc..0123fd539 100644 --- a/tests/test_common/test_driver.h +++ b/tests/test_common/test_driver.h | |||
| @@ -27,7 +27,8 @@ class TestDriver { | |||
| 27 | public: | 27 | public: |
| 28 | TestDriver(); | 28 | TestDriver(); |
| 29 | ~TestDriver(); | 29 | ~TestDriver(); |
| 30 | MOCK_METHOD0(keyboard_leds_mock, uint8_t ()); | 30 | void set_leds(uint8_t leds) { m_leds = leds; } |
| 31 | |||
| 31 | MOCK_METHOD1(send_keyboard_mock, void (report_keyboard_t&)); | 32 | MOCK_METHOD1(send_keyboard_mock, void (report_keyboard_t&)); |
| 32 | MOCK_METHOD1(send_mouse_mock, void (report_mouse_t&)); | 33 | MOCK_METHOD1(send_mouse_mock, void (report_mouse_t&)); |
| 33 | MOCK_METHOD1(send_system_mock, void (uint16_t)); | 34 | MOCK_METHOD1(send_system_mock, void (uint16_t)); |
| @@ -39,6 +40,7 @@ private: | |||
| 39 | static void send_system(uint16_t data); | 40 | static void send_system(uint16_t data); |
| 40 | static void send_consumer(uint16_t data); | 41 | static void send_consumer(uint16_t data); |
| 41 | host_driver_t m_driver; | 42 | host_driver_t m_driver; |
| 43 | uint8_t m_leds = 0; | ||
| 42 | static TestDriver* m_this; | 44 | static TestDriver* m_this; |
| 43 | }; | 45 | }; |
| 44 | 46 | ||
