Chromium Code Reviews| Index: third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp |
| diff --git a/third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp b/third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp |
| index 2c0729d20329dd4e57d0089e1c257bf9e5e66fee..ff07c7bf8fc69c19590cefeda26a00265efa8ab2 100644 |
| --- a/third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp |
| +++ b/third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp |
| @@ -151,6 +151,8 @@ class MediaControlsImplTest : public ::testing::Test { |
| page_holder_->GetFrame().GetSettings()->SetScriptEnabled(true); |
| } |
| + void ResetPage() { page_holder_.reset(); } |
| + |
| void SimulateRouteAvailable() { |
| media_controls_->MediaElement().RemoteRouteAvailabilityChanged( |
| WebRemotePlaybackAvailability::kDeviceAvailable); |
| @@ -792,6 +794,8 @@ TEST_F(MediaControlsImplTest, MAYBE_TimelineMetricsDragBackAndForth) { |
| } |
| TEST_F(MediaControlsImplTest, ControlsRemainVisibleDuringKeyboardInteraction) { |
| + ResetPage(); |
|
whywhat
2017/05/29 18:19:53
This is the line that would likely look confusing
|
| + |
| ScopedTestingPlatformSupport<TestingPlatformSupportWithMockScheduler> |
| platform; |