#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/audio_converter.h"
#include <stddef.h>
#include <memory>
#include <tuple>
#include "base/strings/string_number_conversions.h"
#include "media/base/audio_timestamp_helper.h"
#include "media/base/fake_audio_render_callback.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
static const int kConvertInputs = …;
static const int kConvertCycles = …;
static constexpr ChannelLayout kChannelLayout = …;
static const int kHighLatencyBufferSize = …;
static const int kLowLatencyBufferSize = …;
static const int kSampleRate = …;
static const int kSineCycles = …;
AudioConverterTestData;
class AudioConverterTest
: public testing::TestWithParam<AudioConverterTestData> { … };
TEST(AudioConverterTest, AudioDelayAndDiscreteChannelCount) { … }
TEST(AudioConverterTest, PropagatesGlitchInfo) { … }
TEST_P(AudioConverterTest, ArbitraryOutputRequestSize) { … }
TEST_P(AudioConverterTest, NoInputs) { … }
TEST_P(AudioConverterTest, OneInput) { … }
TEST_P(AudioConverterTest, ManyInputs) { … }
INSTANTIATE_TEST_SUITE_P(…);
}