aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsDRectTest.cpp
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-15 19:13:59 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-15 19:13:59 +0000
commitad65a3e5fb1f94699f183551b828efbcc6a133ce (patch)
tree5908b619b257c5bfc45ddb40be1b9099c37d67ee /tests/PathOpsDRectTest.cpp
parent9becf0090f9c1c14f42d161b9a1fb3af142f9420 (diff)
path ops work in progress
standardize tests use SK_ARRAY_COUNT everywhere debug why x87 differs from SIMD 64 various platform specific fixes git-svn-id: http://skia.googlecode.com/svn/trunk@8689 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PathOpsDRectTest.cpp')
-rw-r--r--tests/PathOpsDRectTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/PathOpsDRectTest.cpp b/tests/PathOpsDRectTest.cpp
index 881ee0b86b..a053ac7f5c 100644
--- a/tests/PathOpsDRectTest.cpp
+++ b/tests/PathOpsDRectTest.cpp
@@ -33,11 +33,11 @@ static const SkDCubic cubicTests[] = {
{{{3, 0}, {2, 1}, {3, 2}, {1, 1}}},
};
-static const size_t lineTests_count = sizeof(lineTests) / sizeof(lineTests[0]);
-static const size_t quadTests_count = sizeof(quadTests) / sizeof(quadTests[0]);
-static const size_t cubicTests_count = sizeof(cubicTests) / sizeof(cubicTests[0]);
+static const size_t lineTests_count = SK_ARRAY_COUNT(lineTests);
+static const size_t quadTests_count = SK_ARRAY_COUNT(quadTests);
+static const size_t cubicTests_count = SK_ARRAY_COUNT(cubicTests);
-static void DRectTest(skiatest::Reporter* reporter) {
+static void PathOpsDRectTest(skiatest::Reporter* reporter) {
size_t index;
SkDRect rect, rect2;
for (index = 0; index < lineTests_count; ++index) {
@@ -97,4 +97,4 @@ static void DRectTest(skiatest::Reporter* reporter) {
}
#include "TestClassDef.h"
-DEFINE_TESTCLASS("PathOpsDRect", PathOpsDRectClass, DRectTest)
+DEFINE_TESTCLASS_SHORT(PathOpsDRectTest)