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

Unified Diff: net/test/embedded_test_server/http_response_unittest.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: rebase Created 7 years, 6 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/test/embedded_test_server/http_response.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/embedded_test_server/http_response_unittest.cc
diff --git a/net/test/embedded_test_server/http_response_unittest.cc b/net/test/embedded_test_server/http_response_unittest.cc
index 82f5112cec13f94942893cb2cd3c7cceddd3f753..83b767f5fa8416ab3c02e0b473f5bd5f477b018e 100644
--- a/net/test/embedded_test_server/http_response_unittest.cc
+++ b/net/test/embedded_test_server/http_response_unittest.cc
@@ -11,14 +11,14 @@ namespace test_server {
TEST(HttpResponseTest, GenerateResponse) {
BasicHttpResponse response;
- response.set_code(SUCCESS);
+ response.set_code(HTTP_OK);
response.set_content("Sample content - Hello world!");
response.set_content_type("text/plain");
response.AddCustomHeader("Simple-Header", "Simple value.");
std::string kExpectedResponseString =
"HTTP/1.1 200 OK\r\n"
- "Connection: closed\r\n"
+ "Connection: close\r\n"
"Content-Length: 29\r\n"
"Content-Type: text/plain\r\n"
"Simple-Header: Simple value.\r\n\r\n"
« no previous file with comments | « net/test/embedded_test_server/http_response.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698