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

Unified Diff: components/signin/core/browser/signin_error_controller_unittest.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup 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: components/signin/core/browser/signin_error_controller_unittest.cc
diff --git a/components/signin/core/browser/signin_error_controller_unittest.cc b/components/signin/core/browser/signin_error_controller_unittest.cc
index 311496db35058ed938a123af0835b9cba335c9ec..5dfce29a1331a2b31175679666306e3088875e21 100644
--- a/components/signin/core/browser/signin_error_controller_unittest.cc
+++ b/components/signin/core/browser/signin_error_controller_unittest.cc
@@ -164,8 +164,8 @@ TEST_F(SigninErrorControllerTest, AuthStatusEnumerateAllErrors) {
{ GoogleServiceAuthError::SERVICE_ERROR, true },
{ GoogleServiceAuthError::WEB_LOGIN_REQUIRED, true },
};
- COMPILE_ASSERT(arraysize(table) == GoogleServiceAuthError::NUM_STATES,
- kTable_size_does_not_match_number_of_auth_error_types);
+ static_assert(arraysize(table) == GoogleServiceAuthError::NUM_STATES,
+ "table array does not match the number of auth error types");
for (size_t i = 0; i < arraysize(table); ++i) {
FakeAuthStatusProvider provider(error_controller_.get());
« no previous file with comments | « components/sessions/session_service_commands.cc ('k') | components/sync_driver/model_association_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698