From 4ee16bfaedb14aff8cf102f1f0722ff2529a9699 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Fri, 10 Jan 2014 22:08:27 +0000 Subject: 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 --- tests/GpuDrawPathTest.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests/GpuDrawPathTest.cpp') 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 -- cgit v1.2.3