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

Unified Diff: chrome/installer/util/google_update_settings_unittest.cc

Issue 821673004: replace COMPILE_ASSERT with static_assert in chrome/installer/ (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
« no previous file with comments | « chrome/installer/util/delete_tree_work_item.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/google_update_settings_unittest.cc
diff --git a/chrome/installer/util/google_update_settings_unittest.cc b/chrome/installer/util/google_update_settings_unittest.cc
index 024cf5bf685676a31f1b74c66342a8aeda75598f..eb7e165fe181a92f1eba6faf730f8feedf350a75 100644
--- a/chrome/installer/util/google_update_settings_unittest.cc
+++ b/chrome/installer/util/google_update_settings_unittest.cc
@@ -411,21 +411,21 @@ TEST_F(GoogleUpdateSettingsTest, UpdateGoogleUpdateApKey) {
L"1.1-full",
L"1.1-dev-full"
};
- COMPILE_ASSERT(arraysize(full) == arraysize(plain), bad_full_array_size);
+ static_assert(arraysize(full) == arraysize(plain), "bad full array size");
const wchar_t* const multifail[] = {
L"-multifail",
L"1.1-multifail",
L"1.1-dev-multifail"
};
- COMPILE_ASSERT(arraysize(multifail) == arraysize(plain),
- bad_multifail_array_size);
+ static_assert(arraysize(multifail) == arraysize(plain),
+ "bad multifail array size");
const wchar_t* const multifail_full[] = {
L"-multifail-full",
L"1.1-multifail-full",
L"1.1-dev-multifail-full"
};
- COMPILE_ASSERT(arraysize(multifail_full) == arraysize(plain),
- bad_multifail_full_array_size);
+ static_assert(arraysize(multifail_full) == arraysize(plain),
+ "bad multifail full array size");
const wchar_t* const* input_arrays[] = {
plain,
full,
« no previous file with comments | « chrome/installer/util/delete_tree_work_item.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698