| 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());
|
| }
|
|
|