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

Unified Diff: media/formats/mpeg/adts_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
« no previous file with comments | « media/formats/mp4/mp4_stream_parser_unittest.cc ('k') | media/formats/mpeg/mp3_stream_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mpeg/adts_stream_parser_unittest.cc
diff --git a/media/formats/mpeg/adts_stream_parser_unittest.cc b/media/formats/mpeg/adts_stream_parser_unittest.cc
index d0bedbeaac327bd93aebc6befabc4df50a1ecdb7..b9eb0d9c6c53676376f611b47a40f62084f85660 100644
--- a/media/formats/mpeg/adts_stream_parser_unittest.cc
+++ b/media/formats/mpeg/adts_stream_parser_unittest.cc
@@ -22,21 +22,21 @@ TEST_F(ADTSStreamParserTest, UnalignedAppend) {
const std::string expected =
"NewSegment"
"{ 0K }"
- "{ 23K }"
- "{ 46K }"
- "{ 69K }"
- "{ 92K }"
- "{ 116K }"
- "{ 139K }"
- "{ 162K }"
- "{ 185K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
"EndOfSegment"
"NewSegment"
- "{ 208K }"
- "{ 232K }"
- "{ 255K }"
- "{ 278K }"
- "{ 301K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
"EndOfSegment";
EXPECT_EQ(expected, ParseFile("sfx.adts", 17));
}
@@ -47,11 +47,11 @@ TEST_F(ADTSStreamParserTest, UnalignedAppend512) {
const std::string expected =
"NewSegment"
"{ 0K 23K 46K }"
- "{ 69K 92K 116K 139K 162K }"
- "{ 185K 208K 232K 255K 278K }"
+ "{ 0K 23K 46K 69K 92K }"
+ "{ 0K 23K 46K 69K 92K }"
"EndOfSegment"
"NewSegment"
- "{ 301K }"
+ "{ 0K }"
"EndOfSegment";
EXPECT_EQ(expected, ParseFile("sfx.adts", 512));
}
« no previous file with comments | « media/formats/mp4/mp4_stream_parser_unittest.cc ('k') | media/formats/mpeg/mp3_stream_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698