| Index: content/renderer/media/webmediaplayer_ms_unittest.cc
|
| diff --git a/content/renderer/media/webmediaplayer_ms_unittest.cc b/content/renderer/media/webmediaplayer_ms_unittest.cc
|
| index d930ddc740eabe500c7dda7e6d17d61c1d458fa4..403389cdda816357ee2df05c008b063ac7e7fb78 100644
|
| --- a/content/renderer/media/webmediaplayer_ms_unittest.cc
|
| +++ b/content/renderer/media/webmediaplayer_ms_unittest.cc
|
| @@ -597,10 +597,10 @@ TEST_P(WebMediaPlayerMSTest, PlayThenPause) {
|
| // Here we call pause, and expect a freezing frame.
|
| EXPECT_CALL(*this, DoStopRendering());
|
| player_.pause();
|
| - auto prev_frame = compositor_->GetCurrentFrame();
|
| + auto prev_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| message_loop_controller_.RunAndWaitForStatus(
|
| media::PipelineStatus::PIPELINE_OK);
|
| - auto after_frame = compositor_->GetCurrentFrame();
|
| + auto after_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| EXPECT_EQ(prev_frame->timestamp(), after_frame->timestamp());
|
| testing::Mock::VerifyAndClearExpectations(this);
|
|
|
| @@ -633,20 +633,20 @@ TEST_P(WebMediaPlayerMSTest, PlayThenPauseThenPlay) {
|
| // Here we call pause, and expect a freezing frame.
|
| EXPECT_CALL(*this, DoStopRendering());
|
| player_.pause();
|
| - auto prev_frame = compositor_->GetCurrentFrame();
|
| + auto prev_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| message_loop_controller_.RunAndWaitForStatus(
|
| media::PipelineStatus::PIPELINE_OK);
|
| - auto after_frame = compositor_->GetCurrentFrame();
|
| + auto after_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| EXPECT_EQ(prev_frame->timestamp(), after_frame->timestamp());
|
| testing::Mock::VerifyAndClearExpectations(this);
|
|
|
| // We resume the player, and expect rendering can continue.
|
| EXPECT_CALL(*this, DoStartRendering());
|
| player_.play();
|
| - prev_frame = compositor_->GetCurrentFrame();
|
| + prev_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| message_loop_controller_.RunAndWaitForStatus(
|
| media::PipelineStatus::PIPELINE_OK);
|
| - after_frame = compositor_->GetCurrentFrame();
|
| + after_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| EXPECT_NE(prev_frame->timestamp(), after_frame->timestamp());
|
| testing::Mock::VerifyAndClearExpectations(this);
|
|
|
| @@ -685,18 +685,18 @@ TEST_F(WebMediaPlayerMSTest, BackgroudRendering) {
|
|
|
| // Switch to background rendering, expect rendering to continue.
|
| SetBackgroundRendering(true);
|
| - auto prev_frame = compositor_->GetCurrentFrame();
|
| + auto prev_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| message_loop_controller_.RunAndWaitForStatus(
|
| media::PipelineStatus::PIPELINE_OK);
|
| - auto after_frame = compositor_->GetCurrentFrame();
|
| + auto after_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| EXPECT_NE(prev_frame->timestamp(), after_frame->timestamp());
|
|
|
| // Switch to foreground rendering.
|
| SetBackgroundRendering(false);
|
| - prev_frame = compositor_->GetCurrentFrame();
|
| + prev_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| message_loop_controller_.RunAndWaitForStatus(
|
| media::PipelineStatus::PIPELINE_OK);
|
| - after_frame = compositor_->GetCurrentFrame();
|
| + after_frame = compositor_->GetCurrentFrameWithoutUpdatingStatistics();
|
| EXPECT_NE(prev_frame->timestamp(), after_frame->timestamp());
|
| testing::Mock::VerifyAndClearExpectations(this);
|
|
|
|
|