Control Surface pin-t-adl
MIDI Control Surface library for Arduino
USBMIDI_Mock.hpp
Go to the documentation of this file.
2#include <Settings/NamespaceSettings.hpp>
3
4#include <gmock/gmock.h>
5
7
10
11 MOCK_METHOD(void, write, (uint8_t, uint8_t, uint8_t, uint8_t));
13 MOCK_METHOD(void, sendNow, ());
15 return write(d.data[0], d.data[1], d.data[2], d.data[3]);
16 }
17 static bool preferImmediateSend() { return false; }
18};
19
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
T data[N]
Definition: Array.hpp:37
MOCK_METHOD(MIDIUSBPacket_t, read,())
void write(MIDIUSBPacket_t d)
MOCK_METHOD(void, write,(uint8_t, uint8_t, uint8_t, uint8_t))
MOCK_METHOD(void, sendNow,())
void write(MIDIUSBPacket_t packet)
static bool preferImmediateSend()