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 769d34999f30d46f9092eb8bbda8d6452dc39613..80531c59fa9ca889d6a63ef9299d73fcaa266021 100644 |
--- a/third_party/WebKit/Source/web/tests/SpinLockTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/SpinLockTest.cpp |
@@ -36,8 +36,8 @@ |
#include "public/platform/WebThread.h" |
#include "public/platform/WebTraceLocation.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "wtf/PtrUtil.h" |
-#include <memory> |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -77,8 +77,8 @@ TEST(SpinLockTest, Torture) |
{ |
char sharedBuffer[bufferSize]; |
- std::unique_ptr<WebThread> thread1 = wrapUnique(Platform::current()->createThread("thread1")); |
- std::unique_ptr<WebThread> thread2 = wrapUnique(Platform::current()->createThread("thread2")); |
+ OwnPtr<WebThread> thread1 = adoptPtr(Platform::current()->createThread("thread1")); |
+ OwnPtr<WebThread> thread2 = adoptPtr(Platform::current()->createThread("thread2")); |
thread1->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))); |
thread2->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))); |