diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-06-17 18:18:15 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-06-18 21:22:22 +0300 |
commit | bd1729d5be376fecae67ab5ddc92eab82416a5c1 (patch) | |
tree | db71a57159556156b282292b5c76fa257a4241e2 /tests/test_common/test_driver.h | |
parent | fb95d86b39074b581455fb35a17477cce79a3738 (diff) | |
download | firmware-bd1729d5be376fecae67ab5ddc92eab82416a5c1.tar.gz firmware-bd1729d5be376fecae67ab5ddc92eab82416a5c1.tar.bz2 firmware-bd1729d5be376fecae67ab5ddc92eab82416a5c1.zip |
Actually test for correct key presses
Diffstat (limited to 'tests/test_common/test_driver.h')
-rw-r--r-- | tests/test_common/test_driver.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_common/test_driver.h b/tests/test_common/test_driver.h index d5b831884..b1b95fbcc 100644 --- a/tests/test_common/test_driver.h +++ b/tests/test_common/test_driver.h @@ -20,6 +20,7 @@ #include "gmock/gmock.h" #include <stdint.h> #include "host.h" +#include "keyboard_report_util.h" class TestDriver { @@ -27,8 +28,8 @@ public: TestDriver(); ~TestDriver(); MOCK_METHOD0(keyboard_leds_mock, uint8_t ()); - MOCK_METHOD1(send_keyboard_mock, void (report_keyboard_t*)); - MOCK_METHOD1(send_mouse_mock, void (report_mouse_t*)); + MOCK_METHOD1(send_keyboard_mock, void (report_keyboard_t&)); + MOCK_METHOD1(send_mouse_mock, void (report_mouse_t&)); MOCK_METHOD1(send_system_mock, void (uint16_t)); MOCK_METHOD1(send_consumer_mock, void (uint16_t)); private: |