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

Unified Diff: media/filters/chunk_demuxer_unittest.cc

Issue 10908180: Reset 'can_update_offset' on call to ChunkDemuxer::Abort() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix comment Created 8 years, 3 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/chunk_demuxer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer_unittest.cc
diff --git a/media/filters/chunk_demuxer_unittest.cc b/media/filters/chunk_demuxer_unittest.cc
index bad1223aaa526af8a4595dd98d60c7ad747e1f07..de003f7a47043b7ee159d61fc22be8e2b280894f 100644
--- a/media/filters/chunk_demuxer_unittest.cc
+++ b/media/filters/chunk_demuxer_unittest.cc
@@ -2260,6 +2260,12 @@ TEST_F(ChunkDemuxerTest, TestTimestampOffsetMidParse) {
// Setting a timestamp should fail because we're in the middle of a cluster.
ASSERT_FALSE(demuxer_->SetTimestampOffset(
kSourceId, base::TimeDelta::FromSeconds(25)));
+
+ demuxer_->Abort(kSourceId);
+ // After Abort(), setting a timestamp should succeed since we're no longer
+ // in the middle of a cluster
+ ASSERT_TRUE(demuxer_->SetTimestampOffset(
+ kSourceId, base::TimeDelta::FromSeconds(25)));
}
TEST_F(ChunkDemuxerTest, TestDurationChange) {
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698