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

Unified Diff: net/server/http_server_unittest.cc

Issue 265603002: Revert of HttpServer: avoid DCHECK'ing on non-HTTP/1.1 requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/server/http_server_request_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server_unittest.cc
diff --git a/net/server/http_server_unittest.cc b/net/server/http_server_unittest.cc
index e18600459da91f07d52402baaa3d781af147a83b..87c35b198e7b3d42d385681aedc576a3766e09d0 100644
--- a/net/server/http_server_unittest.cc
+++ b/net/server/http_server_unittest.cc
@@ -208,21 +208,9 @@
ASSERT_EQ("/test", GetRequest(0).path);
ASSERT_EQ("", GetRequest(0).data);
ASSERT_EQ(0u, GetRequest(0).headers.size());
- ASSERT_EQ(HttpVersion(1, 1), GetRequest(0).http_version);
ASSERT_TRUE(StartsWithASCII(GetRequest(0).peer.ToString(),
"127.0.0.1",
true));
-}
-
-TEST_F(HttpServerTest, InvalidHttpVersion) {
- TestHttpClient client;
- ASSERT_EQ(OK, client.ConnectAndWait(server_address_));
- client.Send("GET /test HTTP//1\r\n\r\n");
- ASSERT_TRUE(RunUntilRequestsReceived(1));
- ASSERT_EQ("GET", GetRequest(0).method);
- ASSERT_EQ("/test", GetRequest(0).path);
- ASSERT_EQ("", GetRequest(0).data);
- ASSERT_EQ(HttpVersion(1, 0), GetRequest(0).http_version);
}
TEST_F(HttpServerTest, RequestWithHeaders) {
« no previous file with comments | « net/server/http_server_request_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698