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

Unified Diff: chrome/browser/external_extension_browsertest.cc

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup 2 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/browser/external_extension_browsertest.cc
diff --git a/chrome/browser/external_extension_browsertest.cc b/chrome/browser/external_extension_browsertest.cc
index dcde9d38256d77e70cc84bf479c68438e0f02b8f..6f3dd7713eda636ec93b2a7ce5628e2656354689 100644
--- a/chrome/browser/external_extension_browsertest.cc
+++ b/chrome/browser/external_extension_browsertest.cc
@@ -106,8 +106,8 @@ IN_PROC_BROWSER_TEST_F(SearchProviderTest,
const char* expected_results[] = { "2",
"1",
"0" };
- COMPILE_ASSERT(arraysize(test_hosts) == arraysize(expected_results),
- there_should_be_a_result_for_each_host);
+ static_assert(arraysize(test_hosts) == arraysize(expected_results),
+ "each host should have a test result");
IsSearchProviderTestData test_data[2 * arraysize(test_hosts)];
// Start results for the normal mode.

Powered by Google App Engine
This is Rietveld 408576698