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

Unified Diff: Source/platform/testing/UnitTestHelpers.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing #include Created 5 years, 3 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 | « Source/platform/scroll/ScrollableAreaTest.cpp ('k') | Source/web/WebKit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/testing/UnitTestHelpers.cpp
diff --git a/Source/platform/testing/UnitTestHelpers.cpp b/Source/platform/testing/UnitTestHelpers.cpp
index 371180755b025ae15f693e514dfe90510cb8e2a2..0da2683589d229d5db219c8d76c9de617e4e35f0 100644
--- a/Source/platform/testing/UnitTestHelpers.cpp
+++ b/Source/platform/testing/UnitTestHelpers.cpp
@@ -27,6 +27,7 @@
#include "platform/testing/UnitTestHelpers.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebTaskRunner.h"
#include "public/platform/WebThread.h"
#include "public/platform/WebTraceLocation.h"
#include "public/platform/WebUnitTestSupport.h"
@@ -34,7 +35,7 @@
namespace blink {
namespace testing {
-class QuitTask : public WebThread::Task {
+class QuitTask : public WebTaskRunner::Task {
public:
virtual void run()
{
@@ -44,7 +45,7 @@ public:
void runPendingTasks()
{
- Platform::current()->currentThread()->postTask(FROM_HERE, new QuitTask);
+ Platform::current()->currentThread()->taskRunner()->postTask(FROM_HERE, new QuitTask);
Platform::current()->unitTestSupport()->enterRunLoop();
}
« no previous file with comments | « Source/platform/scroll/ScrollableAreaTest.cpp ('k') | Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698