Index: media/filters/chunk_demuxer_unittest.cc |
diff --git a/media/filters/chunk_demuxer_unittest.cc b/media/filters/chunk_demuxer_unittest.cc |
index 61ee9c2bd8f1820378f52d8f57113fc7b29c1793..0595bdc7c082d36dbce175a0a3495fc9644ba2ac 100644 |
--- a/media/filters/chunk_demuxer_unittest.cc |
+++ b/media/filters/chunk_demuxer_unittest.cc |
@@ -183,9 +183,8 @@ class ChunkDemuxerTest : public testing::Test { |
bool AppendData(const uint8* data, size_t length) { |
CHECK(length); |
- EXPECT_CALL(host_, SetBufferedBytes(_)) |
- .Times(AnyNumber()) |
- .WillRepeatedly(SaveArg<0>(&buffered_bytes_)); |
+ EXPECT_CALL(host_, AddBufferedByteRange(_, _)).Times(AnyNumber()) |
+ .WillRepeatedly(SaveArg<1>(&buffered_bytes_)); |
EXPECT_CALL(host_, SetNetworkActivity(true)) |
.Times(AnyNumber()); |
return demuxer_->AppendData(kSourceId, data, length); |
@@ -227,10 +226,8 @@ class ChunkDemuxerTest : public testing::Test { |
PipelineStatusCB CreateInitDoneCB(const base::TimeDelta& expected_duration, |
PipelineStatus expected_status) { |
- if (expected_status == PIPELINE_OK) { |
+ if (expected_status == PIPELINE_OK) |
EXPECT_CALL(host_, SetDuration(expected_duration)); |
- EXPECT_CALL(host_, SetCurrentReadPosition(_)); |
- } |
return base::Bind(&ChunkDemuxerTest::InitDoneCalled, |
base::Unretained(this), |