Index: media/filters/pipeline_integration_test.cc |
diff --git a/media/filters/pipeline_integration_test.cc b/media/filters/pipeline_integration_test.cc |
index dfea318086ee6dfeda535419e9868989f5fa4add..21e44be07260ab422b1a39c708df73d0efe24c5c 100644 |
--- a/media/filters/pipeline_integration_test.cc |
+++ b/media/filters/pipeline_integration_test.cc |
@@ -61,10 +61,10 @@ const int kAppendWholeFile = -1; |
const int kAppendTimeSec = 1; |
const int kAppendTimeMs = kAppendTimeSec * 1000; |
const int k320WebMFileDurationMs = 2736; |
-const int k640WebMFileDurationMs = 2762; |
+const int k640WebMFileDurationMs = 2749; |
const int kOpusEndTrimmingWebMFileDurationMs = 2771; |
const int kVP9WebMFileDurationMs = 2736; |
-const int kVP8AWebMFileDurationMs = 2734; |
+const int kVP8AWebMFileDurationMs = 2733; |
#if defined(USE_PROPRIETARY_CODECS) |
const int k640IsoFileDurationMs = 2737; |
@@ -266,7 +266,7 @@ class MockMediaSource { |
base::Bind(&MockMediaSource::DemuxerNeedKey, |
base::Unretained(this)), |
LogCB(), |
- false)), |
+ true)), |
owned_chunk_demuxer_(chunk_demuxer_), |
use_legacy_frame_processor_(use_legacy_frame_processor) { |
@@ -591,11 +591,7 @@ TEST_P(PipelineIntegrationTest, BasicPlayback_MediaSource_Opus_WebM) { |
EXPECT_EQ(1u, pipeline_->GetBufferedTimeRanges().size()); |
EXPECT_EQ(0, pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds()); |
- // TODO(acolwell/wolenetz): Drop the "+ 1" once WebM stream parser always |
- // emits frames with valid durations (see http://crbug.com/351166) and |
- // compliant coded frame processor's "highest presentation end timestamp" is |
- // used to update duration (see http://crbug.com/249422). |
- EXPECT_EQ(kOpusEndTrimmingWebMFileDurationMs + 1, |
+ EXPECT_EQ(kOpusEndTrimmingWebMFileDurationMs, |
pipeline_->GetBufferedTimeRanges().end(0).InMilliseconds()); |
Play(); |
@@ -613,11 +609,7 @@ TEST_P(PipelineIntegrationTest, DISABLED_MediaSource_Opus_Seeking_WebM) { |
EXPECT_EQ(1u, pipeline_->GetBufferedTimeRanges().size()); |
EXPECT_EQ(0, pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds()); |
- // TODO(acolwell/wolenetz): Drop the "+ 1" once WebM stream parser always |
- // emits frames with valid durations (see http://crbug.com/351166) and |
- // compliant coded frame processor's "highest presentation end timestamp" is |
- // used to update duration (see http://crbug.com/249422). |
- EXPECT_EQ(kOpusEndTrimmingWebMFileDurationMs + 1, |
+ EXPECT_EQ(kOpusEndTrimmingWebMFileDurationMs, |
pipeline_->GetBufferedTimeRanges().end(0).InMilliseconds()); |
base::TimeDelta start_seek_time = base::TimeDelta::FromMilliseconds(1000); |
@@ -678,10 +670,7 @@ TEST_P(PipelineIntegrationTest, MediaSource_ConfigChange_Encrypted_WebM) { |
EXPECT_EQ(1u, pipeline_->GetBufferedTimeRanges().size()); |
EXPECT_EQ(0, pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds()); |
- // The "+ 1" is due to estimated audio and video frame durations on the last |
- // frames appended. The unencrypted file has a TrackEntry DefaultDuration |
- // field for the video track, but the encrypted file does not. |
- EXPECT_EQ(kAppendTimeMs + k640WebMFileDurationMs + 1, |
+ EXPECT_EQ(kAppendTimeMs + k640WebMFileDurationMs, |
pipeline_->GetBufferedTimeRanges().end(0).InMilliseconds()); |
Play(); |
@@ -741,10 +730,7 @@ TEST_P(PipelineIntegrationTest, |
EXPECT_EQ(1u, pipeline_->GetBufferedTimeRanges().size()); |
EXPECT_EQ(0, pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds()); |
// The second video was not added, so its time has not been added. |
- // The "+ 1" is due to estimated audio and video frame durations on the last |
- // frames appended. The unencrypted file has a TrackEntry DefaultDuration |
- // field for the video track, but the encrypted file does not. |
- EXPECT_EQ(k320WebMFileDurationMs + 1, |
+ EXPECT_EQ(k320WebMFileDurationMs, |
pipeline_->GetBufferedTimeRanges().end(0).InMilliseconds()); |
Play(); |