#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/multi_channel_resampler.h"
#include <cmath>
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "media/base/audio_bus.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
static const float kScaleFactor = …;
static const int kHighLatencySize = …;
static const int kLowLatencySize = …;
static const float kFillValue = …;
static const double kLowLatencyMaxRMSError = …;
static const double kLowLatencyMaxError = …;
static const double kHighLatencyMaxRMSError = …;
static const double kHighLatencyMaxError = …;
class MultiChannelResamplerTest
: public testing::TestWithParam<int> { … };
TEST_P(MultiChannelResamplerTest, HighLatency) { … }
TEST_P(MultiChannelResamplerTest, LowLatency) { … }
INSTANTIATE_TEST_SUITE_P(…);
}