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

Side by Side Diff: net/http/http_status_code.cc

Issue 16268017: GTTF: convert some tests in chrome to use EmbeddedTestServer patch nr 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_status_code.h" 5 #include "net/http/http_status_code.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 const char* GetHttpReasonPhrase(HttpStatusCode code) { 11 const char* GetHttpReasonPhrase(HttpStatusCode code) {
12 switch (code) { 12 switch (code) {
13 13
14 #define HTTP_STATUS(label, code, reason) case HTTP_ ## label: return reason; 14 #define HTTP_STATUS(label, code, reason) case HTTP_ ## label: return reason;
15 #include "net/http/http_status_code_list.h" 15 #include "net/http/http_status_code_list.h"
16 #undef HTTP_STATUS 16 #undef HTTP_STATUS
17 17
18 default: 18 default:
19 NOTREACHED(); 19 NOTREACHED() << "unknown HTTP status code " << code;
20 } 20 }
21 21
22 return ""; 22 return "";
23 } 23 }
24 24
25 } // namespace net 25 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698