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

Side by Side Diff: tests/BlitRowTest.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/BitmapHeapTest.cpp ('k') | tests/CanvasStateTest.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
2 /* 1 /*
3 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
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 "SkColorPriv.h" 12 #include "SkColorPriv.h"
12 #include "SkGradientShader.h" 13 #include "SkGradientShader.h"
13 #include "SkRect.h" 14 #include "SkRect.h"
14 15
15 // these are in the same order as the SkBitmap::Config enum 16 // these are in the same order as the SkBitmap::Config enum
16 static const char* gConfigName[] = { 17 static const char* gConfigName[] = {
17 "None", "A8", "Index8", "565", "4444", "8888" 18 "None", "A8", "Index8", "565", "4444", "8888"
18 }; 19 };
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 str.printf("Diagonal config=%s bg=0x%x dither=%d alpha=0 x%x src=0x%x", 256 str.printf("Diagonal config=%s bg=0x%x dither=%d alpha=0 x%x src=0x%x",
256 gConfigName[gDstConfig[i]], bgColor, dither, alpha, c); 257 gConfigName[gDstConfig[i]], bgColor, dither, alpha, c);
257 reporter->reportFailed(str); 258 reporter->reportFailed(str);
258 } 259 }
259 } 260 }
260 } 261 }
261 } 262 }
262 } 263 }
263 } 264 }
264 265
265 static void TestBlitRow(skiatest::Reporter* reporter) { 266 DEF_TEST(BlitRow, reporter) {
266 test_00_FF(reporter); 267 test_00_FF(reporter);
267 test_diagonal(reporter); 268 test_diagonal(reporter);
268 } 269 }
269
270 #include "TestClassDef.h"
271 DEFINE_TESTCLASS("BlitRow", TestBlitRowClass, TestBlitRow)
OLDNEW
« no previous file with comments | « tests/BitmapHeapTest.cpp ('k') | tests/CanvasStateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698