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

Unified Diff: net/tools/quic/test_tools/http_message.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: net/tools/quic/test_tools/http_message.cc
diff --git a/net/tools/quic/test_tools/http_message.cc b/net/tools/quic/test_tools/http_message.cc
index 9bd3cffc3120cff25f47a2e9a9a31ac34bf886f5..b3d240a44b368327a8c0efd28b5f75665c5a5a81 100644
--- a/net/tools/quic/test_tools/http_message.cc
+++ b/net/tools/quic/test_tools/http_message.cc
@@ -20,31 +20,17 @@ namespace test {
namespace {
-//const char* kContentEncoding = "content-encoding";
+// const char* kContentEncoding = "content-encoding";
const char* kContentLength = "content-length";
const char* kTransferCoding = "transfer-encoding";
// Both kHTTPVersionString and kMethodString arrays are constructed to match
// the enum values defined in Version and Method of HTTPMessage.
-const char* kHTTPVersionString[] = {
- "",
- "HTTP/0.9",
- "HTTP/1.0",
- "HTTP/1.1"
-};
+const char* kHTTPVersionString[] = {"", "HTTP/0.9", "HTTP/1.0", "HTTP/1.1"};
const char* kMethodString[] = {
- "",
- "OPTIONS",
- "GET",
- "HEAD",
- "POST",
- "PUT",
- "DELETE",
- "TRACE",
- "CONNECT",
- "MKCOL",
- "UNLOCK",
+ "", "OPTIONS", "GET", "HEAD", "POST", "PUT",
+ "DELETE", "TRACE", "CONNECT", "MKCOL", "UNLOCK",
};
// Returns true if the message represents a complete request or response.
@@ -101,8 +87,7 @@ const char* HTTPMessage::VersionToString(Version version) {
return kHTTPVersionString[version];
}
-HTTPMessage::HTTPMessage()
- : is_request_(true) {
+HTTPMessage::HTTPMessage() : is_request_(true) {
InitializeFields();
}
@@ -159,7 +144,8 @@ void HTTPMessage::ValidateMessage() const {
it != transfer_encodings.end();
++it) {
CHECK(StringPieceUtils::EqualIgnoreCase("identity", *it) ||
- StringPieceUtils::EqualIgnoreCase("chunked", *it)) << *it;
+ StringPieceUtils::EqualIgnoreCase("chunked", *it))
+ << *it;
}
vector<StringPiece> content_lengths;

Powered by Google App Engine
This is Rietveld 408576698