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

Side by Side Diff: tests/PathOpsSimplifyTest.cpp

Issue 16195004: add asserts to point<-->verb helpers (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathTest.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 3754 matching lines...) Expand 10 before | Expand all | Expand 10 after
3765 path.quadTo(0, 1, 1, 1); 3765 path.quadTo(0, 1, 1, 1);
3766 path.lineTo(1, 3); 3766 path.lineTo(1, 3);
3767 path.close(); 3767 path.close();
3768 path.moveTo(1, 0); 3768 path.moveTo(1, 0);
3769 path.lineTo(3, 0); 3769 path.lineTo(3, 0);
3770 path.quadTo(0, 1, 1, 2); 3770 path.quadTo(0, 1, 1, 2);
3771 path.close(); 3771 path.close();
3772 testSimplify(reporter, path); 3772 testSimplify(reporter, path);
3773 } 3773 }
3774 3774
3775 static void (*firstTest)(skiatest::Reporter* ) = 0; 3775 static void (*firstTest)(skiatest::Reporter* ) = testQuadratic85;
3776 3776
3777 static TestDesc tests[] = { 3777 static TestDesc tests[] = {
3778 TEST(testQuad7), 3778 TEST(testQuad7),
3779 TEST(testQuad6), 3779 TEST(testQuad6),
3780 TEST(testQuad5), 3780 TEST(testQuad5),
3781 TEST(testQuad4), 3781 TEST(testQuad4),
3782 TEST(testQuad3), 3782 TEST(testQuad3),
3783 TEST(testQuad2), 3783 TEST(testQuad2),
3784 TEST(testAddTCoincident2), 3784 TEST(testAddTCoincident2),
3785 TEST(testAddTCoincident1), 3785 TEST(testAddTCoincident1),
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
4150 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse); 4150 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run Reverse);
4151 } 4151 }
4152 #ifdef SK_DEBUG 4152 #ifdef SK_DEBUG
4153 gDebugMaxWindSum = SK_MaxS32; 4153 gDebugMaxWindSum = SK_MaxS32;
4154 gDebugMaxWindValue = SK_MaxS32; 4154 gDebugMaxWindValue = SK_MaxS32;
4155 #endif 4155 #endif
4156 } 4156 }
4157 4157
4158 #include "TestClassDef.h" 4158 #include "TestClassDef.h"
4159 DEFINE_TESTCLASS_SHORT(PathOpsSimplifyTest) 4159 DEFINE_TESTCLASS_SHORT(PathOpsSimplifyTest)
OLDNEW
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698