Index: webrtc/modules/audio_processing/aec3/aec_state_unittest.cc |
diff --git a/webrtc/modules/audio_processing/aec3/aec_state_unittest.cc b/webrtc/modules/audio_processing/aec3/aec_state_unittest.cc |
index a3aa4c1d56efdce9a1a838f6aae1901acda18df1..90b7cb92695007582e04db32ae7ac3ba9af2be1e 100644 |
--- a/webrtc/modules/audio_processing/aec3/aec_state_unittest.cc |
+++ b/webrtc/modules/audio_processing/aec3/aec_state_unittest.cc |
@@ -114,9 +114,13 @@ TEST(AecState, NormalUsage) { |
{ |
const auto& erle = state.Erle(); |
EXPECT_EQ(erle[0], erle[1]); |
- for (size_t k = 1; k < erle.size() - 1; ++k) { |
+ constexpr size_t kLowFrequencyLimit = 32; |
+ for (size_t k = 1; k < kLowFrequencyLimit; ++k) { |
EXPECT_NEAR(k % 2 == 0 ? 8.f : 1.f, erle[k], 0.1); |
} |
+ for (size_t k = kLowFrequencyLimit; k < erle.size() - 1; ++k) { |
+ EXPECT_NEAR(k % 2 == 0 ? 1.5f : 1.f, erle[k], 0.1); |
+ } |
EXPECT_EQ(erle[erle.size() - 2], erle[erle.size() - 1]); |
} |
@@ -131,9 +135,13 @@ TEST(AecState, NormalUsage) { |
{ |
const auto& erle = state.Erle(); |
EXPECT_EQ(erle[0], erle[1]); |
- for (size_t k = 1; k < erle.size() - 1; ++k) { |
+ constexpr size_t kLowFrequencyLimit = 32; |
+ for (size_t k = 1; k < kLowFrequencyLimit; ++k) { |
EXPECT_NEAR(k % 2 == 0 ? 5.f : 1.f, erle[k], 0.1); |
} |
+ for (size_t k = kLowFrequencyLimit; k < erle.size() - 1; ++k) { |
+ EXPECT_NEAR(k % 2 == 0 ? 1.5f : 1.f, erle[k], 0.1); |
+ } |
EXPECT_EQ(erle[erle.size() - 2], erle[erle.size() - 1]); |
} |
} |