chromium/media/base/audio_buffer_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/base/audio_buffer_queue.h"

#include <stdint.h>

#include <limits>
#include <memory>

#include "base/time/time.h"
#include "media/base/audio_buffer.h"
#include "media/base/audio_bus.h"
#include "media/base/test_helpers.h"
#include "media/base/timestamp_constants.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace media {

constexpr int kSampleRate =;

enum class ValueType {};
static void VerifyBus(AudioBus* bus,
                      int offset,
                      int frames,
                      int buffer_size,
                      float start,
                      float increment,
                      ValueType type = ValueType::kNormal) {}

template <typename T>
static scoped_refptr<AudioBuffer> MakeTestBuffer(SampleFormat format,
                                                 ChannelLayout channel_layout,
                                                 T start,
                                                 T step,
                                                 int frames) {}

TEST(AudioBufferQueueTest, AppendAndClear) {}

TEST(AudioBufferQueueTest, MultipleAppend) {}

TEST(AudioBufferQueueTest, IteratorCheck) {}

TEST(AudioBufferQueueTest, Seek) {}

TEST(AudioBufferQueueTest, ReadBitstream) {}

TEST(AudioBufferQueueTest, ReadBitstreamIECDts) {}

TEST(AudioBufferQueueTest, ReadF32) {}

TEST(AudioBufferQueueTest, ReadU8) {}

TEST(AudioBufferQueueTest, ReadS16) {}

TEST(AudioBufferQueueTest, ReadS32) {}

TEST(AudioBufferQueueTest, ReadF32Planar) {}

TEST(AudioBufferQueueTest, ReadS16Planar) {}

TEST(AudioBufferQueueTest, ReadManyChannels) {}

TEST(AudioBufferQueueTest, Peek) {}

}  // namespace media