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

Side by Side Diff: tests/PathOpsSimplifyTest.cpp

Issue 239563004: fix minor skp-found bugs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix mac-detected errors Created 6 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/PathOpsOpTest.cpp ('k') | tests/PathOpsSkpClipTest.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 2012 Google Inc. 2 * Copyright 2012 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 8
9 #define TEST(name) { name, #name } 9 #define TEST(name) { name, #name }
10 10
(...skipping 5068 matching lines...) Expand 10 before | Expand all | Expand 10 after
5079 static const size_t subTestCount = SK_ARRAY_COUNT(subTests); 5079 static const size_t subTestCount = SK_ARRAY_COUNT(subTests);
5080 5080
5081 static void (*firstSubTest)(skiatest::Reporter* , const char* filename) = 0; 5081 static void (*firstSubTest)(skiatest::Reporter* , const char* filename) = 0;
5082 5082
5083 static bool runSubTests = false; 5083 static bool runSubTests = false;
5084 static bool runSubTestsFirst = false; 5084 static bool runSubTestsFirst = false;
5085 static bool runReverse = false; 5085 static bool runReverse = false;
5086 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; 5086 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0;
5087 5087
5088 DEF_TEST(PathOpsSimplify, reporter) { 5088 DEF_TEST(PathOpsSimplify, reporter) {
5089 #ifdef SK_DEBUG
5090 SkPathOpsDebug::gMaxWindSum = 4;
5091 SkPathOpsDebug::gMaxWindValue = 4;
5092 #endif
5093 if (runSubTests && runSubTestsFirst) { 5089 if (runSubTests && runSubTestsFirst) {
5094 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse); 5090 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse);
5095 } 5091 }
5096 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); 5092 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse);
5097 if (runSubTests && !runSubTestsFirst) { 5093 if (runSubTests && !runSubTestsFirst) {
5098 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse); 5094 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse);
5099 } 5095 }
5100 #ifdef SK_DEBUG
5101 SkPathOpsDebug::gMaxWindSum = SK_MaxS32;
5102 SkPathOpsDebug::gMaxWindValue = SK_MaxS32;
5103 #endif
5104 } 5096 }
OLDNEW
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathOpsSkpClipTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698