diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-15 19:13:59 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-15 19:13:59 +0000 |
commit | ad65a3e5fb1f94699f183551b828efbcc6a133ce (patch) | |
tree | 5908b619b257c5bfc45ddb40be1b9099c37d67ee /tests/PathOpsQuadIntersectionTest.cpp | |
parent | 9becf0090f9c1c14f42d161b9a1fb3af142f9420 (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/PathOpsQuadIntersectionTest.cpp')
-rw-r--r-- | tests/PathOpsQuadIntersectionTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/PathOpsQuadIntersectionTest.cpp b/tests/PathOpsQuadIntersectionTest.cpp index 2ee70ec735..85555631df 100644 --- a/tests/PathOpsQuadIntersectionTest.cpp +++ b/tests/PathOpsQuadIntersectionTest.cpp @@ -226,7 +226,7 @@ static const SkDQuad testSet[] = { {{{8, 8}, {9, 9}, {10, 8}}} }; -const size_t testSetCount = sizeof(testSet) / sizeof(testSet[0]); +const size_t testSetCount = SK_ARRAY_COUNT(testSet); static void oneOffTest1(skiatest::Reporter* reporter, size_t outer, size_t inner) { const SkDQuad& quad1 = testSet[outer]; @@ -271,7 +271,7 @@ static const SkDQuad coincidentTestSet[] = { {{{8, -10}, {10, 10}, {8, 8}}}, }; -const size_t coincidentTestSetCount = sizeof(coincidentTestSet) / sizeof(coincidentTestSet[0]); +const size_t coincidentTestSetCount = SK_ARRAY_COUNT(coincidentTestSet); static void coincidentTest(skiatest::Reporter* reporter) { for (size_t testIndex = 0; testIndex < coincidentTestSetCount - 1; testIndex += 2) { @@ -453,7 +453,7 @@ static void QuadraticIntersection_IntersectionFinder() { intersectionFinder(0, 1); } -static void TestQuadIntersection(skiatest::Reporter* reporter) { +static void PathOpsQuadIntersectionTest(skiatest::Reporter* reporter) { oneOffTests(reporter); coincidentTest(reporter); standardTestCases(reporter); @@ -464,4 +464,4 @@ static void TestQuadIntersection(skiatest::Reporter* reporter) { #include "TestClassDef.h" -DEFINE_TESTCLASS("PathOpsQuadIntersection", QuadIntersectionTestClass, TestQuadIntersection) +DEFINE_TESTCLASS_SHORT(PathOpsQuadIntersectionTest) |