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

Unified Diff: media/filters/audio_file_reader_unittest.cc

Issue 132373013: Allow WebAudio decodeAudioData() to be more resilient to bad streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « media/filters/audio_file_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_file_reader_unittest.cc
diff --git a/media/filters/audio_file_reader_unittest.cc b/media/filters/audio_file_reader_unittest.cc
index bf4acd176c2ffc2ad1b18959d0b6b63fd4d02257..a50c8c2a75e719337ccee8d3fd5a7008b6c46861 100644
--- a/media/filters/audio_file_reader_unittest.cc
+++ b/media/filters/audio_file_reader_unittest.cc
@@ -116,6 +116,11 @@ TEST_F(AudioFileReaderTest, MP3) {
base::TimeDelta::FromMicroseconds(313470), 13824, 12719);
}
+TEST_F(AudioFileReaderTest, CorruptMP3) {
+ RunTest("corrupt.mp3", "-4.95,-2.95,-0.44,1.16,0.31,-2.21,", 1, 44100,
+ base::TimeDelta::FromMicroseconds(1018826), 44930, 44928);
+}
+
TEST_F(AudioFileReaderTest, AAC) {
RunTest("sfx.m4a", "1.81,1.66,2.32,3.27,4.46,3.36,", 1, 44100,
base::TimeDelta::FromMicroseconds(312001), 13759, 13312);
« no previous file with comments | « media/filters/audio_file_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698