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

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

Issue 1164753004: Tidy up CompositorWorkerManager unit tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 6 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/core/workers/WorkerThreadStartupData.h ('k') | Source/modules/compositorworker/CompositorWorker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerThreadTest.cpp
diff --git a/Source/core/workers/WorkerThreadTest.cpp b/Source/core/workers/WorkerThreadTest.cpp
index 1e8402d8502f7ea7942b51cdb75050a0d14f4733..e59b73d032e940f98f166b6adac665a05aa08a3f 100644
--- a/Source/core/workers/WorkerThreadTest.cpp
+++ b/Source/core/workers/WorkerThreadTest.cpp
@@ -175,6 +175,8 @@ public:
CSPHeaderAndType headerAndType("contentSecurityPolicy", ContentSecurityPolicyHeaderTypeReport);
headers->append(headerAndType);
+ OwnPtrWillBeRawPtr<WorkerClients> clients = nullptr;
+
m_workerThread->start(WorkerThreadStartupData::create(
KURL(ParsedURLString, "http://fake.url/"),
"fake user agent",
@@ -183,7 +185,7 @@ public:
DontPauseWorkerGlobalScopeOnStart,
headers.release(),
m_securityOrigin.get(),
- WorkerClients::create(),
+ clients.release(),
V8CacheOptionsDefault));
m_workerThread->backingThread().postTask(FROM_HERE, new SignalTask(completionEvent.get()));
completionEvent->wait();
« no previous file with comments | « Source/core/workers/WorkerThreadStartupData.h ('k') | Source/modules/compositorworker/CompositorWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698