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/PathOpsBoundsTest.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/PathOpsBoundsTest.cpp')
-rw-r--r-- | tests/PathOpsBoundsTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/PathOpsBoundsTest.cpp b/tests/PathOpsBoundsTest.cpp index 0ed19540ed..9d686a5de4 100644 --- a/tests/PathOpsBoundsTest.cpp +++ b/tests/PathOpsBoundsTest.cpp @@ -18,14 +18,14 @@ static const SkRect sectTests[][2] = { {{2, 0, 4, 1}, {4, 1, 5, 2}}, // touching just on a corner is OK }; -static const size_t sectTestsCount = sizeof(sectTests) / sizeof(sectTests[0]); +static const size_t sectTestsCount = SK_ARRAY_COUNT(sectTests); static const SkRect noSectTests[][2] = { {{2, 0, 4, 1}, {5, 0, 6, 1}}, {{2, 0, 4, 1}, {3, 2, 5, 2}}, }; -static const size_t noSectTestsCount = sizeof(noSectTests) / sizeof(noSectTests[0]); +static const size_t noSectTestsCount = SK_ARRAY_COUNT(noSectTests); static const SkRect reallyEmpty[] = { {0, 0, 0, 0}, @@ -35,7 +35,7 @@ static const SkRect reallyEmpty[] = { {1, 2, 3, SK_ScalarNaN}, }; -static const size_t emptyTestsCount = sizeof(reallyEmpty) / sizeof(reallyEmpty[0]); +static const size_t emptyTestsCount = SK_ARRAY_COUNT(reallyEmpty); static const SkRect notReallyEmpty[] = { {0, 0, 1, 0}, @@ -43,9 +43,9 @@ static const SkRect notReallyEmpty[] = { {0, 0, 1, 1}, }; -static const size_t notEmptyTestsCount = sizeof(notReallyEmpty) / sizeof(notReallyEmpty[0]); +static const size_t notEmptyTestsCount = SK_ARRAY_COUNT(notReallyEmpty); -static void OpBoundsTest(skiatest::Reporter* reporter) { +static void PathOpsBoundsTest(skiatest::Reporter* reporter) { for (size_t index = 0; index < sectTestsCount; ++index) { const SkPathOpsBounds& bounds1 = static_cast<const SkPathOpsBounds&>(sectTests[index][0]); const SkPathOpsBounds& bounds2 = static_cast<const SkPathOpsBounds&>(sectTests[index][1]); @@ -103,4 +103,4 @@ static void OpBoundsTest(skiatest::Reporter* reporter) { } #include "TestClassDef.h" -DEFINE_TESTCLASS("PathOpsBounds", PathOpsBoundsClass, OpBoundsTest) +DEFINE_TESTCLASS_SHORT(PathOpsBoundsTest) |