aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ShaderOpacityTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ShaderOpacityTest.cpp')
-rw-r--r--tests/ShaderOpacityTest.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/ShaderOpacityTest.cpp b/tests/ShaderOpacityTest.cpp
index c3dc888ba3..d514516808 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)