Intersection_Tests.cpp revision a461ff0866526bc51dbd4c4f9f066a727ec21510
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 QuadraticIntersection_Test(); 18 MiniSimplify_Test(); 19 SimplifyNew_Test(); 20 SimplifyAngle_Test(); 21 QuarticRoot_Test(); 22 // QuadraticIntersection_Test(); 23 Simplify4x4QuadraticsThreaded_Test(testsRun); 24 QuadLineIntersectThreaded_Test(testsRun); 25 LineQuadraticIntersection_Test(); 26 Simplify4x4RectsThreaded_Test(testsRun); 27 SimplifyNondegenerate4x4TrianglesThreaded_Test(testsRun); 28 SimplifyDegenerate4x4TrianglesThreaded_Test(testsRun); 29 Simplify4x4QuadralateralsThreaded_Test(testsRun); 30 SkDebugf("%s total testsRun=%d\n", __FUNCTION__, testsRun); 31 QuadraticBezierClip_Test(); 32 SimplifyFindNext_Test(); 33 SimplifyFindTop_Test(); 34 QuadraticReduceOrder_Test(); 35 SimplifyAddIntersectingTs_Test(); 36 37 cubecode_test(1); 38 convert_testx(); 39 // tests are in dependency / complexity order 40 Inline_Tests(); 41 ConvexHull_Test(); 42 ConvexHull_X_Test(); 43 44 LineParameter_Test(); 45 LineIntersection_Test(); 46 LineCubicIntersection_Test(); 47 48 SimplifyQuadraticPaths_Test(); 49 50 SimplifyPolygonPaths_Test(); 51 SimplifyRectangularPaths_Test(); 52 SimplifyQuadralateralPaths_Test(); 53 54 ActiveEdge_Test(); 55 56 QuadraticCoincidence_Test(); 57 QuadraticIntersection_Test(); 58 59 CubicParameterization_Test(); 60 CubicCoincidence_Test(); 61 CubicReduceOrder_Test(); 62 CubicBezierClip_Test(); 63 CubicIntersection_Test(); 64 65} 66