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

Unified Diff: chrome/test/logging/win/file_logger.cc

Issue 810283003: replace COMPILE_ASSERT with static_assert in chrome/[r-z]*/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/test/logging/win/file_logger.cc
diff --git a/chrome/test/logging/win/file_logger.cc b/chrome/test/logging/win/file_logger.cc
index 7462851ff79e010429e8e201daa048070e131b92..e2707350bf969d095fd753803c78d922339dfe22 100644
--- a/chrome/test/logging/win/file_logger.cc
+++ b/chrome/test/logging/win/file_logger.cc
@@ -53,9 +53,9 @@ const struct {
{ &base::debug::kChromeTraceProviderName, 255, 0 }
};
-COMPILE_ASSERT((1 << arraysize(kProviders)) - 1 ==
- FileLogger::kAllEventProviders,
- size_of_kProviders_is_inconsistent_with_kAllEventProviders);
+static_assert((1 << arraysize(kProviders)) - 1 ==
+ FileLogger::kAllEventProviders,
+ "size of kProviders is inconsistent with kAllEventProviders");
} // namespace
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.cc ('k') | chrome/tools/profile_reset/jtl_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698