#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/channel_mixer.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/strings/stringprintf.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_parameters.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
enum { … };
TEST(ChannelMixerTest, ConstructAllPossibleLayouts) { … }
struct ChannelMixerTestData { … };
std::ostream& operator<<(std::ostream& os, const ChannelMixerTestData& data) { … }
class ChannelMixerTest : public testing::TestWithParam<ChannelMixerTestData> { … };
TEST_P(ChannelMixerTest, Mixing) { … }
static float kStereoToMonoValues[] = …;
static float kMonoToStereoValues[] = …;
static float kFiveOneToMonoValues[] = …;
static float kFiveDiscreteValues[] = …;
INSTANTIATE_TEST_SUITE_P(…);
}