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

Unified Diff: Source/web/tests/WebHelperPluginTest.cpp

Issue 962053003: tests: Use runPendingTasks instead of WebThread::enterRunLoop()/exitRunLoop() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 10 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: Source/web/tests/WebHelperPluginTest.cpp
diff --git a/Source/web/tests/WebHelperPluginTest.cpp b/Source/web/tests/WebHelperPluginTest.cpp
index 86116dfa620773dfba0e681a14dea983911e2771..cbaad3818584cd4021d6ad1dc64f5d8b9738c244 100644
--- a/Source/web/tests/WebHelperPluginTest.cpp
+++ b/Source/web/tests/WebHelperPluginTest.cpp
@@ -5,6 +5,7 @@
#include "config.h"
#include "public/web/WebHelperPlugin.h"
+#include "core/testing/UnitTestHelpers.h"
#include "public/web/WebFrameClient.h"
#include "public/web/WebLocalFrame.h"
#include "web/tests/FakeWebPlugin.h"
@@ -42,7 +43,7 @@ private:
bool m_createPlaceholder;
};
-class WebHelperPluginTest : public testing::Test {
+class WebHelperPluginTest : public ::testing::Test {
protected:
virtual void SetUp() override
{
@@ -54,7 +55,7 @@ protected:
{
m_plugin.clear();
// WebHelperPlugin is destroyed by a task posted to the message loop.
- FrameTestHelpers::runPendingTasks();
+ testing::runPendingTasks();
}
FrameTestHelpers::WebViewHelper m_helper;

Powered by Google App Engine
This is Rietveld 408576698