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

Unified Diff: media/formats/mpeg/mp3_stream_parser_unittest.cc

Issue 195973006: Allow StreamParsers to request automatic timestampOffset updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add ADTS tests. Created 6 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: media/formats/mpeg/mp3_stream_parser_unittest.cc
diff --git a/media/formats/mpeg/mp3_stream_parser_unittest.cc b/media/formats/mpeg/mp3_stream_parser_unittest.cc
index eefadc5486d26853ee9355563884fdd5d90c061b..85cc129fe158288d540c6b5c96f3babfc2788d87 100644
--- a/media/formats/mpeg/mp3_stream_parser_unittest.cc
+++ b/media/formats/mpeg/mp3_stream_parser_unittest.cc
@@ -22,22 +22,22 @@ TEST_F(MP3StreamParserTest, UnalignedAppend) {
const std::string expected =
"NewSegment"
"{ 0K }"
- "{ 26K }"
- "{ 52K }"
- "{ 78K }"
- "{ 104K }"
- "{ 130K }"
- "{ 156K }"
- "{ 182K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
"EndOfSegment"
"NewSegment"
- "{ 208K }"
- "{ 235K }"
- "{ 261K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
"EndOfSegment"
"NewSegment"
- "{ 287K }"
- "{ 313K }"
+ "{ 0K }"
+ "{ 0K }"
"EndOfSegment";
EXPECT_EQ(expected, ParseFile("sfx.mp3", 17));
}
@@ -48,12 +48,12 @@ TEST_F(MP3StreamParserTest, UnalignedAppend512) {
const std::string expected =
"NewSegment"
"{ 0K }"
- "{ 26K 52K 78K 104K }"
+ "{ 0K 26K 52K 78K }"
"EndOfSegment"
"NewSegment"
- "{ 130K 156K 182K }"
- "{ 208K 235K 261K 287K }"
- "{ 313K }"
+ "{ 0K 26K 52K }"
+ "{ 0K 26K 52K 78K }"
+ "{ 0K }"
"EndOfSegment";
EXPECT_EQ(expected, ParseFile("sfx.mp3", 512));
}
« no previous file with comments | « media/formats/mpeg/adts_stream_parser_unittest.cc ('k') | media/formats/mpeg/mpeg_audio_stream_parser_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698