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

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

Issue 2705353002: Fix mpeg-1 layer2 parsing typo. (Closed)
Patch Set: Nuke comment. Created 3 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/formats/mpeg/mpeg1_audio_stream_parser.cc ('k') | media/test/data/sfx.mp2 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc
diff --git a/media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc b/media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc
index bfa80217a8f53d58933c2d9104e118b73ac959a6..f403ca1b21113befe5a2d17b98f2f210c2b6d577 100644
--- a/media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc
+++ b/media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc
@@ -48,6 +48,26 @@ TEST_F(MPEG1AudioStreamParserTest, UnalignedAppend) {
EXPECT_GT(last_audio_config().codec_delay(), 0);
}
+TEST_F(MPEG1AudioStreamParserTest, UnalignedAppendMP2) {
+ const std::string expected =
+ "NewSegment"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "EndOfSegment"
+ "NewSegment"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "{ 0K }"
+ "EndOfSegment";
+ EXPECT_EQ(expected, ParseFile("sfx.mp2", 17));
+ EXPECT_GT(last_audio_config().codec_delay(), 0);
+}
+
// Test parsing with a larger piece size to verify that multiple buffers
// are passed to |new_buffer_cb_|.
TEST_F(MPEG1AudioStreamParserTest, UnalignedAppend512) {
« no previous file with comments | « media/formats/mpeg/mpeg1_audio_stream_parser.cc ('k') | media/test/data/sfx.mp2 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698