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

Side by Side Diff: tests/ClipCubicTest.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
« no previous file with comments | « tests/ClipCacheTest.cpp ('k') | tests/ClipStackTest.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 2011 Google Inc. 2 * Copyright 2011 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 7
8 #include "Test.h" 8 #include "Test.h"
9 #include "TestClassDef.h"
10 #include "SkCanvas.h" 9 #include "SkCanvas.h"
11 #include "SkPaint.h" 10 #include "SkPaint.h"
12 #include "SkCubicClipper.h" 11 #include "SkCubicClipper.h"
13 #include "SkGeometry.h" 12 #include "SkGeometry.h"
14 13
15 // Currently the supersampler blitter uses int16_t for its index into an array 14 // Currently the supersampler blitter uses int16_t for its index into an array
16 // the width of the clip. Test that we don't crash/assert if we try to draw 15 // the width of the clip. Test that we don't crash/assert if we try to draw
17 // with a device/clip that is larger. 16 // with a device/clip that is larger.
18 static void test_giantClip() { 17 static void test_giantClip() {
19 SkBitmap bm; 18 SkBitmap bm;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 REPORTER_ASSERT(reporter, success == true); 155 REPORTER_ASSERT(reporter, success == true);
157 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve( 156 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
158 0, 0, 157 0, 0,
159 1.551193237f, 2.326789856f, 158 1.551193237f, 2.326789856f,
160 1.297736168f, 7.059780121f, 159 1.297736168f, 7.059780121f,
161 2.505550385f, 10, 160 2.505550385f, 10,
162 shouldbe), tol)); 161 shouldbe), tol));
163 162
164 test_giantClip(); 163 test_giantClip();
165 } 164 }
OLDNEW
« no previous file with comments | « tests/ClipCacheTest.cpp ('k') | tests/ClipStackTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698