aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GpuDrawPathTest.cpp
diff options
context:
space:
mode:
authorGravatar tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-10 22:08:27 +0000
committerGravatar tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-10 22:08:27 +0000
commit4ee16bfaedb14aff8cf102f1f0722ff2529a9699 (patch)
tree292ed655c6d81fb7e6061467d23e27bd27986a34 /tests/GpuDrawPathTest.cpp
parentf3abaeb0c5947e63856209166761d4ea766ff24b (diff)
Add a DEF_GPUTEST() macro.
This macro is similar to DEF_TEST() and simplifies the process of setting up a GPU test. BUG=skia:1952 TEST=tests R=mtklein@google.com Review URL: https://codereview.chromium.org/132293005 git-svn-id: http://skia.googlecode.com/svn/trunk@13033 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/GpuDrawPathTest.cpp')
-rw-r--r--tests/GpuDrawPathTest.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/GpuDrawPathTest.cpp b/tests/GpuDrawPathTest.cpp
index fa844d05b8..f2a321f756 100644
--- a/tests/GpuDrawPathTest.cpp
+++ b/tests/GpuDrawPathTest.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2013 Google Inc.
*
@@ -18,9 +17,9 @@
#include "SkRect.h"
#include "SkRRect.h"
#include "Test.h"
+#include "TestClassDef.h"
-static void test_drawPathEmpty(skiatest::Reporter*, SkCanvas* canvas)
-{
+static void test_drawPathEmpty(skiatest::Reporter*, SkCanvas* canvas) {
// Filling an empty path should not crash.
SkPaint paint;
canvas->drawRect(SkRect(), paint);
@@ -43,7 +42,7 @@ static void test_drawPathEmpty(skiatest::Reporter*, SkCanvas* canvas)
}
-static void TestGpuDrawPath(skiatest::Reporter* reporter, GrContextFactory* factory) {
+DEF_GPUTEST(GpuDrawPath, reporter, factory) {
return;
for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
@@ -74,7 +73,4 @@ static void TestGpuDrawPath(skiatest::Reporter* reporter, GrContextFactory* fact
}
}
-#include "TestClassDef.h"
-DEFINE_GPUTESTCLASS("GpuDrawPath", TestGpuDrawPathClass, TestGpuDrawPath)
-
#endif