#include "content/browser/media/midi_host.h"
#include <stddef.h>
#include <stdint.h>
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_context.h"
#include "media/midi/midi_manager.h"
#include "media/midi/midi_service.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
PortState;
const uint8_t kNoteOn[] = …;
enum MidiEventType { … };
struct MidiEvent { … };
class FakeMidiManager : public midi::MidiManager { … };
class FakeMidiManagerFactory : public midi::MidiService::ManagerFactory { … };
class MidiHostForTesting : public MidiHost { … };
class MidiSessionClientForTesting : public midi::mojom::MidiSessionClient { … };
class MidiHostTest : public testing::Test { … };
}
TEST_F(MidiHostTest, OutputPortCheck) { … }
}