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

Side by Side Diff: tests/PathOpsInverseTest.cpp

Issue 117863005: Get rid of DEFINE_TESTCLASS_SHORT() macro. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Mike review Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « tests/PathOpsDVectorTest.cpp ('k') | tests/PathOpsLineIntersectionTest.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 2013 Google Inc. 2 * Copyright 2013 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 #include "TestClassDef.h"
8 9
9 static void PathOpsInverseTest(skiatest::Reporter* reporter) { 10 DEF_TEST(PathOpsInverse, reporter) {
10 SkPath one, two; 11 SkPath one, two;
11 for (int op = kDifference_PathOp; op <= kReverseDifference_PathOp; ++op) { 12 for (int op = kDifference_PathOp; op <= kReverseDifference_PathOp; ++op) {
12 for (int oneFill = SkPath::kWinding_FillType; oneFill <= SkPath::kInvers eEvenOdd_FillType; 13 for (int oneFill = SkPath::kWinding_FillType; oneFill <= SkPath::kInvers eEvenOdd_FillType;
13 ++oneFill) { 14 ++oneFill) {
14 for (int oneDir = SkPath::kCW_Direction; oneDir != SkPath::kCCW_Dire ction; ++oneDir) { 15 for (int oneDir = SkPath::kCW_Direction; oneDir != SkPath::kCCW_Dire ction; ++oneDir) {
15 one.reset(); 16 one.reset();
16 one.setFillType((SkPath::FillType) oneFill); 17 one.setFillType((SkPath::FillType) oneFill);
17 one.addRect(0, 0, 6, 6, (SkPath::Direction) oneDir); 18 one.addRect(0, 0, 6, 6, (SkPath::Direction) oneDir);
18 for (int twoFill = SkPath::kWinding_FillType; 19 for (int twoFill = SkPath::kWinding_FillType;
19 twoFill <= SkPath::kInverseEvenOdd_FillType; ++twoFill) { 20 twoFill <= SkPath::kInverseEvenOdd_FillType; ++twoFill) {
20 for (int twoDir = SkPath::kCW_Direction; twoDir != SkPath::k CCW_Direction; 21 for (int twoDir = SkPath::kCW_Direction; twoDir != SkPath::k CCW_Direction;
21 ++twoDir) { 22 ++twoDir) {
22 two.reset(); 23 two.reset();
23 two.setFillType((SkPath::FillType) twoFill); 24 two.setFillType((SkPath::FillType) twoFill);
24 two.addRect(3, 3, 9, 9, (SkPath::Direction) twoDir); 25 two.addRect(3, 3, 9, 9, (SkPath::Direction) twoDir);
25 testPathOp(reporter, one, two, (SkPathOp) op); 26 testPathOp(reporter, one, two, (SkPathOp) op);
26 } 27 }
27 } 28 }
28 } 29 }
29 } 30 }
30 } 31 }
31 } 32 }
32
33 #include "TestClassDef.h"
34 DEFINE_TESTCLASS_SHORT(PathOpsInverseTest)
OLDNEW
« no previous file with comments | « tests/PathOpsDVectorTest.cpp ('k') | tests/PathOpsLineIntersectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698