Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: webrtc/modules/audio_processing/echo_cancellation_impl_unittest.cc

Issue 1166463006: Revert r9378 "Rename APM Config DelayCorrection to ExtendedFilter" (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/echo_cancellation_impl_unittest.cc
diff --git a/webrtc/modules/audio_processing/echo_cancellation_impl_unittest.cc b/webrtc/modules/audio_processing/echo_cancellation_impl_unittest.cc
index 63b6db919f8b836144b9cf873f23d7a576b240a9..aac9a1e705e95399deb20ddfa68692017c3d514a 100644
--- a/webrtc/modules/audio_processing/echo_cancellation_impl_unittest.cc
+++ b/webrtc/modules/audio_processing/echo_cancellation_impl_unittest.cc
@@ -18,7 +18,7 @@ extern "C" {
namespace webrtc {
-TEST(EchoCancellationInternalTest, ExtendedFilter) {
+TEST(EchoCancellationInternalTest, DelayCorrection) {
rtc::scoped_ptr<AudioProcessing> ap(AudioProcessing::Create());
EXPECT_TRUE(ap->echo_cancellation()->aec_core() == NULL);
@@ -28,24 +28,24 @@ TEST(EchoCancellationInternalTest, ExtendedFilter) {
AecCore* aec_core = ap->echo_cancellation()->aec_core();
ASSERT_TRUE(aec_core != NULL);
// Disabled by default.
- EXPECT_EQ(0, WebRtcAec_extended_filter_enabled(aec_core));
+ EXPECT_EQ(0, WebRtcAec_delay_correction_enabled(aec_core));
Config config;
- config.Set<ExtendedFilter>(new ExtendedFilter(true));
+ config.Set<DelayCorrection>(new DelayCorrection(true));
ap->SetExtraOptions(config);
- EXPECT_EQ(1, WebRtcAec_extended_filter_enabled(aec_core));
+ EXPECT_EQ(1, WebRtcAec_delay_correction_enabled(aec_core));
// Retains setting after initialization.
EXPECT_EQ(ap->kNoError, ap->Initialize());
- EXPECT_EQ(1, WebRtcAec_extended_filter_enabled(aec_core));
+ EXPECT_EQ(1, WebRtcAec_delay_correction_enabled(aec_core));
- config.Set<ExtendedFilter>(new ExtendedFilter(false));
+ config.Set<DelayCorrection>(new DelayCorrection(false));
ap->SetExtraOptions(config);
- EXPECT_EQ(0, WebRtcAec_extended_filter_enabled(aec_core));
+ EXPECT_EQ(0, WebRtcAec_delay_correction_enabled(aec_core));
// Retains setting after initialization.
EXPECT_EQ(ap->kNoError, ap->Initialize());
- EXPECT_EQ(0, WebRtcAec_extended_filter_enabled(aec_core));
+ EXPECT_EQ(0, WebRtcAec_delay_correction_enabled(aec_core));
}
TEST(EchoCancellationInternalTest, ReportedDelay) {
« no previous file with comments | « webrtc/modules/audio_processing/echo_cancellation_impl.cc ('k') | webrtc/modules/audio_processing/include/audio_processing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698