Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
T data[N]
Definition Array.hpp:33
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,())
static bool preferImmediateSend()