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 "SkPath.h" |
7 #include "SkPathOps.h" | 8 #include "SkPathOps.h" |
8 #include "SkPath.h" | |
9 #include "SkPoint.h" | 9 #include "SkPoint.h" |
10 #include "Test.h" | 10 #include "Test.h" |
11 | 11 |
12 static const SkPoint nonFinitePts[] = { | 12 static const SkPoint nonFinitePts[] = { |
13 { SK_ScalarInfinity, 0 }, | 13 { SK_ScalarInfinity, 0 }, |
14 { 0, SK_ScalarInfinity }, | 14 { 0, SK_ScalarInfinity }, |
15 { SK_ScalarInfinity, SK_ScalarInfinity }, | 15 { SK_ScalarInfinity, SK_ScalarInfinity }, |
16 { SK_ScalarNegativeInfinity, 0}, | 16 { SK_ScalarNegativeInfinity, 0}, |
17 { 0, SK_ScalarNegativeInfinity }, | 17 { 0, SK_ScalarNegativeInfinity }, |
18 { SK_ScalarNegativeInfinity, SK_ScalarNegativeInfinity }, | 18 { SK_ScalarNegativeInfinity, SK_ScalarNegativeInfinity }, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 DEF_TEST(PathOpsSimplifyFailOne, reporter) { | 103 DEF_TEST(PathOpsSimplifyFailOne, reporter) { |
104 int index = 0; | 104 int index = 0; |
105 failOne(reporter, index); | 105 failOne(reporter, index); |
106 } | 106 } |
107 | 107 |
108 DEF_TEST(PathOpsSimplifyDontFailOne, reporter) { | 108 DEF_TEST(PathOpsSimplifyDontFailOne, reporter) { |
109 int index = 6; | 109 int index = 6; |
110 dontFailOne(reporter, index); | 110 dontFailOne(reporter, index); |
111 } | 111 } |
OLD | NEW |