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

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: address comments 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
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | chrome/browser/ui/tabs/tab_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a4a885001ce4d865e3be0be2d99fe61fd6ab5c71..fd0ab5b4b244c7bdc63eb789539428bc8c758f51 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc
@@ -195,8 +195,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));
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | chrome/browser/ui/tabs/tab_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698