blob: 100e32c9db5dfb990825316ac17e7a318570b05f [file] [log] [blame]
caryclark@google.com27accef2012-01-25 18:57:23 +00001#include "CubicIntersection_TestData.h"
2#include "Intersection_Tests.h"
caryclark@google.com24bec792012-08-20 12:43:57 +00003#include "SkTypes.h"
caryclark@google.com27accef2012-01-25 18:57:23 +00004
5void cubecode_test(int test);
6
caryclark@google.comfa0588f2012-04-26 21:01:06 +00007#define TEST_QUADS_FIRST 0
caryclark@google.com78e17132012-04-17 11:40:34 +00008
caryclark@google.com27accef2012-01-25 18:57:23 +00009void Intersection_Tests() {
caryclark@google.com24bec792012-08-20 12:43:57 +000010 int testsRun = 0;
caryclark@google.comc899ad92012-08-23 15:24:42 +000011// SimplifyAngle_Test();
caryclark@google.com1577e8f2012-05-22 17:01:14 +000012 SimplifyNew_Test();
caryclark@google.com24bec792012-08-20 12:43:57 +000013 Simplify4x4QuadraticsThreaded_Test(testsRun);
caryclark@google.com03f97062012-08-21 13:13:52 +000014 QuadLineIntersectThreaded_Test(testsRun);
15 LineQuadraticIntersection_Test();
caryclark@google.com24bec792012-08-20 12:43:57 +000016 Simplify4x4RectsThreaded_Test(testsRun);
17 SimplifyNondegenerate4x4TrianglesThreaded_Test(testsRun);
18 SimplifyDegenerate4x4TrianglesThreaded_Test(testsRun);
19 Simplify4x4QuadralateralsThreaded_Test(testsRun);
20 SkDebugf("%s total testsRun=%d\n", __FUNCTION__, testsRun);
caryclark@google.com1577e8f2012-05-22 17:01:14 +000021 SimplifyFindNext_Test();
caryclark@google.comb45a1b42012-05-18 20:50:33 +000022 SimplifyFindTop_Test();
caryclark@google.comb45a1b42012-05-18 20:50:33 +000023 QuadraticReduceOrder_Test();
24 QuadraticBezierClip_Test();
25 QuadraticIntersection_Test();
caryclark@google.comfa0588f2012-04-26 21:01:06 +000026 SimplifyAddIntersectingTs_Test();
rmistry@google.comd6176b02012-08-23 18:14:13 +000027
caryclark@google.com27accef2012-01-25 18:57:23 +000028 cubecode_test(1);
29 convert_testx();
30 // tests are in dependency / complexity order
31 Inline_Tests();
32 ConvexHull_Test();
33 ConvexHull_X_Test();
34
35 LineParameter_Test();
36 LineIntersection_Test();
caryclark@google.com27accef2012-01-25 18:57:23 +000037 LineCubicIntersection_Test();
38
caryclark@google.coma5764232012-03-28 16:20:21 +000039 SimplifyQuadraticPaths_Test();
40
caryclark@google.com4917f172012-03-05 22:01:21 +000041 SimplifyPolygonPaths_Test();
caryclark@google.com2e7f4c82012-03-20 21:11:59 +000042 SimplifyRectangularPaths_Test();
caryclark@google.com4917f172012-03-05 22:01:21 +000043 SimplifyQuadralateralPaths_Test();
caryclark@google.com78e17132012-04-17 11:40:34 +000044
caryclark@google.com78e17132012-04-17 11:40:34 +000045 ActiveEdge_Test();
caryclark@google.comd88e0892012-03-27 13:23:51 +000046
caryclark@google.com27accef2012-01-25 18:57:23 +000047 QuadraticCoincidence_Test();
caryclark@google.com27accef2012-01-25 18:57:23 +000048 QuadraticIntersection_Test();
49
50 CubicParameterization_Test();
51 CubicCoincidence_Test();
52 CubicReduceOrder_Test();
53 CubicBezierClip_Test();
54 CubicIntersection_Test();
caryclark@google.comc6825902012-02-03 22:07:47 +000055
caryclark@google.com27accef2012-01-25 18:57:23 +000056}