Line data Source code
1 : #include <AH/Containers/Array.hpp> 2 : #include <Settings/NamespaceSettings.hpp> 3 : 4 : #include <gmock/gmock.h> 5 : 6 : BEGIN_CS_NAMESPACE 7 : 8 : struct USBDeviceMIDIBackend { 9 : using MIDIUSBPacket_t = AH::Array<uint8_t, 4>; 10 : 11 56 : MOCK_METHOD(void, write, (uint8_t, uint8_t, uint8_t, uint8_t)); 12 38 : MOCK_METHOD(MIDIUSBPacket_t, read, ()); 13 0 : MOCK_METHOD(void, sendNow, ()); 14 28 : void write(MIDIUSBPacket_t d) { 15 28 : return write(d.data[0], d.data[1], d.data[2], d.data[3]); 16 : } 17 29 : static bool preferImmediateSend() { return false; } 18 : }; 19 : 20 : END_CS_NAMESPACE