aboutsummaryrefslogtreecommitdiff
path: root/tests/test_common/test_driver.hpp
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-11-23 09:54:04 +1100
committerNick Brassel <nick@tzarc.org>2021-11-23 09:54:04 +1100
commit7746aefe94cc4cd492bfafdef73d95d073f0603b (patch)
tree42c6daae724c74f7e21422f3fec4dc384c0e1f5d /tests/test_common/test_driver.hpp
parentb6054c0206609f3755f71d819643644d250288b0 (diff)
downloadqmk_firmware-7746aefe94cc4cd492bfafdef73d95d073f0603b.tar.gz
qmk_firmware-7746aefe94cc4cd492bfafdef73d95d073f0603b.zip
Revert "[Tests] Increase QMK test coverage (#13789)"
This reverts commit b6054c0206609f3755f71d819643644d250288b0.
Diffstat (limited to 'tests/test_common/test_driver.hpp')
-rw-r--r--tests/test_common/test_driver.hpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/tests/test_common/test_driver.hpp b/tests/test_common/test_driver.hpp
index f9197b363..f86308df9 100644
--- a/tests/test_common/test_driver.hpp
+++ b/tests/test_common/test_driver.hpp
@@ -20,26 +20,25 @@
20#include <stdint.h> 20#include <stdint.h>
21#include "host.h" 21#include "host.h"
22#include "keyboard_report_util.hpp" 22#include "keyboard_report_util.hpp"
23#include "test_logger.hpp" 23
24 24
25class TestDriver { 25class TestDriver {
26 public: 26public:
27 TestDriver(); 27 TestDriver();
28 ~TestDriver(); 28 ~TestDriver();
29 void set_leds(uint8_t leds) { m_leds = leds; } 29 void set_leds(uint8_t leds) { m_leds = leds; }
30 30
31 MOCK_METHOD1(send_keyboard_mock, void(report_keyboard_t&)); 31 MOCK_METHOD1(send_keyboard_mock, void (report_keyboard_t&));
32 MOCK_METHOD1(send_mouse_mock, void(report_mouse_t&)); 32 MOCK_METHOD1(send_mouse_mock, void (report_mouse_t&));
33 MOCK_METHOD1(send_system_mock, void(uint16_t)); 33 MOCK_METHOD1(send_system_mock, void (uint16_t));
34 MOCK_METHOD1(send_consumer_mock, void(uint16_t)); 34 MOCK_METHOD1(send_consumer_mock, void (uint16_t));
35 35private:
36 private: 36 static uint8_t keyboard_leds(void);
37 static uint8_t keyboard_leds(void); 37 static void send_keyboard(report_keyboard_t *report);
38 static void send_keyboard(report_keyboard_t* report); 38 static void send_mouse(report_mouse_t* report);
39 static void send_mouse(report_mouse_t* report); 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; 42 uint8_t m_leds = 0;
43 uint8_t m_leds = 0;
44 static TestDriver* m_this; 43 static TestDriver* m_this;
45}; 44};