| 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 "PathOpsExtendedTest.h" | 7 #include "PathOpsExtendedTest.h" |
| 8 #include "SkPath.h" | 8 #include "SkPath.h" |
| 9 #include "SkPathOps.h" | 9 #include "SkPathOps.h" |
| 10 #include "SkPoint.h" | 10 #include "SkPoint.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 path.moveTo(SkBits2Float(0xe9b6b6b6), SkBits2Float(0xe9b6b8e9)); // -2.76109e+2
5f, -2.76122e+25f | 148 path.moveTo(SkBits2Float(0xe9b6b6b6), SkBits2Float(0xe9b6b8e9)); // -2.76109e+2
5f, -2.76122e+25f |
| 149 path.close(); | 149 path.close(); |
| 150 path.moveTo(SkBits2Float(0xe9b6b6b6), SkBits2Float(0xe9b6b8e9)); // -2.76109e+2
5f, -2.76122e+25f | 150 path.moveTo(SkBits2Float(0xe9b6b6b6), SkBits2Float(0xe9b6b8e9)); // -2.76109e+2
5f, -2.76122e+25f |
| 151 path.quadTo(SkBits2Float(0xe93ae9e9), SkBits2Float(0xe964b6e9), SkBits2Float(0x0
000203a), SkBits2Float(0xb6000000)); // -1.41228e+25f, -1.72812e+25f, 1.15607e-
41f, -1.90735e-06f | 151 path.quadTo(SkBits2Float(0xe93ae9e9), SkBits2Float(0xe964b6e9), SkBits2Float(0x0
000203a), SkBits2Float(0xb6000000)); // -1.41228e+25f, -1.72812e+25f, 1.15607e-
41f, -1.90735e-06f |
| 152 path.moveTo(SkBits2Float(0x64b6b6b6), SkBits2Float(0xe9e9e900)); // 2.69638e+22
f, -3.53475e+25f | 152 path.moveTo(SkBits2Float(0x64b6b6b6), SkBits2Float(0xe9e9e900)); // 2.69638e+22
f, -3.53475e+25f |
| 153 path.quadTo(SkBits2Float(0xb6b6b6e9), SkBits2Float(0xb6b6b6b6), SkBits2Float(0xe
9e9b6ce), SkBits2Float(0xe9e93ae9)); // -5.44532e-06f, -5.44529e-06f, -3.53179e
+25f, -3.52447e+25f | 153 path.quadTo(SkBits2Float(0xb6b6b6e9), SkBits2Float(0xb6b6b6b6), SkBits2Float(0xe
9e9b6ce), SkBits2Float(0xe9e93ae9)); // -5.44532e-06f, -5.44529e-06f, -3.53179e
+25f, -3.52447e+25f |
| 154 | 154 |
| 155 testSimplifyFuzz(reporter, path, filename); | 155 testSimplifyFuzz(reporter, path, filename); |
| 156 } | 156 } |
| 157 | 157 |
| 158 | |
| 159 #define TEST(test) test(reporter, #test) | 158 #define TEST(test) test(reporter, #test) |
| 160 | 159 |
| 161 DEF_TEST(PathOpsSimplifyFail, reporter) { | 160 DEF_TEST(PathOpsSimplifyFail, reporter) { |
| 162 TEST(fuzz763_1); | 161 TEST(fuzz763_1); |
| 163 TEST(fuzz_x2); | 162 TEST(fuzz_x2); |
| 164 TEST(fuzz_x1); | 163 TEST(fuzz_x1); |
| 165 TEST(fuzz_59); | 164 TEST(fuzz_59); |
| 166 for (int index = 0; index < (int) (13 * nonFinitePtsCount * finitePtsCount);
++index) { | 165 for (int index = 0; index < (int) (13 * nonFinitePtsCount * finitePtsCount);
++index) { |
| 167 failOne(reporter, index); | 166 failOne(reporter, index); |
| 168 } | 167 } |
| 169 for (int index = 0; index < (int) (11 * finitePtsCount); ++index) { | 168 for (int index = 0; index < (int) (11 * finitePtsCount); ++index) { |
| 170 dontFailOne(reporter, index); | 169 dontFailOne(reporter, index); |
| 171 } | 170 } |
| 172 } | 171 } |
| 173 | 172 |
| 174 #undef TEST | 173 #undef TEST |
| 175 | 174 |
| 176 DEF_TEST(PathOpsSimplifyFailOne, reporter) { | 175 DEF_TEST(PathOpsSimplifyFailOne, reporter) { |
| 177 int index = 0; | 176 int index = 0; |
| 178 failOne(reporter, index); | 177 failOne(reporter, index); |
| 179 } | 178 } |
| 180 | 179 |
| 181 DEF_TEST(PathOpsSimplifyDontFailOne, reporter) { | 180 DEF_TEST(PathOpsSimplifyDontFailOne, reporter) { |
| 182 int index = 17; | 181 int index = 17; |
| 183 dontFailOne(reporter, index); | 182 dontFailOne(reporter, index); |
| 184 } | 183 } |
| OLD | NEW |