diff options
author | Ryan <fauxpark@gmail.com> | 2022-10-07 13:35:01 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 19:35:01 -0700 |
commit | 6dbbeea46a0ac7527235982cb6406802df846805 (patch) | |
tree | 55b2a71430ad3726ab098a53b581a69efdd1602d /tests | |
parent | cbe1c22d468d64d7a3274061ce9c2073ecb208a4 (diff) |
Refactor `send_extra` (#18615)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_common/test_driver.cpp | 4 | ||||
-rw-r--r-- | tests/test_common/test_driver.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_common/test_driver.cpp b/tests/test_common/test_driver.cpp index 7ecd4931ed..f1c52cb7b6 100644 --- a/tests/test_common/test_driver.cpp +++ b/tests/test_common/test_driver.cpp @@ -53,8 +53,8 @@ void TestDriver::send_mouse(report_mouse_t* report) { m_this->send_mouse_mock(*report); } -void TestDriver::send_extra(uint8_t report_id, uint16_t data) { - m_this->send_extra_mock(report_id, data); +void TestDriver::send_extra(report_extra_t* report) { + m_this->send_extra_mock(*report); } namespace internal { diff --git a/tests/test_common/test_driver.hpp b/tests/test_common/test_driver.hpp index 666bfb1fba..c97bda8bc5 100644 --- a/tests/test_common/test_driver.hpp +++ b/tests/test_common/test_driver.hpp @@ -32,13 +32,13 @@ class TestDriver { MOCK_METHOD1(send_keyboard_mock, void(report_keyboard_t&)); MOCK_METHOD1(send_mouse_mock, void(report_mouse_t&)); - MOCK_METHOD2(send_extra_mock, void(uint8_t, uint16_t)); + MOCK_METHOD1(send_extra_mock, void(report_extra_t&)); private: static uint8_t keyboard_leds(void); static void send_keyboard(report_keyboard_t* report); static void send_mouse(report_mouse_t* report); - static void send_extra(uint8_t report_id, uint16_t data); + static void send_extra(report_extra_t* report); host_driver_t m_driver; uint8_t m_leds = 0; static TestDriver* m_this; |