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

Unified Diff: Source/platform/graphics/gpu/DrawingBufferTest.cpp

Issue 203513002: Move WebGraphicsContext3D related tests from web/tests/ to platform/graphics/gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
Index: Source/platform/graphics/gpu/DrawingBufferTest.cpp
diff --git a/Source/web/tests/DrawingBufferTest.cpp b/Source/platform/graphics/gpu/DrawingBufferTest.cpp
similarity index 99%
rename from Source/web/tests/DrawingBufferTest.cpp
rename to Source/platform/graphics/gpu/DrawingBufferTest.cpp
index 0d0ac8f9a207533abcd9e65ec087f9b26f8f9476..2a9fb38d59431abc8b1d6844eb98f7a2c06c23d0 100644
--- a/Source/web/tests/DrawingBufferTest.cpp
+++ b/Source/platform/graphics/gpu/DrawingBufferTest.cpp
@@ -34,9 +34,9 @@
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/UnacceleratedImageBufferSurface.h"
+#include "platform/graphics/test/MockWebGraphicsContext3D.h"
#include "public/platform/Platform.h"
#include "public/platform/WebExternalTextureMailbox.h"
-#include "web/tests/MockWebGraphicsContext3D.h"
#include "wtf/RefPtr.h"
#include <gmock/gmock.h>
@@ -105,8 +105,6 @@ static const int initialWidth = 100;
static const int initialHeight = 100;
static const int alternateHeight = 50;
-} // namespace
-
class DrawingBufferTest : public Test {
protected:
virtual void SetUp()
@@ -125,8 +123,6 @@ protected:
RefPtr<DrawingBuffer> m_drawingBuffer;
};
-namespace {
-
TEST_F(DrawingBufferTest, testPaintRenderingResultsToCanvas)
{
OwnPtr<ImageBufferSurface> imageBufferSurface = adoptPtr(new UnacceleratedImageBufferSurface(IntSize(initialWidth, initialHeight)));
« no previous file with comments | « Source/platform/graphics/Canvas2DLayerManagerTest.cpp ('k') | Source/platform/graphics/test/MockWebGraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698