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

Unified Diff: media/mp4/mp4_stream_parser_unittest.cc

Issue 10843044: Fix sourceAbort() for BMFF streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/mp4/mp4_stream_parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mp4/mp4_stream_parser_unittest.cc
diff --git a/media/mp4/mp4_stream_parser_unittest.cc b/media/mp4/mp4_stream_parser_unittest.cc
index 6b4f4caa73b1302d26aa2a8f7ad3c62322ecee28..830f35b968c640f55fd914ceab1f6601a79eb843 100644
--- a/media/mp4/mp4_stream_parser_unittest.cc
+++ b/media/mp4/mp4_stream_parser_unittest.cc
@@ -137,6 +137,19 @@ TEST_F(MP4StreamParserTest, TestMultiFragmentAppend) {
ParseMP4File("bear.1280x720_dash.mp4", 768432);
}
+TEST_F(MP4StreamParserTest, TestFlush) {
+ // Flush while reading sample data, then start a new stream.
+ InitializeParser();
+
+ scoped_refptr<DecoderBuffer> buffer =
+ ReadTestDataFile("bear.1280x720_dash.mp4");
+ EXPECT_TRUE(AppendDataInPieces(buffer->GetData(), 65536, 512));
+ parser_->Flush();
+ EXPECT_TRUE(AppendDataInPieces(buffer->GetData(),
+ buffer->GetDataSize(),
+ 512));
+}
+
TEST_F(MP4StreamParserTest, TestReinitialization) {
InitializeParser();
« no previous file with comments | « media/mp4/mp4_stream_parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698