| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #include "PathOpsExtendedTest.h" | 7 #include "PathOpsExtendedTest.h" |
| 8 | 8 |
| 9 #define TEST(name) { name, #name } | 9 #define TEST(name) { name, #name } |
| 10 | 10 |
| (...skipping 3754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3765 path.quadTo(0, 1, 1, 1); | 3765 path.quadTo(0, 1, 1, 1); |
| 3766 path.lineTo(1, 3); | 3766 path.lineTo(1, 3); |
| 3767 path.close(); | 3767 path.close(); |
| 3768 path.moveTo(1, 0); | 3768 path.moveTo(1, 0); |
| 3769 path.lineTo(3, 0); | 3769 path.lineTo(3, 0); |
| 3770 path.quadTo(0, 1, 1, 2); | 3770 path.quadTo(0, 1, 1, 2); |
| 3771 path.close(); | 3771 path.close(); |
| 3772 testSimplify(reporter, path); | 3772 testSimplify(reporter, path); |
| 3773 } | 3773 } |
| 3774 | 3774 |
| 3775 static void (*firstTest)(skiatest::Reporter* ) = 0; | 3775 static void (*firstTest)(skiatest::Reporter* ) = testQuadratic85; |
| 3776 | 3776 |
| 3777 static TestDesc tests[] = { | 3777 static TestDesc tests[] = { |
| 3778 TEST(testQuad7), | 3778 TEST(testQuad7), |
| 3779 TEST(testQuad6), | 3779 TEST(testQuad6), |
| 3780 TEST(testQuad5), | 3780 TEST(testQuad5), |
| 3781 TEST(testQuad4), | 3781 TEST(testQuad4), |
| 3782 TEST(testQuad3), | 3782 TEST(testQuad3), |
| 3783 TEST(testQuad2), | 3783 TEST(testQuad2), |
| 3784 TEST(testAddTCoincident2), | 3784 TEST(testAddTCoincident2), |
| 3785 TEST(testAddTCoincident1), | 3785 TEST(testAddTCoincident1), |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4150 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run
Reverse); | 4150 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run
Reverse); |
| 4151 } | 4151 } |
| 4152 #ifdef SK_DEBUG | 4152 #ifdef SK_DEBUG |
| 4153 gDebugMaxWindSum = SK_MaxS32; | 4153 gDebugMaxWindSum = SK_MaxS32; |
| 4154 gDebugMaxWindValue = SK_MaxS32; | 4154 gDebugMaxWindValue = SK_MaxS32; |
| 4155 #endif | 4155 #endif |
| 4156 } | 4156 } |
| 4157 | 4157 |
| 4158 #include "TestClassDef.h" | 4158 #include "TestClassDef.h" |
| 4159 DEFINE_TESTCLASS_SHORT(PathOpsSimplifyTest) | 4159 DEFINE_TESTCLASS_SHORT(PathOpsSimplifyTest) |
| OLD | NEW |