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

Unified Diff: net/test/embedded_test_server/http_request_unittest.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/test/embedded_test_server/http_request.cc ('k') | net/test/spawned_test_server/base_test_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/embedded_test_server/http_request_unittest.cc
diff --git a/net/test/embedded_test_server/http_request_unittest.cc b/net/test/embedded_test_server/http_request_unittest.cc
index 1006e4ede90bfb66656cc319d3cebf0b93b8089d..56121bbc8e60e5a626177b325f64ba0a02583ea8 100644
--- a/net/test/embedded_test_server/http_request_unittest.cc
+++ b/net/test/embedded_test_server/http_request_unittest.cc
@@ -44,6 +44,14 @@ TEST(HttpRequestTest, ParseRequest) {
EXPECT_EQ(1u, request->headers.count("Multi-line-header"));
EXPECT_EQ(1u, request->headers.count("Content-Length"));
+ const char kExpectedAllHeaders[] =
+ "POST /foobar.html HTTP/1.1\r\n"
+ "Host: localhost:1234\r\n"
+ "Multi-line-header: abcd\r\n"
+ " efgh\r\n"
+ " ijkl\r\n"
+ "Content-Length: 10\r\n";
+ EXPECT_EQ(kExpectedAllHeaders, request->all_headers);
EXPECT_EQ("localhost:1234", request->headers["Host"]);
EXPECT_EQ("abcd efgh ijkl", request->headers["Multi-line-header"]);
EXPECT_EQ("10", request->headers["Content-Length"]);
« no previous file with comments | « net/test/embedded_test_server/http_request.cc ('k') | net/test/spawned_test_server/base_test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698