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

Unified Diff: net/test/url_request/url_request_mock_http_job.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/ssl/ssl_connection_status_flags.h ('k') | net/tools/crash_cache/crash_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_mock_http_job.cc
diff --git a/net/test/url_request/url_request_mock_http_job.cc b/net/test/url_request/url_request_mock_http_job.cc
index ede87cfeabdb86a0fb1fb849699f339cc3fc4e65..1c6e35cba1d9a703bd4820f8e68649cb855ab42f 100644
--- a/net/test/url_request/url_request_mock_http_job.cc
+++ b/net/test/url_request/url_request_mock_http_job.cc
@@ -133,8 +133,8 @@ GURL URLRequestMockHTTPJob::GetMockUrl(const base::FilePath& path) {
GURL URLRequestMockHTTPJob::GetMockUrlWithFailure(const base::FilePath& path,
FailurePhase phase,
int net_error) {
- COMPILE_ASSERT(arraysize(kFailurePhase) == MAX_FAILURE_PHASE,
- kFailurePhase_must_match_FailurePhase_enum);
+ static_assert(arraysize(kFailurePhase) == MAX_FAILURE_PHASE,
+ "kFailurePhase must match FailurePhase enum");
DCHECK_GE(phase, START);
DCHECK_LE(phase, READ_SYNC);
std::string url(GetMockUrl(path).spec());
« no previous file with comments | « net/ssl/ssl_connection_status_flags.h ('k') | net/tools/crash_cache/crash_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698