| Index: media/base/pipeline_unittest.cc
|
| diff --git a/media/base/pipeline_unittest.cc b/media/base/pipeline_unittest.cc
|
| index 6e5180222c718c68c8dab7dd8a30d4eacac33885..9fd07f22e1c44e77d2446a0b4b9f3999c3977fea 100644
|
| --- a/media/base/pipeline_unittest.cc
|
| +++ b/media/base/pipeline_unittest.cc
|
| @@ -38,11 +38,9 @@ using ::testing::WithArg;
|
|
|
| namespace media {
|
|
|
| -// Demuxer properties.
|
| const int kTotalBytes = 1024;
|
|
|
| ACTION_P(SetDemuxerProperties, duration) {
|
| - arg0->SetTotalBytes(kTotalBytes);
|
| arg0->SetDuration(duration);
|
| }
|
|
|
| @@ -219,6 +217,13 @@ class PipelineTest : public ::testing::Test {
|
| EXPECT_CALL(callbacks_, OnPrerollCompleted());
|
| }
|
|
|
| + // HACK: This is required to test the time range code now that DemuxerHost
|
| + // does not include SetTotalBytes(). The test cases that depend on this will
|
| + // be moved out of pipeline_unittest when Pipeline stops implementing
|
| + // DataSourceHost, see http://crbug.com/122071.
|
| + DataSourceHost* host = pipeline_.get();
|
| + host->SetTotalBytes(kTotalBytes);
|
| +
|
| pipeline_->Start(
|
| filter_collection_.Pass(),
|
| base::Bind(&CallbackHelper::OnEnded, base::Unretained(&callbacks_)),
|
|
|