Actually test for correct key presses
This commit is contained in:
parent
fb95d86b39
commit
bd1729d5be
6 changed files with 100 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue