Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp

Issue 2909093002: Add MediaControlsImplTestWithMockScheduler. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698