| Index: Source/web/tests/SpinLockTest.cpp
|
| diff --git a/Source/web/tests/SpinLockTest.cpp b/Source/web/tests/SpinLockTest.cpp
|
| index 3bf7c882a42cadb783fbfff2ace09baf657402c6..69f636facac4e006a8410411910f5b36902dbefa 100644
|
| --- a/Source/web/tests/SpinLockTest.cpp
|
| +++ b/Source/web/tests/SpinLockTest.cpp
|
| @@ -36,13 +36,12 @@
|
| #include "public/platform/WebThread.h"
|
| #include "wtf/OwnPtr.h"
|
| #include "wtf/PassOwnPtr.h"
|
| -
|
| #include <gtest/gtest.h>
|
|
|
| -using blink::Task;
|
| -
|
| namespace {
|
|
|
| +using namespace blink;
|
| +
|
| static const size_t bufferSize = 16;
|
|
|
| static int lock = 0;
|
| @@ -80,8 +79,8 @@ TEST(WTF_SpinLock, Torture)
|
| {
|
| char sharedBuffer[bufferSize];
|
|
|
| - OwnPtr<blink::WebThread> thread1 = adoptPtr(blink::Platform::current()->createThread("thread1"));
|
| - OwnPtr<blink::WebThread> thread2 = adoptPtr(blink::Platform::current()->createThread("thread2"));
|
| + OwnPtr<WebThread> thread1 = adoptPtr(Platform::current()->createThread("thread1"));
|
| + OwnPtr<WebThread> thread2 = adoptPtr(Platform::current()->createThread("thread2"));
|
|
|
| thread1->postTask(new Task(WTF::bind(&threadMain, static_cast<char*>(sharedBuffer))));
|
| thread2->postTask(new Task(WTF::bind(&threadMain, static_cast<char*>(sharedBuffer))));
|
|
|