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

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

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years 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/DragImageTest.cpp ('k') | Source/web/tests/FilterOperationsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/DrawingBufferTest.cpp
diff --git a/Source/core/platform/graphics/gpu/DrawingBufferTest.cpp b/Source/web/tests/DrawingBufferTest.cpp
similarity index 92%
rename from Source/core/platform/graphics/gpu/DrawingBufferTest.cpp
rename to Source/web/tests/DrawingBufferTest.cpp
index f7a0009484fe5541aeab15df880b7faab6e8dbb3..2b72d40ff993e5c954ab0daa6ba6519ee2636e43 100644
--- a/Source/core/platform/graphics/gpu/DrawingBufferTest.cpp
+++ b/Source/web/tests/DrawingBufferTest.cpp
@@ -30,11 +30,11 @@
#include "config.h"
-#include "core/platform/graphics/gpu/DrawingBuffer.h"
+#include "platform/graphics/gpu/DrawingBuffer.h"
-#include "core/platform/graphics/GraphicsContext3D.h"
-#include "core/platform/testing/FakeWebGraphicsContext3D.h"
+#include "platform/graphics/GraphicsContext3D.h"
#include "public/platform/Platform.h"
+#include "web/tests/MockWebGraphicsContext3D.h"
#include "wtf/RefPtr.h"
#include <gmock/gmock.h>
@@ -60,7 +60,7 @@ protected:
virtual void SetUp()
{
RefPtr<FakeContextEvictionManager> contextEvictionManager = adoptRef(new FakeContextEvictionManager());
- RefPtr<GraphicsContext3D> context = GraphicsContext3D::createGraphicsContextFromWebContext(adoptPtr(new FakeWebGraphicsContext3D));
+ RefPtr<GraphicsContext3D> context = GraphicsContext3D::createGraphicsContextFromWebContext(adoptPtr(new MockWebGraphicsContext3D));
const IntSize size(100, 100);
m_drawingBuffer = DrawingBuffer::create(context.get(), size, DrawingBuffer::Discard, contextEvictionManager.release());
}
« no previous file with comments | « Source/web/tests/DragImageTest.cpp ('k') | Source/web/tests/FilterOperationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698