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

Side by Side Diff: tests/BitmapCopyTest.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/BitSetTest.cpp ('k') | tests/BitmapGetColorTest.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "Test.h" 8 #include "Test.h"
9 #include "TestClassDef.h"
10 #include "SkBitmap.h" 9 #include "SkBitmap.h"
11 #include "SkRect.h" 10 #include "SkRect.h"
12 11
13 static const char* boolStr(bool value) { 12 static const char* boolStr(bool value) {
14 return value ? "true" : "false"; 13 return value ? "true" : "false";
15 } 14 }
16 15
17 // these are in the same order as the SkBitmap::Config enum 16 // these are in the same order as the SkBitmap::Config enum
18 static const char* gConfigName[] = { 17 static const char* gConfigName[] = {
19 "None", "A8", "Index8", "565", "4444", "8888" 18 "None", "A8", "Index8", "565", "4444", "8888"
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // for the transfer. 530 // for the transfer.
532 REPORTER_ASSERT(reporter, 531 REPORTER_ASSERT(reporter,
533 subset.copyPixelsFrom(buf, 1, subset.rowBytes()) == 532 subset.copyPixelsFrom(buf, 1, subset.rowBytes()) ==
534 false); 533 false);
535 534
536 #endif 535 #endif
537 } 536 }
538 } // for (size_t copyCase ... 537 } // for (size_t copyCase ...
539 } 538 }
540 } 539 }
OLDNEW
« no previous file with comments | « tests/BitSetTest.cpp ('k') | tests/BitmapGetColorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698