diff options
author | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-19 20:56:46 +0000 |
---|---|---|
committer | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-19 20:56:46 +0000 |
commit | 014f2c41838f5dd648503a740415e0e80c8406f8 (patch) | |
tree | 509989baa1944838ba86c658dad644b5e56e5182 /tests/AAClipTest.cpp | |
parent | 41c2538970b72d490382387bbc632ca9fd07f797 (diff) |
Add an even more convenient way to declare tests, with example.
BUG=
R=reed@google.com
Review URL: https://codereview.chromium.org/23828008
git-svn-id: http://skia.googlecode.com/svn/trunk@11405 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/AAClipTest.cpp')
-rw-r--r-- | tests/AAClipTest.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/AAClipTest.cpp b/tests/AAClipTest.cpp index e3be006e57..f70cfd679f 100644 --- a/tests/AAClipTest.cpp +++ b/tests/AAClipTest.cpp @@ -394,7 +394,8 @@ static void test_regressions() { } } -static void TestAAClip(skiatest::Reporter* reporter) { +#include "TestClassDef.h" +DEF_TEST(AAClip, reporter) { test_empty(reporter); test_path_bounds(reporter); test_irect(reporter); @@ -403,6 +404,3 @@ static void TestAAClip(skiatest::Reporter* reporter) { test_regressions(); test_nearly_integral(reporter); } - -#include "TestClassDef.h" -DEFINE_TESTCLASS("AAClip", AAClipTestClass, TestAAClip) |