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