chromium/media/midi/midi_message_queue_unittest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "media/midi/midi_message_queue.h"

#include <stddef.h>
#include <stdint.h>

#include "testing/gtest/include/gtest/gtest.h"

namespace midi {
namespace {

const uint8_t kGMOn[] =;
const uint8_t kPartialGMOn1st[] =;
const uint8_t kPartialGMOn2nd[] =;
const uint8_t kPartialGMOn3rd[] =;
const uint8_t kGSOn[] =;
const uint8_t kNoteOn[] =;
const uint8_t kPartialNoteOn1st[] =;
const uint8_t kPartialNoteOn2nd[] =;
const uint8_t kPartialNoteOn3rd[] =;

const uint8_t kNoteOnWithRunningStatus[] =;
const uint8_t kChannelPressure[] =;
const uint8_t kChannelPressureWithRunningStatus[] =;
const uint8_t kTimingClock[] =;
const uint8_t kSystemCommonMessageTuneRequest[] =;
const uint8_t kMTCFrame[] =;
const uint8_t kBrokenData1[] =;
const uint8_t kBrokenData2[] =;
const uint8_t kBrokenData3[] =;
const uint8_t kDataByte0[] =;

const uint8_t kReservedMessage1[] =;
const uint8_t kReservedMessage2[] =;
const uint8_t kReservedMessage1WithDataBytes[] =;

template <typename T, size_t N>
void Add(MidiMessageQueue* queue, const T(&array)[N]) {}

template <typename T, size_t N>
::testing::AssertionResult ExpectEqualSequence(
    const char* expr1, const char* expr2,
    const T(&expected)[N], const std::vector<T>& actual) {}

#define EXPECT_MESSAGE(expected, actual)

TEST(MidiMessageQueueTest, EmptyData) {}

TEST(MidiMessageQueueTest, RunningStatusDisabled) {}

TEST(MidiMessageQueueTest, RunningStatusEnabled) {}

TEST(MidiMessageQueueTest, RunningStatusEnabledWithRealTimeEvent) {}

TEST(MidiMessageQueueTest, RunningStatusEnabledWithSystemCommonMessage) {}

TEST(MidiMessageQueueTest, Issue540016) {}

TEST(MidiMessageQueueTest, ReconstructNonSysExMessage) {}

TEST(MidiMessageQueueTest, ReconstructBrokenNonSysExMessage) {}

TEST(MidiMessageQueueTest, ReconstructSysExMessage) {}

TEST(MidiMessageQueueTest, ReconstructBrokenSysExMessage) {}

TEST(MidiMessageQueueTest, OneByteMessage) {}

TEST(MidiMessageQueueTest, OneByteMessageInjectedInNonSysExMessage) {}

TEST(MidiMessageQueueTest, OneByteMessageInjectedInSysExMessage) {}

TEST(MidiMessageQueueTest, ReservedMessage) {}

TEST(MidiMessageQueueTest, ReservedMessageInjectedInNonSysExMessage) {}

TEST(MidiMessageQueueTest, ReservedMessageInjectedInSysExMessage) {}

}  // namespace
}  // namespace midi