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

Unified Diff: Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp

Issue 476683002: Cleanup namespace usage in platform/graphics/[G-S]* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/platform/graphics/ProfilingCanvas.cpp ('k') | Source/platform/graphics/RegionTracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
diff --git a/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp b/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
index baf3b737b4ec334657ee7a98c7a304c618c8db68..a2aedc92c3718724477385f535549895da18538f 100644
--- a/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
+++ b/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
@@ -41,7 +41,7 @@ public:
virtual void didFinalizeFrame()
{
if (m_isDirty) {
- blink::Platform::current()->currentThread()->removeTaskObserver(this);
+ Platform::current()->currentThread()->removeTaskObserver(this);
m_isDirty = false;
}
++m_frameCount;
@@ -61,7 +61,7 @@ public:
if (m_isDirty)
return;
m_isDirty = true;
- blink::Platform::current()->currentThread()->addTaskObserver(this);
+ Platform::current()->currentThread()->addTaskObserver(this);
}
int frameCount() { return m_frameCount; }
@@ -213,13 +213,13 @@ class AutoInstallCurrentThreadPlatformMock {
public:
AutoInstallCurrentThreadPlatformMock()
{
- m_oldPlatform = blink::Platform::current();
- blink::Platform::initialize(&m_mockPlatform);
+ m_oldPlatform = Platform::current();
+ Platform::initialize(&m_mockPlatform);
}
~AutoInstallCurrentThreadPlatformMock()
{
- blink::Platform::initialize(m_oldPlatform);
+ Platform::initialize(m_oldPlatform);
}
private:
@@ -274,7 +274,7 @@ private:
Task* m_task;
};
- class CurrentThreadPlatformMock : public blink::Platform {
+ class CurrentThreadPlatformMock : public Platform {
public:
CurrentThreadPlatformMock() { }
virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t length) { ASSERT_NOT_REACHED(); }
@@ -284,12 +284,12 @@ private:
};
CurrentThreadPlatformMock m_mockPlatform;
- blink::Platform* m_oldPlatform;
+ Platform* m_oldPlatform;
};
#define DEFINE_TEST_TASK_WRAPPER_CLASS(TEST_METHOD) \
-class TestWrapperTask_ ## TEST_METHOD : public blink::WebThread::Task { \
+class TestWrapperTask_ ## TEST_METHOD : public WebThread::Task { \
public: \
TestWrapperTask_ ## TEST_METHOD(RecordingImageBufferSurfaceTest* test) : m_test(test) { } \
virtual void run() OVERRIDE { m_test->TEST_METHOD(); } \
@@ -300,8 +300,8 @@ class TestWrapperTask_ ## TEST_METHOD : public blink::WebThread::Task {
#define CALL_TEST_TASK_WRAPPER(TEST_METHOD) \
{ \
AutoInstallCurrentThreadPlatformMock ctpm; \
- blink::Platform::current()->currentThread()->postTask(new TestWrapperTask_ ## TEST_METHOD(this)); \
- blink::Platform::current()->currentThread()->enterRunLoop(); \
+ Platform::current()->currentThread()->postTask(new TestWrapperTask_ ## TEST_METHOD(this)); \
+ Platform::current()->currentThread()->enterRunLoop(); \
}
TEST_F(RecordingImageBufferSurfaceTest, testEmptyPicture)
« no previous file with comments | « Source/platform/graphics/ProfilingCanvas.cpp ('k') | Source/platform/graphics/RegionTracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698