Intersection_Tests.cpp revision 0b7da433fe0eaa2833d1b2900715b013b36d93da
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    SimplifyNew_Test();
18    QuadraticIntersection_Test();
19    LineQuadraticIntersection_Test();
20    MiniSimplify_Test();
21    SimplifyAngle_Test();
22    QuarticRoot_Test();
23    Simplify4x4QuadraticsThreaded_Test(testsRun);
24    QuadLineIntersectThreaded_Test(testsRun);
25    Simplify4x4RectsThreaded_Test(testsRun);
26    SimplifyNondegenerate4x4TrianglesThreaded_Test(testsRun);
27    SimplifyDegenerate4x4TrianglesThreaded_Test(testsRun);
28    Simplify4x4QuadralateralsThreaded_Test(testsRun);
29    SkDebugf("%s total testsRun=%d\n", __FUNCTION__, testsRun);
30    QuadraticBezierClip_Test();
31    SimplifyFindNext_Test();
32    SimplifyFindTop_Test();
33    QuadraticReduceOrder_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