Use DEFINE_TESTCLASS_SHORT macro in tests.
The three version of DEFINE_TESTCLASS macro is deprecated and thus just
use the simple, short one.
BUG=None
TEST=out/Debug/tests
R=mtklein@google.com, bsalomon@google.com, robertphillips@google.com
Review URL: https://codereview.chromium.org/100113004
git-svn-id: http://skia.googlecode.com/svn/trunk@12653 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/PathUtilsTest.cpp b/tests/PathUtilsTest.cpp
index fad5cae..a147487 100644
--- a/tests/PathUtilsTest.cpp
+++ b/tests/PathUtilsTest.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2013 Google Inc.
*
@@ -6,13 +5,13 @@
* found in the LICENSE file.
*/
-#include "SkPathUtils.h"
-
+#include "Test.h"
+#include "TestClassDef.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
+#include "SkPathUtils.h"
#include "SkRandom.h"
#include "SkTime.h"
-#include "Test.h"
const int kNumIt = 100;
@@ -130,7 +129,7 @@
test_path_eq(reporter, &path, truth, w, h);
}
-static void TestPathUtils(skiatest::Reporter* reporter) {
+DEF_TEST(PathUtils, reporter) {
const int w[] = {4, 8, 12, 16};
const int h = 8, rowBytes = 4;
@@ -154,6 +153,3 @@
}
}
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("PathUtils", PathUtils, TestPathUtils)