diff options
Diffstat (limited to 'tests/GradientTest.cpp')
-rw-r--r-- | tests/GradientTest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/GradientTest.cpp b/tests/GradientTest.cpp index 24ffb53151..1f77fbb0b0 100644 --- a/tests/GradientTest.cpp +++ b/tests/GradientTest.cpp @@ -1,11 +1,12 @@ - /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ + #include "Test.h" +#include "TestClassDef.h" #include "SkBitmapDevice.h" #include "SkColorShader.h" #include "SkEmptyShader.h" @@ -192,9 +193,7 @@ static void TestGradientShaders(skiatest::Reporter* reporter) { } } -static void TestGradients(skiatest::Reporter* reporter) { +DEF_TEST(Gradient, reporter) { TestGradientShaders(reporter); TestConstantGradient(reporter); } -#include "TestClassDef.h" -DEFINE_TESTCLASS("Gradients", TestGradientsClass, TestGradients) |