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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp

Issue 2782373002: Remove MediaControls methods needed for the Cast button (Closed)
Patch Set: Fixed MediaControlsImplTest Created 3 years, 8 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
Index: third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp
index f5317b77cd8b25a930436c6bb519404131fcfbd5..fe4d41e0a8021b1804a1152b3ba4e3dc94d0dac0 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp
@@ -96,6 +96,8 @@ TEST_F(HTMLMediaElementEventListenersTest, RemovingFromDocumentCollectsAll) {
EXPECT_TRUE(persistent_video->HasEventListeners());
}
+ testing::RunPendingTasks();
+
ThreadState::Current()->CollectAllGarbage();
// They have been GC'd.
@@ -123,6 +125,8 @@ TEST_F(HTMLMediaElementEventListenersTest,
EXPECT_TRUE(GetDocument().HasEventListeners());
EXPECT_TRUE(Video()->HasEventListeners());
+ testing::RunPendingTasks();
+
ThreadState::Current()->CollectAllGarbage();
EXPECT_NE(Video(), nullptr);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ('k') | third_party/WebKit/Source/core/html/media/MediaControls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698