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/PixelRefTest.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/PipeTest.cpp ('k') | tests/PointTest.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 #include "Test.h" 1 #include "Test.h"
2 #include "TestClassDef.h"
3 2
4 #include "SkPixelRef.h" 3 #include "SkPixelRef.h"
5 #include "SkMallocPixelRef.h" 4 #include "SkMallocPixelRef.h"
6 5
7 static void test_info(skiatest::Reporter* reporter) { 6 static void test_info(skiatest::Reporter* reporter) {
8 static const struct { 7 static const struct {
9 SkBitmap::Config fConfig; 8 SkBitmap::Config fConfig;
10 SkAlphaType fAlphaType; 9 SkAlphaType fAlphaType;
11 SkColorType fExpectedColorType; 10 SkColorType fExpectedColorType;
12 bool fExpectedSuccess; 11 bool fExpectedSuccess;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 pixelRef->notifyPixelsChanged(); 77 pixelRef->notifyPixelsChanged();
79 REPORTER_ASSERT(r, 1 == count); 78 REPORTER_ASSERT(r, 1 == count);
80 79
81 // Quick check that NULL is safe. 80 // Quick check that NULL is safe.
82 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); 81 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
83 pixelRef->addGenIDChangeListener(NULL); 82 pixelRef->addGenIDChangeListener(NULL);
84 pixelRef->notifyPixelsChanged(); 83 pixelRef->notifyPixelsChanged();
85 84
86 test_info(r); 85 test_info(r);
87 } 86 }
OLDNEW
« no previous file with comments | « tests/PipeTest.cpp ('k') | tests/PointTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698