From 3a46e0bf9308a42642689c4b73b6b8622aeecbe5 Mon Sep 17 00:00:00 2001 From: mostynb Date: Tue, 23 Dec 2014 01:02:43 -0800 Subject: replace COMPILE_ASSERT with static_assert in chrome/browser/ BUG=442514 Review URL: https://codereview.chromium.org/815363002 Cr-Commit-Position: refs/heads/master@{#309547} --- .../browser/ui/exclusive_access/fullscreen_controller_state_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '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 a4a8850..fd0ab5b 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)); -- cgit v1.1