Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / tests / SpinLockTest.cpp
index 3bf7c88..69f636f 100644 (file)
 #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))));