reed@android.com | d8730ea | 2009-02-27 22:06:06 +0000 | [diff] [blame] | 1 | #include "Test.h" |
2 | #include "SkGeometry.h" | ||||
3 | |||||
4 | static void TestGeometry(skiatest::Reporter* reporter) { | ||||
5 | SkPoint pts[3], dst[5]; | ||||
6 | |||||
7 | pts[0].set(0, 0); | ||||
8 | pts[1].set(100, 50); | ||||
9 | pts[2].set(0, 100); | ||||
10 | |||||
11 | int count = SkChopQuadAtMaxCurvature(pts, dst); | ||||
12 | REPORTER_ASSERT(reporter, count == 1 || count == 2); | ||||
13 | } | ||||
14 | |||||
15 | #include "TestClassDef.h" | ||||
16 | DEFINE_TESTCLASS("Geometry", GeometryTestClass, TestGeometry) |