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

Side by Side Diff: net/test/embedded_test_server/http_response.cc

Issue 15069003: Rename the embedded test server to EmbeddedTestServer in net::test_server namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/test/embedded_test_server/http_response.h" 5 #include "net/test/embedded_test_server/http_response.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 10
11 namespace google_apis { 11 namespace net {
12 namespace test_server { 12 namespace test_server {
13 13
14 HttpResponse::HttpResponse() : code_(SUCCESS) { 14 HttpResponse::HttpResponse() : code_(SUCCESS) {
15 } 15 }
16 16
17 HttpResponse::~HttpResponse() { 17 HttpResponse::~HttpResponse() {
18 } 18 }
19 19
20 std::string HttpResponse::ToResponseString() const { 20 std::string HttpResponse::ToResponseString() const {
21 // Response line with headers. 21 // Response line with headers.
(...skipping 22 matching lines...) Expand all
44 "%s: %s\r\n", 44 "%s: %s\r\n",
45 header_name.c_str(), 45 header_name.c_str(),
46 header_value.c_str()); 46 header_value.c_str());
47 } 47 }
48 base::StringAppendF(&response_builder, "\r\n"); 48 base::StringAppendF(&response_builder, "\r\n");
49 49
50 return response_builder + content_; 50 return response_builder + content_;
51 } 51 }
52 52
53 } // namespace test_server 53 } // namespace test_server
54 } // namespace google_apis 54 } // namespace net
OLDNEW
« no previous file with comments | « net/test/embedded_test_server/http_response.h ('k') | net/test/embedded_test_server/http_response_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698