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

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

Issue 2539443004: Worker: Move ParentFrameTaskRunners from WorkerReportingProxy to ObjectProxy (Closed)
Patch Set: rebase Created 3 years, 11 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/WorkerThreadTest.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp b/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
index a8f88b4b003eb521fdbb6b195354174b8a6ee106..3514ae142c2616cf0c68e7c6e429db40a1df195c 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
@@ -28,8 +28,7 @@ void waitForSignalTask(WorkerThread* workerThread,
EXPECT_TRUE(workerThread->isCurrentThread());
// Notify the main thread that the debugger task is waiting for the signal.
- workerThread->workerReportingProxy()
- .getParentFrameTaskRunners()
+ workerThread->getParentFrameTaskRunners()
->get(TaskType::UnspecedTimer)
->postTask(BLINK_FROM_HERE, crossThreadBind(&testing::exitRunLoop));
waitableEvent->wait();
@@ -46,8 +45,9 @@ class WorkerThreadTest : public ::testing::Test {
m_reportingProxy = WTF::makeUnique<MockWorkerReportingProxy>();
m_securityOrigin =
SecurityOrigin::create(KURL(ParsedURLString, "http://fake.url/"));
- m_workerThread = WTF::wrapUnique(new WorkerThreadForTest(
- m_loaderProxyProvider.get(), *m_reportingProxy));
+ m_workerThread = WTF::wrapUnique(
+ new WorkerThreadForTest(m_loaderProxyProvider.get(), *m_reportingProxy,
+ ParentFrameTaskRunners::create(nullptr)));
m_lifecycleObserver = new MockWorkerThreadLifecycleObserver(
m_workerThread->getWorkerThreadLifecycleContext());
}

Powered by Google App Engine
This is Rietveld 408576698