#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/mojo/common/audio_data_s16_converter.h"
#include <memory>
#include "media/base/audio_buffer.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_sample_types.h"
#include "media/base/sample_format.h"
#include "media/base/test_helpers.h"
#include "media/mojo/common/media_type_converters.h"
#include "media/mojo/mojom/audio_data.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace {
static const int kTestVectorSize = …;
static const int kSampleRate = …;
static const int16_t kTestVectorContents[kTestVectorSize] = …;
static const int16_t kExpectedMixedVectorContents[kTestVectorSize / 2] = …;
}
class AudioDataS16ConverterTest : public testing::Test { … };
AudioDataS16ConverterTest::AudioDataS16ConverterTest() { … }
TEST_F(AudioDataS16ConverterTest, ConvertToAudioDataS16_MONO) { … }
TEST_F(AudioDataS16ConverterTest, ConvertToAudioDataS16_STEREO) { … }
}