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

Unified Diff: chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup 2 Created 6 years 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
Index: chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc b/chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc
index 77dad56c4e428c3b55c4a63cf1f1bd90767d200a..903f3fdee2558b22ee1313930b05892ae71cdfe0 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc
@@ -199,8 +199,8 @@ FullscreenControllerStateTest::FullscreenControllerStateTest()
STATE_TAB_FULLSCREEN, // Event WINDOW_CHANGE
},
};
- COMPILE_ASSERT(sizeof(transition_table_data) == sizeof(transition_table_),
- transition_table_incorrect_size);
+ static_assert(sizeof(transition_table_data) == sizeof(transition_table_),
+ "transition_table has unexpected size");
memcpy(transition_table_, transition_table_data,
sizeof(transition_table_data));

Powered by Google App Engine
This is Rietveld 408576698