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

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

Issue 1211053006: Rename APM Config ReportedDelay to DelayAgnostic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix error in android test 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..b2e11981fa5a6a42cfe9c954a66925ac352ba4a3 100644
--- a/webrtc/modules/audio_processing/echo_cancellation_impl_unittest.cc
+++ b/webrtc/modules/audio_processing/echo_cancellation_impl_unittest.cc
@@ -48,7 +48,7 @@ TEST(EchoCancellationInternalTest, ExtendedFilter) {
EXPECT_EQ(0, WebRtcAec_extended_filter_enabled(aec_core));
}
-TEST(EchoCancellationInternalTest, ReportedDelay) {
+TEST(EchoCancellationInternalTest, DelayAgnostic) {
rtc::scoped_ptr<AudioProcessing> ap(AudioProcessing::Create());
EXPECT_TRUE(ap->echo_cancellation()->aec_core() == NULL);
@@ -58,24 +58,24 @@ TEST(EchoCancellationInternalTest, ReportedDelay) {
AecCore* aec_core = ap->echo_cancellation()->aec_core();
ASSERT_TRUE(aec_core != NULL);
// Enabled by default.
- EXPECT_EQ(1, WebRtcAec_reported_delay_enabled(aec_core));
+ EXPECT_EQ(0, WebRtcAec_delay_agnostic_enabled(aec_core));
Config config;
- config.Set<ReportedDelay>(new ReportedDelay(false));
+ config.Set<DelayAgnostic>(new DelayAgnostic(true));
ap->SetExtraOptions(config);
- EXPECT_EQ(0, WebRtcAec_reported_delay_enabled(aec_core));
+ EXPECT_EQ(1, WebRtcAec_delay_agnostic_enabled(aec_core));
// Retains setting after initialization.
EXPECT_EQ(ap->kNoError, ap->Initialize());
- EXPECT_EQ(0, WebRtcAec_reported_delay_enabled(aec_core));
+ EXPECT_EQ(1, WebRtcAec_delay_agnostic_enabled(aec_core));
- config.Set<ReportedDelay>(new ReportedDelay(true));
+ config.Set<DelayAgnostic>(new DelayAgnostic(false));
ap->SetExtraOptions(config);
- EXPECT_EQ(1, WebRtcAec_reported_delay_enabled(aec_core));
+ EXPECT_EQ(0, WebRtcAec_delay_agnostic_enabled(aec_core));
// Retains setting after initialization.
EXPECT_EQ(ap->kNoError, ap->Initialize());
- EXPECT_EQ(1, WebRtcAec_reported_delay_enabled(aec_core));
+ EXPECT_EQ(0, WebRtcAec_delay_agnostic_enabled(aec_core));
}
} // namespace webrtc
« 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