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 #include "TestClassDef.h" |
| 10 |
9 #define TEST(name) { name, #name } | 11 #define TEST(name) { name, #name } |
10 | 12 |
11 static void skpcheeseandburger_com225(skiatest::Reporter* reporter) { | 13 static void skpcheeseandburger_com225(skiatest::Reporter* reporter) { |
12 SkPath path; | 14 SkPath path; |
13 path.setFillType(SkPath::kEvenOdd_FillType); | 15 path.setFillType(SkPath::kEvenOdd_FillType); |
14 path.moveTo(555, 468); | 16 path.moveTo(555, 468); |
15 path.lineTo(555, 362); | 17 path.lineTo(555, 362); |
16 path.lineTo(872, 362); | 18 path.lineTo(872, 362); |
17 path.lineTo(872, 468); | 19 path.lineTo(872, 468); |
18 path.lineTo(555, 468); | 20 path.lineTo(555, 468); |
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1650 TEST(skpflite_com41), | 1652 TEST(skpflite_com41), |
1651 TEST(skpcheeseandburger_com225), | 1653 TEST(skpcheeseandburger_com225), |
1652 TEST(skpeverytechpro_blogspot_com100), | 1654 TEST(skpeverytechpro_blogspot_com100), |
1653 }; | 1655 }; |
1654 | 1656 |
1655 static const size_t testCount = SK_ARRAY_COUNT(tests); | 1657 static const size_t testCount = SK_ARRAY_COUNT(tests); |
1656 | 1658 |
1657 static bool runReverse = false; | 1659 static bool runReverse = false; |
1658 static void (*stopTest)(skiatest::Reporter* ) = 0; | 1660 static void (*stopTest)(skiatest::Reporter* ) = 0; |
1659 | 1661 |
1660 static void PathOpsSkpTest(skiatest::Reporter* reporter) { | 1662 DEF_TEST(PathOpsSkp, reporter) { |
1661 #if DEBUG_SHOW_TEST_NAME | 1663 #if DEBUG_SHOW_TEST_NAME |
1662 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); | 1664 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); |
1663 #endif | 1665 #endif |
1664 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); | 1666 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); |
1665 } | 1667 } |
1666 | |
1667 #include "TestClassDef.h" | |
1668 | |
1669 DEFINE_TESTCLASS_SHORT(PathOpsSkpTest) | |
OLD | NEW |