#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/midi/usb_midi_input_stream.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <string>
#include <vector>
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "media/midi/usb_midi_device.h"
#include "testing/gtest/include/gtest/gtest.h"
TimeTicks;
namespace midi {
namespace {
class TestUsbMidiDevice : public UsbMidiDevice { … };
class MockDelegate : public UsbMidiInputStream::Delegate { … };
class UsbMidiInputStreamTest : public ::testing::Test { … };
TEST_F(UsbMidiInputStreamTest, UnknownMessage) { … }
TEST_F(UsbMidiInputStreamTest, SystemCommonMessage) { … }
TEST_F(UsbMidiInputStreamTest, SystemExclusiveMessage) { … }
TEST_F(UsbMidiInputStreamTest, ChannelMessage) { … }
TEST_F(UsbMidiInputStreamTest, SingleByteMessage) { … }
TEST_F(UsbMidiInputStreamTest, DispatchForMultipleCables) { … }
TEST_F(UsbMidiInputStreamTest, DispatchForDevice2) { … }
}
}