Commit a11f72df authored by Peter Collingbourne's avatar Peter Collingbourne Committed by Commit Bot

Increase tolerance factor in audio decoder tests.

This is required for the test to pass on Android P.

Bug: 931480
Change-Id: I65dc175ed754a4201204bfdaf1cacd70d5f7e0df
Reviewed-on: https://chromium-review.googlesource.com/c/1471462Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Commit-Queue: Peter Collingbourne <pcc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632353}
parent 58012bfd
...@@ -363,7 +363,7 @@ class AudioDecoderTest ...@@ -363,7 +363,7 @@ class AudioDecoderTest
// Generate a lossy hash of the audio used for comparison across platforms. // Generate a lossy hash of the audio used for comparison across platforms.
AudioHash audio_hash; AudioHash audio_hash;
audio_hash.Update(output.get(), output->frames()); audio_hash.Update(output.get(), output->frames());
EXPECT_TRUE(audio_hash.IsEquivalent(sample_info.hash, 0.02)) EXPECT_TRUE(audio_hash.IsEquivalent(sample_info.hash, 0.03))
<< "Audio hashes differ. Expected: " << sample_info.hash << "Audio hashes differ. Expected: " << sample_info.hash
<< " Actual: " << audio_hash.ToString(); << " Actual: " << audio_hash.ToString();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment