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

Unified Diff: webrtc/media/engine/webrtcvoiceengine_unittest.cc

Issue 2629563003: Added a new echo likelihood stat that reports the maximum value from a previous time period. (Closed)
Patch Set: Small bugfix. Created 3 years, 11 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/media/engine/webrtcvoiceengine_unittest.cc
diff --git a/webrtc/media/engine/webrtcvoiceengine_unittest.cc b/webrtc/media/engine/webrtcvoiceengine_unittest.cc
index 8ad5d97ce317ac888e414adcd1cfab478523dd53..f15bde68b734964577ce9ba7215a10124ee43464 100644
--- a/webrtc/media/engine/webrtcvoiceengine_unittest.cc
+++ b/webrtc/media/engine/webrtcvoiceengine_unittest.cc
@@ -480,6 +480,7 @@ class WebRtcVoiceEngineTestFake : public testing::Test {
stats.echo_return_loss = 890;
stats.echo_return_loss_enhancement = 1234;
stats.residual_echo_likelihood = 0.432f;
+ stats.residual_echo_likelihood_recent_max = 0.6f;
stats.typing_noise_detected = true;
return stats;
}
@@ -509,6 +510,8 @@ class WebRtcVoiceEngineTestFake : public testing::Test {
EXPECT_EQ(info.echo_return_loss_enhancement,
stats.echo_return_loss_enhancement);
EXPECT_EQ(info.residual_echo_likelihood, stats.residual_echo_likelihood);
+ EXPECT_EQ(info.residual_echo_likelihood_recent_max,
+ stats.residual_echo_likelihood_recent_max);
EXPECT_EQ(info.typing_noise_detected,
stats.typing_noise_detected && is_sending);
}

Powered by Google App Engine
This is Rietveld 408576698