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

Unified Diff: base/mac/foundation_util_unittest.mm

Issue 1467003002: Switch to static_assert in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: / 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 | « base/logging.h ('k') | base/macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/foundation_util_unittest.mm
diff --git a/base/mac/foundation_util_unittest.mm b/base/mac/foundation_util_unittest.mm
index c688442a6885f28dc58391783e3209220f75c9e9..69d5b1fda889eb421d25b75a3735ed436a7f8285 100644
--- a/base/mac/foundation_util_unittest.mm
+++ b/base/mac/foundation_util_unittest.mm
@@ -281,8 +281,8 @@ TEST(FoundationUtilTest, GetValueFromDictionary) {
CFStringRef keys[] = { CFSTR("one"), CFSTR("two"), CFSTR("three") };
CFNumberRef values[] = { cf_one, cf_two, cf_three };
- COMPILE_ASSERT(arraysize(keys) == arraysize(values),
- keys_and_values_arraysizes_are_different);
+ static_assert(arraysize(keys) == arraysize(values),
+ "keys and values arrays must have the same size");
ScopedCFTypeRef<CFDictionaryRef> test_dict(
CFDictionaryCreate(kCFAllocatorDefault,
« no previous file with comments | « base/logging.h ('k') | base/macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698