Initial commit
This commit is contained in:
16
tests/mocks/usbdevicemock.h
Normal file
16
tests/mocks/usbdevicemock.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef USBDEVICEMOCK_H
|
||||
#define USBDEVICEMOCK_H
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "interfaces/iusbdevice.h"
|
||||
|
||||
class UsbDeviceMock : public noolitelib::IUsbDevice
|
||||
{
|
||||
public:
|
||||
MOCK_METHOD(void, openDevice, (uint16_t, uint16_t), (override));
|
||||
MOCK_METHOD(void, close, (), (override));
|
||||
MOCK_METHOD(bool, sendDataToDevice, (unsigned char *, uint16_t, std::chrono::milliseconds), (override));
|
||||
};
|
||||
|
||||
#endif // USBDEVICEMOCK_H
|
||||
Reference in New Issue
Block a user