| OLD | NEW |
| 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 5322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5333 static const size_t subTestCount = SK_ARRAY_COUNT(subTests); | 5333 static const size_t subTestCount = SK_ARRAY_COUNT(subTests); |
| 5334 | 5334 |
| 5335 static void (*firstSubTest)(skiatest::Reporter* , const char* filename) = 0; | 5335 static void (*firstSubTest)(skiatest::Reporter* , const char* filename) = 0; |
| 5336 | 5336 |
| 5337 static bool runSubTests = false; | 5337 static bool runSubTests = false; |
| 5338 static bool runSubTestsFirst = false; | 5338 static bool runSubTestsFirst = false; |
| 5339 static bool runReverse = false; | 5339 static bool runReverse = false; |
| 5340 | 5340 |
| 5341 DEF_TEST(PathOpsSimplify, reporter) { | 5341 DEF_TEST(PathOpsSimplify, reporter) { |
| 5342 if (runSubTests && runSubTestsFirst) { | 5342 if (runSubTests && runSubTestsFirst) { |
| 5343 RunTestSet(reporter, subTests, subTestCount, firstSubTest, NULL, stopTes
t, runReverse); | 5343 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); |
| 5344 } | 5344 } |
| 5345 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); | 5345 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); |
| 5346 if (runSubTests && !runSubTestsFirst) { | 5346 if (runSubTests && !runSubTestsFirst) { |
| 5347 RunTestSet(reporter, subTests, subTestCount, firstSubTest, NULL, stopTes
t, runReverse); | 5347 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); |
| 5348 } | 5348 } |
| 5349 } | 5349 } |
| OLD | NEW |