Renamed the test::BitExactFrame method to test::VectorDifferenceBounded.
BUG=
Review URL: https://codereview.webrtc.org/1841213002
Cr-Commit-Position: refs/heads/master@{#12162}
diff --git a/webrtc/modules/audio_processing/gain_control_unittest.cc b/webrtc/modules/audio_processing/gain_control_unittest.cc
index fe89806..ebb14ef 100644
--- a/webrtc/modules/audio_processing/gain_control_unittest.cc
+++ b/webrtc/modules/audio_processing/gain_control_unittest.cc
@@ -124,10 +124,10 @@
// preceeding frames as testvectors. As the algorithm being tested has a
// memory, testing only the last frame implicitly also tests the preceeding
// frames.
- const float kTolerance = 1.0f / 32768.0f;
- EXPECT_TRUE(test::BitExactFrame(
+ const float kElementErrorBound = 1.0f / 32768.0f;
+ EXPECT_TRUE(test::VerifyDeinterleavedArray(
capture_config.num_frames(), capture_config.num_channels(),
- output_reference, capture_output, kTolerance));
+ output_reference, capture_output, kElementErrorBound));
}
} // namespace