Index: tests/ShaderOpacityTest.cpp |
diff --git a/tests/ShaderOpacityTest.cpp b/tests/ShaderOpacityTest.cpp |
index c3dc888ba35098632b2fd7ab3669ea08fe62142f..d514516808cafdf26022e93b2aaf53a88f630dc6 100644 |
--- a/tests/ShaderOpacityTest.cpp |
+++ b/tests/ShaderOpacityTest.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 "SkShader.h" |
#include "SkGradientShader.h" |
#include "SkColorShader.h" |
@@ -108,12 +109,8 @@ static void test_color(skiatest::Reporter* reporter) |
REPORTER_ASSERT(reporter, colorShader4.isOpaque()); |
} |
-static void test_shader_opacity(skiatest::Reporter* reporter) |
-{ |
+DEF_TEST(ShaderOpacity, reporter) { |
test_gradient(reporter); |
test_color(reporter); |
test_bitmap(reporter); |
} |
- |
-#include "TestClassDef.h" |
-DEFINE_TESTCLASS("ShaderOpacity", ShaderOpacityTestClass, test_shader_opacity) |