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/PathOpsCubicQuadIntersectionTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload 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/PathOpsCubicLineIntersectionTest.cpp ('k') | tests/PathOpsCubicReduceOrderTest.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 "PathOpsTestCommon.h" 7 #include "PathOpsTestCommon.h"
8 #include "SkIntersections.h" 8 #include "SkIntersections.h"
9 #include "SkPathOpsCubic.h" 9 #include "SkPathOpsCubic.h"
10 #include "SkPathOpsQuad.h" 10 #include "SkPathOpsQuad.h"
11 #include "SkReduceOrder.h" 11 #include "SkReduceOrder.h"
12 #include "Test.h" 12 #include "Test.h"
13 #include "TestClassDef.h"
14 13
15 static struct lineCubic { 14 static struct lineCubic {
16 SkDCubic cubic; 15 SkDCubic cubic;
17 SkDQuad quad; 16 SkDQuad quad;
18 int answerCount; 17 int answerCount;
19 SkDPoint answers[2]; 18 SkDPoint answers[2];
20 } quadCubicTests[] = { 19 } quadCubicTests[] = {
21 {{{{778, 14089}, {778, 14091.208984375}, {776.20916748046875, 14093}, {774, 14093}}}, 20 {{{{778, 14089}, {778, 14091.208984375}, {776.20916748046875, 14093}, {774, 14093}}},
22 {{{778, 14089}, {777.99957275390625, 14090.65625}, {776.82843017578125, 140 91.828125}}}, 2, 21 {{{778, 14089}, {777.99957275390625, 14090.65625}, {776.82843017578125, 140 91.828125}}}, 2,
23 {{778, 14089}, {776.82855609581270,14091.828250841330}}}, 22 {{778, 14089}, {776.82855609581270,14091.828250841330}}},
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 88 }
90 if (!found) { 89 if (!found) {
91 SkDebugf("%s [%d,%d] xy1=(%g,%g) != \n", 90 SkDebugf("%s [%d,%d] xy1=(%g,%g) != \n",
92 __FUNCTION__, iIndex, pt, xy1.fX, xy1.fY); 91 __FUNCTION__, iIndex, pt, xy1.fX, xy1.fY);
93 } 92 }
94 REPORTER_ASSERT(reporter, found); 93 REPORTER_ASSERT(reporter, found);
95 } 94 }
96 reporter->bumpTestCount(); 95 reporter->bumpTestCount();
97 } 96 }
98 } 97 }
OLDNEW
« no previous file with comments | « tests/PathOpsCubicLineIntersectionTest.cpp ('k') | tests/PathOpsCubicReduceOrderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698