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

Unified Diff: third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp

Issue 2716853002: (WIP) Worker: Merge ParentFrameTaskRunners into TaskRunnerHelper
Patch Set: WIP Created 3 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: third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp
diff --git a/third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp b/third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp
index d0b11fc42396583552d50c6123a56b9d01b762d8..4c96e198108ba4e26cc2d5d9ea80e964686e15a1 100644
--- a/third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp
+++ b/third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp
@@ -58,8 +58,7 @@ class DedicatedWorkerThreadForTest final : public DedicatedWorkerThread {
void countFeature(UseCounter::Feature feature) {
EXPECT_TRUE(isCurrentThread());
globalScope()->countFeature(feature);
- getParentFrameTaskRunners()
- ->get(TaskType::UnspecedTimer)
+ FrameTaskRunnerHelper::get(TaskType::UnspecedTimer, globalScope())
->postTask(BLINK_FROM_HERE, crossThreadBind(&testing::exitRunLoop));
}
@@ -74,8 +73,7 @@ class DedicatedWorkerThreadForTest final : public DedicatedWorkerThread {
String consoleMessage = consoleMessageStorage()->at(0)->message();
EXPECT_TRUE(consoleMessage.contains("deprecated"));
- getParentFrameTaskRunners()
- ->get(TaskType::UnspecedTimer)
+ FrameTaskRunnerHelper::get(TaskType::UnspecedTimer, globalScope())
->postTask(BLINK_FROM_HERE, crossThreadBind(&testing::exitRunLoop));
}
};
@@ -124,7 +122,8 @@ class InProcessWorkerMessagingProxyForTest
nullptr /* workerClients */, WebAddressSpaceLocal,
nullptr /* originTrialTokens */, nullptr /* workerSettings */,
WorkerV8Settings::Default()),
- getParentFrameTaskRunners());
+ FrameTaskRunnersHolder::create(
+ toDocument(getExecutionContext())->frame()));
workerInspectorProxy()->workerThreadCreated(
toDocument(getExecutionContext()), m_workerThread.get(), scriptURL);

Powered by Google App Engine
This is Rietveld 408576698