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

Unified Diff: net/url_request/url_request_simple_job_unittest.cc

Issue 826973002: replace COMPILE_ASSERT with static_assert in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply fixups Created 5 years, 11 months 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 | « net/tools/crash_cache/crash_cache.cc ('k') | net/websockets/websocket_basic_handshake_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_simple_job_unittest.cc
diff --git a/net/url_request/url_request_simple_job_unittest.cc b/net/url_request/url_request_simple_job_unittest.cc
index 5ee71b5766fbb6928581fbe09de2e3ece9e9705a..7fbdefb4e887aa1984e85bba8ba64adad9189f1c 100644
--- a/net/url_request/url_request_simple_job_unittest.cc
+++ b/net/url_request/url_request_simple_job_unittest.cc
@@ -20,10 +20,11 @@ namespace {
const char kTestData[] = "Huge data array";
const int kRangeFirstPosition = 5;
const int kRangeLastPosition = 8;
-COMPILE_ASSERT(kRangeFirstPosition > 0 &&
- kRangeFirstPosition < kRangeLastPosition &&
- kRangeLastPosition < static_cast<int>(arraysize(kTestData) - 1),
- invalid_range);
+static_assert(kRangeFirstPosition > 0 &&
+ kRangeFirstPosition < kRangeLastPosition &&
+ kRangeLastPosition <
+ static_cast<int>(arraysize(kTestData) - 1),
+ "invalid range");
class MockSimpleJob : public URLRequestSimpleJob {
public:
« no previous file with comments | « net/tools/crash_cache/crash_cache.cc ('k') | net/websockets/websocket_basic_handshake_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698