#include "modules/audio_processing/agc2/clipping_predictor_level_buffer.h"
#include <algorithm>
#include "test/gmock.h"
#include "test/gtest.h"
namespace webrtc {
namespace {
Eq;
Optional;
class ClippingPredictorLevelBufferParametrization
: public ::testing::TestWithParam<int> { … };
TEST_P(ClippingPredictorLevelBufferParametrization, CheckEmptyBufferSize) { … }
TEST_P(ClippingPredictorLevelBufferParametrization, CheckHalfEmptyBufferSize) { … }
TEST_P(ClippingPredictorLevelBufferParametrization, CheckFullBufferSize) { … }
TEST_P(ClippingPredictorLevelBufferParametrization, CheckLargeBufferSize) { … }
TEST_P(ClippingPredictorLevelBufferParametrization, CheckSizeAfterReset) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(ClippingPredictorLevelBufferTest, CheckMetricsAfterFullBuffer) { … }
TEST(ClippingPredictorLevelBufferTest, CheckMetricsAfterPushBeyondCapacity) { … }
TEST(ClippingPredictorLevelBufferTest, CheckMetricsAfterTooFewItems) { … }
TEST(ClippingPredictorLevelBufferTest, CheckMetricsAfterReset) { … }
}
}