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

Side by Side Diff: tests/PixelRefTest.cpp

Issue 145313004: Cleanup: Sanitize the order of includes under tests/ (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: more two fixes 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/QuickRejectTest.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 2
3 #include "SkMallocPixelRef.h"
3 #include "SkPixelRef.h" 4 #include "SkPixelRef.h"
4 #include "SkMallocPixelRef.h"
5 5
6 static void test_info(skiatest::Reporter* reporter) { 6 static void test_info(skiatest::Reporter* reporter) {
7 static const struct { 7 static const struct {
8 SkBitmap::Config fConfig; 8 SkBitmap::Config fConfig;
9 SkAlphaType fAlphaType; 9 SkAlphaType fAlphaType;
10 SkColorType fExpectedColorType; 10 SkColorType fExpectedColorType;
11 bool fExpectedSuccess; 11 bool fExpectedSuccess;
12 } gRec[] = { 12 } gRec[] = {
13 { SkBitmap::kNo_Config, kPremul_SkAlphaType, kPMColor_SkColor Type, false }, 13 { SkBitmap::kNo_Config, kPremul_SkAlphaType, kPMColor_SkColor Type, false },
14 { SkBitmap::kARGB_8888_Config, kPremul_SkAlphaType, kPMColor_SkColor Type, true }, 14 { SkBitmap::kARGB_8888_Config, kPremul_SkAlphaType, kPMColor_SkColor Type, true },
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 pixelRef->notifyPixelsChanged(); 73 pixelRef->notifyPixelsChanged();
74 REPORTER_ASSERT(r, 1 == count); 74 REPORTER_ASSERT(r, 1 == count);
75 75
76 // Quick check that NULL is safe. 76 // Quick check that NULL is safe.
77 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); 77 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
78 pixelRef->addGenIDChangeListener(NULL); 78 pixelRef->addGenIDChangeListener(NULL);
79 pixelRef->notifyPixelsChanged(); 79 pixelRef->notifyPixelsChanged();
80 80
81 test_info(r); 81 test_info(r);
82 } 82 }
OLDNEW
« no previous file with comments | « tests/PipeTest.cpp ('k') | tests/QuickRejectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698