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

Unified Diff: ui/message_center/views/notification_view_unittest.cc

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month 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 | « third_party/libaddressinput/chromium/override/basictypes_override.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view_unittest.cc
diff --git a/ui/message_center/views/notification_view_unittest.cc b/ui/message_center/views/notification_view_unittest.cc
index 1944be0dbc3726fc264de77046550bee4658de87..ea589c9d6d67cb726cf0848aae101e4dee0a6830 100644
--- a/ui/message_center/views/notification_view_unittest.cc
+++ b/ui/message_center/views/notification_view_unittest.cc
@@ -100,8 +100,8 @@ class NotificationViewTest : public views::ViewsTestBase,
gfx::Size canvas_size = view->bounds().size();
gfx::Canvas canvas(canvas_size, 1.0 /* image_scale */,
true /* is_opaque */);
- COMPILE_ASSERT(kBitmapColor != SK_ColorBLACK,
- bitmap_color_matches_background_color);
+ static_assert(kBitmapColor != SK_ColorBLACK,
+ "The bitmap color must match the background color");
canvas.DrawColor(SK_ColorBLACK);
view->OnPaint(&canvas);
« no previous file with comments | « third_party/libaddressinput/chromium/override/basictypes_override.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698