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

Unified Diff: net/tools/flip_server/http_message_constants.cc

Issue 93793004: Format and Refactor Flip Server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 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
« no previous file with comments | « net/tools/flip_server/http_interface_test.cc ('k') | net/tools/flip_server/loadtime_measurement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/http_message_constants.cc
diff --git a/net/tools/flip_server/http_message_constants.cc b/net/tools/flip_server/http_message_constants.cc
index e60fb1cd451ecc5c3ee4d13e339e725ea28cf67c..a4a8b4deb7d61fbece588902f63dce9141ae2305 100644
--- a/net/tools/flip_server/http_message_constants.cc
+++ b/net/tools/flip_server/http_message_constants.cc
@@ -92,55 +92,12 @@ const char* get_http_status_message(int status_message) {
return "unknown";
}
-////////////////////////////////////////////////////////////////////////////////
-
const int http_status_codes[] = {
- 100,
- 101,
- 200,
- 201,
- 202,
- 203,
- 204,
- 205,
- 206,
- 300,
- 301,
- 302,
- 303,
- 304,
- 305,
- 307,
- 400,
- 401,
- 402,
- 403,
- 404,
- 405,
- 406,
- 407,
- 408,
- 409,
- 410,
- 411,
- 412,
- 413,
- 414,
- 415,
- 416,
- 417,
- 500,
- 501,
- 502,
- 503,
- 504,
- 505
-};
-
-////////////////////////////////////////////////////////////////////////////////
+ 100, 101, 200, 201, 202, 203, 204, 205, 206, 300, 301, 302, 303, 304,
+ 305, 307, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 500, 501, 502, 503, 504, 505};
-const int http_status_code_count = sizeof(http_status_codes) /
- sizeof(http_status_codes[0]);
+const int http_status_code_count =
+ sizeof(http_status_codes) / sizeof(http_status_codes[0]);
} // namespace net
-
« no previous file with comments | « net/tools/flip_server/http_interface_test.cc ('k') | net/tools/flip_server/loadtime_measurement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698