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

Side by Side Diff: tests/DrawPathTest.cpp

Issue 100113004: Use DEFINE_TESTCLASS_SHORT macro in tests. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years 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/DrawBitmapRectTest.cpp ('k') | tests/DrawTextTest.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 7
8 #include "Test.h" 8 #include "Test.h"
9 #include "TestClassDef.h"
9 #include "SkBitmap.h" 10 #include "SkBitmap.h"
10 #include "SkCanvas.h" 11 #include "SkCanvas.h"
11 #include "SkDashPathEffect.h" 12 #include "SkDashPathEffect.h"
12 #include "SkSurface.h" 13 #include "SkSurface.h"
13 14
14 static SkCanvas* create(SkBitmap::Config config, int w, int h, int rb, 15 static SkCanvas* create(SkBitmap::Config config, int w, int h, int rb,
15 void* addr = NULL) { 16 void* addr = NULL) {
16 SkBitmap bm; 17 SkBitmap bm;
17 bm.setConfig(config, w, h, rb); 18 bm.setConfig(config, w, h, rb);
18 if (addr) { 19 if (addr) {
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 SkPaint paint; 299 SkPaint paint;
299 paint.setStyle(SkPaint::kStroke_Style); 300 paint.setStyle(SkPaint::kStroke_Style);
300 paint.setPathEffect(&dash); 301 paint.setPathEffect(&dash);
301 302
302 SkPath filteredPath; 303 SkPath filteredPath;
303 SkStrokeRec rec(paint); 304 SkStrokeRec rec(paint);
304 REPORTER_ASSERT(reporter, !dash.filterPath(&filteredPath, path, &rec, NULL)) ; 305 REPORTER_ASSERT(reporter, !dash.filterPath(&filteredPath, path, &rec, NULL)) ;
305 REPORTER_ASSERT(reporter, filteredPath.isEmpty()); 306 REPORTER_ASSERT(reporter, filteredPath.isEmpty());
306 } 307 }
307 308
308 static void TestDrawPath(skiatest::Reporter* reporter) { 309 DEF_TEST(DrawPath, reporter) {
309 test_giantaa(); 310 test_giantaa();
310 test_bug533(); 311 test_bug533();
311 test_bigcubic(); 312 test_bigcubic();
312 test_crbug_124652(); 313 test_crbug_124652();
313 test_crbug_140642(); 314 test_crbug_140642();
314 test_crbug_140803(); 315 test_crbug_140803();
315 test_inversepathwithclip(); 316 test_inversepathwithclip();
316 // why? 317 // why?
317 if (false) test_crbug131181(); 318 if (false) test_crbug131181();
318 test_infinite_dash(reporter); 319 test_infinite_dash(reporter);
319 test_crbug_165432(reporter); 320 test_crbug_165432(reporter);
320 test_big_aa_rect(reporter); 321 test_big_aa_rect(reporter);
321 } 322 }
322
323 #include "TestClassDef.h"
324 DEFINE_TESTCLASS("DrawPath", TestDrawPathClass, TestDrawPath)
OLDNEW
« no previous file with comments | « tests/DrawBitmapRectTest.cpp ('k') | tests/DrawTextTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698