Index: media/base/pipeline_unittest.cc |
diff --git a/media/base/pipeline_unittest.cc b/media/base/pipeline_unittest.cc |
index 888b9626de1f1b479d29144f462e5f1e2d5e232e..667942140cebde2be6b0da6e5ea3abe3d6c608b7 100644 |
--- a/media/base/pipeline_unittest.cc |
+++ b/media/base/pipeline_unittest.cc |
@@ -477,7 +477,7 @@ TEST_F(PipelineTest, GetBufferedTimeRanges) { |
EXPECT_EQ(0u, pipeline_->GetBufferedTimeRanges().size()); |
- pipeline_->SetBufferedBytes(kTotalBytes / 8); |
+ pipeline_->AddBufferedByteRange(0, kTotalBytes / 8); |
EXPECT_EQ(1u, pipeline_->GetBufferedTimeRanges().size()); |
EXPECT_EQ(base::TimeDelta(), pipeline_->GetBufferedTimeRanges().start(0)); |
EXPECT_EQ(kDuration / 8, pipeline_->GetBufferedTimeRanges().end(0)); |
@@ -486,7 +486,8 @@ TEST_F(PipelineTest, GetBufferedTimeRanges) { |
ExpectSeek(kSeekTime); |
DoSeek(kSeekTime); |
- pipeline_->SetBufferedBytes(kTotalBytes / 2 + kTotalBytes / 8); |
+ pipeline_->AddBufferedByteRange(kTotalBytes / 2, |
+ kTotalBytes / 2 + kTotalBytes / 8); |
EXPECT_EQ(2u, pipeline_->GetBufferedTimeRanges().size()); |
EXPECT_EQ(base::TimeDelta(), pipeline_->GetBufferedTimeRanges().start(0)); |
EXPECT_EQ(kDuration / 8, pipeline_->GetBufferedTimeRanges().end(0)); |