Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: tests/PathOpsFuzz763Test.cpp

Issue 1140563003: clean up tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix linux build error Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/PathOpsExtendedTest.cpp ('k') | tests/PathOpsOpCircleThreadedTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 "PathOpsTestCommon.h" 8 #include "PathOpsTestCommon.h"
9 9
10 #define TEST(name) { name, #name } 10 #define TEST(name) { name, #name }
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 path.quadTo(SkBits2Float(0x42581210), SkBits2Float(0x4110b128), SkBits2Float(0x4 24dc3b4), SkBits2Float(0x41320868)); 2191 path.quadTo(SkBits2Float(0x42581210), SkBits2Float(0x4110b128), SkBits2Float(0x4 24dc3b4), SkBits2Float(0x41320868));
2192 path.quadTo(SkBits2Float(0x4243755a), SkBits2Float(0x41535fa6), SkBits2Float(0x4 23646ec), SkBits2Float(0x414dcc96)); 2192 path.quadTo(SkBits2Float(0x4243755a), SkBits2Float(0x41535fa6), SkBits2Float(0x4 23646ec), SkBits2Float(0x414dcc96));
2193 path.quadTo(SkBits2Float(0x4229187e), SkBits2Float(0x41483989), SkBits2Float(0x4 220c2ae), SkBits2Float(0x411f001d)); 2193 path.quadTo(SkBits2Float(0x4229187e), SkBits2Float(0x41483989), SkBits2Float(0x4 220c2ae), SkBits2Float(0x411f001d));
2194 path.quadTo(SkBits2Float(0x42186cde), SkBits2Float(0x40eb8d66), SkBits2Float(0x4 219d1a2), SkBits2Float(0x408219f4)); 2194 path.quadTo(SkBits2Float(0x42186cde), SkBits2Float(0x40eb8d66), SkBits2Float(0x4 219d1a2), SkBits2Float(0x408219f4));
2195 path.quadTo(SkBits2Float(0x421b3666), SkBits2Float(0x3f453420), SkBits2Float(0x4 22584c1), SkBits2Float(0xbfa81fe0)); 2195 path.quadTo(SkBits2Float(0x421b3666), SkBits2Float(0x3f453420), SkBits2Float(0x4 22584c1), SkBits2Float(0xbfa81fe0));
2196 path.quadTo(SkBits2Float(0x422fd31c), SkBits2Float(0xc0596cf0), SkBits2Float(0x4 23d018a), SkBits2Float(0xc04320b0)); 2196 path.quadTo(SkBits2Float(0x422fd31c), SkBits2Float(0xc0596cf0), SkBits2Float(0x4 23d018a), SkBits2Float(0xc04320b0));
2197 path.quadTo(SkBits2Float(0x424a2ff8), SkBits2Float(0xc02cd470), SkBits2Float(0x4 25285c7), SkBits2Float(0xbdfdd900)); 2197 path.quadTo(SkBits2Float(0x424a2ff8), SkBits2Float(0xc02cd470), SkBits2Float(0x4 25285c7), SkBits2Float(0xbdfdd900));
2198 path.close(); 2198 path.close();
2199 2199
2200 SkPath path2(path); 2200 SkPath path2(path);
2201 testPathOpFlaky(reporter, path1, path2, (SkPathOp) 2, filename); 2201 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename);
2202 } 2202 }
2203 2203
2204 static void fuzz763_2674194(skiatest::Reporter* reporter, const char* filename) { 2204 static void fuzz763_2674194(skiatest::Reporter* reporter, const char* filename) {
2205 SkPath path; 2205 SkPath path;
2206 path.setFillType((SkPath::FillType) 1); 2206 path.setFillType((SkPath::FillType) 1);
2207 path.moveTo(SkBits2Float(0xbfb16e10), SkBits2Float(0xc252733b)); 2207 path.moveTo(SkBits2Float(0xbfb16e10), SkBits2Float(0xc252733b));
2208 path.quadTo(SkBits2Float(0x3f91df50), SkBits2Float(0xc25b07b4), SkBits2Float(0x4 08e27f4), SkBits2Float(0xc259f3f8)); 2208 path.quadTo(SkBits2Float(0x3f91df50), SkBits2Float(0xc25b07b4), SkBits2Float(0x4 08e27f4), SkBits2Float(0xc259f3f8));
2209 path.quadTo(SkBits2Float(0x40f7d814), SkBits2Float(0xc258e03e), SkBits2Float(0x4 11e3df0), SkBits2Float(0xc24ec5d2)); 2209 path.quadTo(SkBits2Float(0x40f7d814), SkBits2Float(0xc258e03e), SkBits2Float(0x4 11e3df0), SkBits2Float(0xc24ec5d2));
2210 path.quadTo(SkBits2Float(0x41408fd4), SkBits2Float(0xc244ab67), SkBits2Float(0x4 13c40e6), SkBits2Float(0xc2377562)); 2210 path.quadTo(SkBits2Float(0x41408fd4), SkBits2Float(0xc244ab67), SkBits2Float(0x4 13c40e6), SkBits2Float(0xc2377562));
2211 path.quadTo(SkBits2Float(0x4137f1f8), SkBits2Float(0xc22a3f5f), SkBits2Float(0x4 10f884c), SkBits2Float(0xc221aae6)); 2211 path.quadTo(SkBits2Float(0x4137f1f8), SkBits2Float(0xc22a3f5f), SkBits2Float(0x4 10f884c), SkBits2Float(0xc221aae6));
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
2434 static const size_t testCount = SK_ARRAY_COUNT(tests); 2434 static const size_t testCount = SK_ARRAY_COUNT(tests);
2435 2435
2436 static bool runReverse = false; 2436 static bool runReverse = false;
2437 2437
2438 DEF_TEST(PathOpsFuzz763, reporter) { 2438 DEF_TEST(PathOpsFuzz763, reporter) {
2439 #if DEBUG_SHOW_TEST_NAME 2439 #if DEBUG_SHOW_TEST_NAME
2440 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); 2440 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH);
2441 #endif 2441 #endif
2442 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev erse); 2442 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev erse);
2443 } 2443 }
OLDNEW
« no previous file with comments | « tests/PathOpsExtendedTest.cpp ('k') | tests/PathOpsOpCircleThreadedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698