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

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

Issue 1841213002: Renamed the test::BitExactFrame method to test::VectorDifferenceBounded. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Changed name of one of the vector comparison methods Created 4 years, 9 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/noise_suppression_bitexactness_unittest.cc
diff --git a/webrtc/modules/audio_processing/noise_suppression_bitexactness_unittest.cc b/webrtc/modules/audio_processing/noise_suppression_bitexactness_unittest.cc
index 38551d39f974271b27caeafaeb58173653ca3464..f528431b62a4388f3f6dc18354781f3b4c6339ea 100644
--- a/webrtc/modules/audio_processing/noise_suppression_bitexactness_unittest.cc
+++ b/webrtc/modules/audio_processing/noise_suppression_bitexactness_unittest.cc
@@ -77,19 +77,19 @@ void RunBitexactnessTest(int sample_rate_hz,
float speech_probability = noise_suppressor.speech_probability();
std::vector<float> noise_estimate = noise_suppressor.NoiseEstimate();
- const float kTolerance = 1.0f / 32768.0f;
+ const float kVectorElementErrorBound = 1.0f / 32768.0f;
EXPECT_FLOAT_EQ(speech_probability_reference, speech_probability);
- EXPECT_TRUE(test::BitExactVector(noise_estimate_reference, noise_estimate,
- kTolerance));
+ EXPECT_TRUE(test::VectorDifferenceBounded(
+ noise_estimate_reference, noise_estimate, kVectorElementErrorBound));
// Compare the output with the reference. Only the first values of the output
// from last frame processed are compared in order not having to specify all
// preceeding frames as testvectors. As the algorithm being tested has a
// memory, testing only the last frame implicitly also tests the preceeding
// frames.
- EXPECT_TRUE(test::BitExactFrame(
+ EXPECT_TRUE(test::StackedFrameDifferenceBounded(
capture_config.num_frames(), capture_config.num_channels(),
- output_reference, capture_output, kTolerance));
+ output_reference, capture_output, kVectorElementErrorBound));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698