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

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

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month 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 d89c43fce5041d53f2529d44fb9a441a21ba2b67..aee3a75111adcaaad707e9d3326d76d99f9b763a 100644
--- a/chrome/installer/util/google_update_settings_unittest.cc
+++ b/chrome/installer/util/google_update_settings_unittest.cc
@@ -422,21 +422,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