| Index: third_party/WebKit/Source/web/tests/SpinLockTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/SpinLockTest.cpp b/third_party/WebKit/Source/web/tests/SpinLockTest.cpp
|
| index 54544f76c368fa420cf9b5ccd8f3bb609bc83c5f..e0dbaf1e84b7bdf730339bf43267ffffcfbeda6c 100644
|
| --- a/third_party/WebKit/Source/web/tests/SpinLockTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/SpinLockTest.cpp
|
| @@ -30,9 +30,9 @@
|
|
|
| #include "wtf/SpinLock.h"
|
|
|
| -#include "platform/Task.h"
|
| #include "platform/ThreadSafeFunctional.h"
|
| #include "public/platform/Platform.h"
|
| +#include "public/platform/WebTaskRunner.h"
|
| #include "public/platform/WebThread.h"
|
| #include "public/platform/WebTraceLocation.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -80,8 +80,8 @@ TEST(SpinLockTest, Torture)
|
| OwnPtr<WebThread> thread1 = adoptPtr(Platform::current()->createThread("thread1"));
|
| OwnPtr<WebThread> thread2 = adoptPtr(Platform::current()->createThread("thread2"));
|
|
|
| - thread1->taskRunner()->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
|
| - thread2->taskRunner()->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
|
| + thread1->taskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer))));
|
| + thread2->taskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer))));
|
|
|
| thread1.clear();
|
| thread2.clear();
|
|
|