Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tests/PathOpsSimplifyTest.cpp

Issue 400033002: update pathops core and tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix uninitialized variable Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathOpsSkpClipTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4651 matching lines...) Expand 10 before | Expand all | Expand 10 after
4662 path.lineTo(2, 2); 4662 path.lineTo(2, 2);
4663 path.close(); 4663 path.close();
4664 path.moveTo(1, 0); 4664 path.moveTo(1, 0);
4665 path.lineTo(1, 1); 4665 path.lineTo(1, 1);
4666 path.lineTo(2, 2); 4666 path.lineTo(2, 2);
4667 path.lineTo(1, 3); 4667 path.lineTo(1, 3);
4668 path.close(); 4668 path.close();
4669 testSimplify(reporter, path, filename); 4669 testSimplify(reporter, path, filename);
4670 } 4670 }
4671 4671
4672 static void testRect3(skiatest::Reporter* reporter, const char* filename) {
4673 SkPath path;
4674 path.setFillType(SkPath::kEvenOdd_FillType);
4675 path.addRect(0, 0, 60, 60, SkPath::kCCW_Direction);
4676 path.addRect(10, 30, 40, 30, SkPath::kCCW_Direction);
4677 path.addRect(24, 6, 36, 36, SkPath::kCCW_Direction);
4678 path.addRect(32, 6, 36, 41, SkPath::kCCW_Direction);
4679 testSimplify(reporter, path, filename);
4680 }
4681
4672 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; 4682 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0;
4673 4683
4674 static TestDesc tests[] = { 4684 static TestDesc tests[] = {
4685 TEST(testRect3),
4675 TEST(testQuadralateral10), 4686 TEST(testQuadralateral10),
4676 TEST(testQuads61), 4687 TEST(testQuads61),
4677 TEST(testQuads60), 4688 TEST(testQuads60),
4678 TEST(testQuads59), 4689 TEST(testQuads59),
4679 TEST(testQuads58), 4690 TEST(testQuads58),
4680 TEST(testQuads57), 4691 TEST(testQuads57),
4681 TEST(testQuads56), 4692 TEST(testQuads56),
4682 TEST(testQuads54), 4693 TEST(testQuads54),
4683 TEST(testQuads53), 4694 TEST(testQuads53),
4684 TEST(testQuads52), 4695 TEST(testQuads52),
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
5104 5115
5105 DEF_TEST(PathOpsSimplify, reporter) { 5116 DEF_TEST(PathOpsSimplify, reporter) {
5106 if (runSubTests && runSubTestsFirst) { 5117 if (runSubTests && runSubTestsFirst) {
5107 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse); 5118 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse);
5108 } 5119 }
5109 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); 5120 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse);
5110 if (runSubTests && !runSubTestsFirst) { 5121 if (runSubTests && !runSubTestsFirst) {
5111 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse); 5122 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse);
5112 } 5123 }
5113 } 5124 }
OLDNEW
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathOpsSkpClipTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698