AYAB Arduino Firmware 0.95
The goal of the AYAB project is to provide an alternative way to control the famous Brother KH-9xx range of knitting machines using a computer
com_mock.h
Go to the documentation of this file.
1
24#ifndef COM_MOCK_H_
25#define COM_MOCK_H_
26
27#include <gmock/gmock.h>
28
29#include <com.h>
30
31class ComMock : public ComInterface {
32public:
33 MOCK_METHOD0(init, void());
34 MOCK_METHOD0(update, void());
35 MOCK_CONST_METHOD2(send, void(uint8_t *payload, size_t length));
36 MOCK_METHOD2(sendMsg, void(AYAB_API_t id, const char *msg));
37 MOCK_CONST_METHOD2(send_reqLine, void(const uint8_t lineNumber, Err_t error));
38 MOCK_CONST_METHOD3(send_indState, void(Carriage_t carriage, uint8_t position,
39 Err_t error));
40 MOCK_METHOD2(onPacketReceived, void(const uint8_t *buffer, size_t size));
41};
42
43ComMock *comMockInstance();
44void releaseComMock();
45
46#endif // COM_MOCK_H_
Definition com.h:81
Definition com_mock.h:31