Index: Source/modules/compositorworker/CompositorWorkerManagerTest.cpp |
diff --git a/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp b/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp |
index 76ad7dbd774b7296c4ea41b087b16ac1bc75388e..6c8c234da9a78dbc584ba8f861cdc5ebeb11291b 100644 |
--- a/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp |
+++ b/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp |
@@ -132,7 +132,7 @@ public: |
void checkWorkerCanExecuteScript(WorkerThread* worker) |
{ |
OwnPtr<WebWaitableEvent> waitEvent = adoptPtr(Platform::current()->createWaitableEvent()); |
- worker->backingThread().platformThread().postTask(FROM_HERE, threadSafeBind(&CompositorWorkerManagerTest::executeScriptInWorker, AllowCrossThreadAccess(this), |
+ worker->backingThread().platformThread().taskRunner()->postTask(FROM_HERE, threadSafeBind(&CompositorWorkerManagerTest::executeScriptInWorker, AllowCrossThreadAccess(this), |
AllowCrossThreadAccess(worker), AllowCrossThreadAccess(waitEvent.get()))); |
waitEvent->wait(); |
} |
@@ -237,7 +237,7 @@ TEST_F(CompositorWorkerManagerTest, TerminateFirstAndCreateSecond) |
// Jump over to the worker's thread to verify that the Isolate is set up correctly and execute script. |
OwnPtr<WebWaitableEvent> checkEvent = adoptPtr(Platform::current()->createWaitableEvent()); |
- secondThread->platformThread().postTask(FROM_HERE, threadSafeBind(&checkCurrentIsolate, AllowCrossThreadAccess(compositorWorker->isolate()), AllowCrossThreadAccess(checkEvent.get()))); |
+ secondThread->platformThread().taskRunner()->postTask(FROM_HERE, threadSafeBind(&checkCurrentIsolate, AllowCrossThreadAccess(compositorWorker->isolate()), AllowCrossThreadAccess(checkEvent.get()))); |
waitForWaitableEventAfterIteratingCurrentLoop(checkEvent.get()); |
checkWorkerCanExecuteScript(compositorWorker.get()); |