Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1325)

Unified Diff: Source/web/tests/SpinLockTest.cpp

Issue 545123002: Cleanup namespace usage in Source/web/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/PinchViewportTest.cpp ('k') | Source/web/tests/TextFinderTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))));
« no previous file with comments | « Source/web/tests/PinchViewportTest.cpp ('k') | Source/web/tests/TextFinderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698