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

Side by Side Diff: tests/PathOpsQuadIntersectionTest.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/PathOpsOpTest.cpp ('k') | tests/PathOpsQuadLineIntersectionTest.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 "PathOpsQuadIntersectionTestData.h" 7 #include "PathOpsQuadIntersectionTestData.h"
8 #include "PathOpsTestCommon.h" 8 #include "PathOpsTestCommon.h"
9 #include "SkIntersections.h" 9 #include "SkIntersections.h"
10 #include "SkPathOpsRect.h" 10 #include "SkPathOpsRect.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 void standardTestCases(skiatest::Reporter* reporter) { 14 static void standardTestCases(skiatest::Reporter* reporter) {
16 bool showSkipped = false; 15 bool showSkipped = false;
17 for (size_t index = 0; index < quadraticTests_count; ++index) { 16 for (size_t index = 0; index < quadraticTests_count; ++index) {
18 const SkDQuad& quad1 = quadraticTests[index][0]; 17 const SkDQuad& quad1 = quadraticTests[index][0];
19 SkASSERT(ValidQuad(quad1)); 18 SkASSERT(ValidQuad(quad1));
20 const SkDQuad& quad2 = quadraticTests[index][1]; 19 const SkDQuad& quad2 = quadraticTests[index][1];
21 SkASSERT(ValidQuad(quad2)); 20 SkASSERT(ValidQuad(quad2));
22 SkReduceOrder reduce1, reduce2; 21 SkReduceOrder reduce1, reduce2;
23 int order1 = reduce1.reduce(quad1); 22 int order1 = reduce1.reduce(quad1);
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 intersectionFinder(0, 1); 499 intersectionFinder(0, 1);
501 } 500 }
502 501
503 DEF_TEST(PathOpsQuadIntersection, reporter) { 502 DEF_TEST(PathOpsQuadIntersection, reporter) {
504 oneOffTests(reporter); 503 oneOffTests(reporter);
505 coincidentTest(reporter); 504 coincidentTest(reporter);
506 standardTestCases(reporter); 505 standardTestCases(reporter);
507 if (false) QuadraticIntersection_IntersectionFinder(); 506 if (false) QuadraticIntersection_IntersectionFinder();
508 if (false) QuadraticIntersection_PointFinder(); 507 if (false) QuadraticIntersection_PointFinder();
509 } 508 }
OLDNEW
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathOpsQuadLineIntersectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698