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

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

Issue 2503843004: Add a reliability term to the echo detector. (Closed)
Patch Set: Added function to set reliability directly for use in unittests. Created 4 years, 1 month 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
« no previous file with comments | « webrtc/modules/audio_processing/residual_echo_detector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/residual_echo_detector_unittest.cc
diff --git a/webrtc/modules/audio_processing/residual_echo_detector_unittest.cc b/webrtc/modules/audio_processing/residual_echo_detector_unittest.cc
index 7f6cf16abd57af5c7e5bb33db4c9efd6541eab97..cde731d76917032339a6a3027e12786402629efb 100644
--- a/webrtc/modules/audio_processing/residual_echo_detector_unittest.cc
+++ b/webrtc/modules/audio_processing/residual_echo_detector_unittest.cc
@@ -17,6 +17,7 @@ namespace webrtc {
TEST(ResidualEchoDetectorTests, Echo) {
ResidualEchoDetector echo_detector;
+ echo_detector.SetReliabilityForTest(1.0f);
std::vector<float> ones(160, 1.f);
std::vector<float> zeros(160, 0.f);
@@ -41,6 +42,7 @@ TEST(ResidualEchoDetectorTests, Echo) {
TEST(ResidualEchoDetectorTests, NoEcho) {
ResidualEchoDetector echo_detector;
+ echo_detector.SetReliabilityForTest(1.0f);
std::vector<float> ones(160, 1.f);
std::vector<float> zeros(160, 0.f);
@@ -60,6 +62,7 @@ TEST(ResidualEchoDetectorTests, NoEcho) {
TEST(ResidualEchoDetectorTests, EchoWithRenderClockDrift) {
ResidualEchoDetector echo_detector;
+ echo_detector.SetReliabilityForTest(1.0f);
std::vector<float> ones(160, 1.f);
std::vector<float> zeros(160, 0.f);
@@ -94,6 +97,7 @@ TEST(ResidualEchoDetectorTests, EchoWithRenderClockDrift) {
TEST(ResidualEchoDetectorTests, EchoWithCaptureClockDrift) {
ResidualEchoDetector echo_detector;
+ echo_detector.SetReliabilityForTest(1.0f);
std::vector<float> ones(160, 1.f);
std::vector<float> zeros(160, 0.f);
« no previous file with comments | « webrtc/modules/audio_processing/residual_echo_detector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698