Intersection_Tests.cpp revision 235f56a92f6eb6accbb243e11b3c45e3798f38f2
1/* 2 * Copyright 2012 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7#include "CubicIntersection_TestData.h" 8#include "Intersection_Tests.h" 9#include "SkTypes.h" 10 11void cubecode_test(int test); 12 13#define TEST_QUADS_FIRST 0 14 15void Intersection_Tests() { 16 int testsRun = 0; 17 QuarticRoot_Test(); 18 // QuadraticIntersection_Test(); 19 SimplifyNew_Test(); 20 Simplify4x4QuadraticsThreaded_Test(testsRun); 21 QuadLineIntersectThreaded_Test(testsRun); 22 LineQuadraticIntersection_Test(); 23 Simplify4x4RectsThreaded_Test(testsRun); 24 SimplifyNondegenerate4x4TrianglesThreaded_Test(testsRun); 25 SimplifyDegenerate4x4TrianglesThreaded_Test(testsRun); 26 Simplify4x4QuadralateralsThreaded_Test(testsRun); 27 SkDebugf("%s total testsRun=%d\n", __FUNCTION__, testsRun); 28 SimplifyAngle_Test(); 29 QuadraticBezierClip_Test(); 30 SimplifyFindNext_Test(); 31 SimplifyFindTop_Test(); 32 QuadraticReduceOrder_Test(); 33 QuadraticIntersection_Test(); 34 SimplifyAddIntersectingTs_Test(); 35 36 cubecode_test(1); 37 convert_testx(); 38 // tests are in dependency / complexity order 39 Inline_Tests(); 40 ConvexHull_Test(); 41 ConvexHull_X_Test(); 42 43 LineParameter_Test(); 44 LineIntersection_Test(); 45 LineCubicIntersection_Test(); 46 47 SimplifyQuadraticPaths_Test(); 48 49 SimplifyPolygonPaths_Test(); 50 SimplifyRectangularPaths_Test(); 51 SimplifyQuadralateralPaths_Test(); 52 53 ActiveEdge_Test(); 54 55 QuadraticCoincidence_Test(); 56 QuadraticIntersection_Test(); 57 58 CubicParameterization_Test(); 59 CubicCoincidence_Test(); 60 CubicReduceOrder_Test(); 61 CubicBezierClip_Test(); 62 CubicIntersection_Test(); 63 64} 65