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

Unified Diff: tests/XfermodeTest.cpp

Issue 14180004: Use ILLEGAL_MODE macro to silence clang error. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/XfermodeTest.cpp
diff --git a/tests/XfermodeTest.cpp b/tests/XfermodeTest.cpp
index 0b7012d41711c8d3bd442d2ad4192ac250dd60d6..620fbf4c93abe5224e119a3602e164e752fad61b 100644
--- a/tests/XfermodeTest.cpp
+++ b/tests/XfermodeTest.cpp
@@ -38,11 +38,11 @@ static void test_asMode(skiatest::Reporter* reporter) {
}
SkXfermode* bogusXfer = new SkProcXfermode(bogusXfermodeProc);
- SkXfermode::Mode reportedMode = (SkXfermode::Mode) -1;
+ SkXfermode::Mode reportedMode = ILLEGAL_MODE;
REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode));
- REPORTER_ASSERT(reporter, reportedMode == -1);
+ REPORTER_ASSERT(reporter, reportedMode == ILLEGAL_MODE);
REPORTER_ASSERT(reporter, !SkXfermode::IsMode(bogusXfer, &reportedMode));
- REPORTER_ASSERT(reporter, reportedMode == -1);
+ REPORTER_ASSERT(reporter, reportedMode == ILLEGAL_MODE);
bogusXfer->unref();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698