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

Side by Side Diff: tests/PathOpsSimplifyFailTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload Created 6 years, 11 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
OLDNEW
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 "SkPathOps.h" 7 #include "SkPathOps.h"
8 #include "SkPath.h" 8 #include "SkPath.h"
9 #include "SkPoint.h" 9 #include "SkPoint.h"
10 #include "Test.h" 10 #include "Test.h"
11 #include "TestClassDef.h"
12 11
13 static const SkPoint nonFinitePts[] = { 12 static const SkPoint nonFinitePts[] = {
14 { SK_ScalarInfinity, 0 }, 13 { SK_ScalarInfinity, 0 },
15 { 0, SK_ScalarInfinity }, 14 { 0, SK_ScalarInfinity },
16 { SK_ScalarInfinity, SK_ScalarInfinity }, 15 { SK_ScalarInfinity, SK_ScalarInfinity },
17 { SK_ScalarNegativeInfinity, 0}, 16 { SK_ScalarNegativeInfinity, 0},
18 { 0, SK_ScalarNegativeInfinity }, 17 { 0, SK_ScalarNegativeInfinity },
19 { SK_ScalarNegativeInfinity, SK_ScalarNegativeInfinity }, 18 { SK_ScalarNegativeInfinity, SK_ScalarNegativeInfinity },
20 { SK_ScalarNegativeInfinity, SK_ScalarInfinity }, 19 { SK_ScalarNegativeInfinity, SK_ScalarInfinity },
21 { SK_ScalarInfinity, SK_ScalarNegativeInfinity }, 20 { SK_ScalarInfinity, SK_ScalarNegativeInfinity },
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 102
104 DEF_TEST(PathOpsSimplifyFailOne, reporter) { 103 DEF_TEST(PathOpsSimplifyFailOne, reporter) {
105 int index = 0; 104 int index = 0;
106 failOne(reporter, index); 105 failOne(reporter, index);
107 } 106 }
108 107
109 DEF_TEST(PathOpsSimplifyDontFailOne, reporter) { 108 DEF_TEST(PathOpsSimplifyDontFailOne, reporter) {
110 int index = 6; 109 int index = 6;
111 dontFailOne(reporter, index); 110 dontFailOne(reporter, index);
112 } 111 }
OLDNEW
« no previous file with comments | « tests/PathOpsSimplifyDegenerateThreadedTest.cpp ('k') | tests/PathOpsSimplifyQuadThreadedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698