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