OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #include "SkPathOps.h" | 7 #include "SkPathOps.h" |
8 #include "SkPath.h" | 8 #include "SkPath.h" |
9 #include "SkPoint.h" | 9 #include "SkPoint.h" |
10 #include "Test.h" | 10 #include "Test.h" |
11 #include "TestClassDef.h" | |
12 | 11 |
13 static const SkPoint nonFinitePts[] = { | 12 static const SkPoint nonFinitePts[] = { |
14 { SK_ScalarInfinity, 0 }, | 13 { SK_ScalarInfinity, 0 }, |
15 { 0, SK_ScalarInfinity }, | 14 { 0, SK_ScalarInfinity }, |
16 { SK_ScalarInfinity, SK_ScalarInfinity }, | 15 { SK_ScalarInfinity, SK_ScalarInfinity }, |
17 { SK_ScalarNegativeInfinity, 0}, | 16 { SK_ScalarNegativeInfinity, 0}, |
18 { 0, SK_ScalarNegativeInfinity }, | 17 { 0, SK_ScalarNegativeInfinity }, |
19 { SK_ScalarNegativeInfinity, SK_ScalarNegativeInfinity }, | 18 { SK_ScalarNegativeInfinity, SK_ScalarNegativeInfinity }, |
20 { SK_ScalarNegativeInfinity, SK_ScalarInfinity }, | 19 { SK_ScalarNegativeInfinity, SK_ScalarInfinity }, |
21 { SK_ScalarInfinity, SK_ScalarNegativeInfinity }, | 20 { SK_ScalarInfinity, SK_ScalarNegativeInfinity }, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 102 |
104 DEF_TEST(PathOpsSimplifyFailOne, reporter) { | 103 DEF_TEST(PathOpsSimplifyFailOne, reporter) { |
105 int index = 0; | 104 int index = 0; |
106 failOne(reporter, index); | 105 failOne(reporter, index); |
107 } | 106 } |
108 | 107 |
109 DEF_TEST(PathOpsSimplifyDontFailOne, reporter) { | 108 DEF_TEST(PathOpsSimplifyDontFailOne, reporter) { |
110 int index = 6; | 109 int index = 6; |
111 dontFailOne(reporter, index); | 110 dontFailOne(reporter, index); |
112 } | 111 } |
OLD | NEW |