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

Side by Side Diff: ios/web/public/test/http_server/response_provider.mm

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import "ios/web/public/test/response_providers/response_provider.h" 5 #import "ios/web/public/test/http_server/response_provider.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "net/http/http_response_headers.h" 8 #include "net/http/http_response_headers.h"
9 9
10 namespace web { 10 namespace web {
11 11
12 ResponseProvider::Request::Request(const GURL& url, 12 ResponseProvider::Request::Request(const GURL& url,
13 const std::string& method, 13 const std::string& method,
14 const std::string& body, 14 const std::string& body,
15 const net::HttpRequestHeaders& headers) 15 const net::HttpRequestHeaders& headers)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ResponseProvider::GetRedirectResponseHeaders( 71 ResponseProvider::GetRedirectResponseHeaders(
72 const std::string& destination, 72 const std::string& destination,
73 const net::HttpStatusCode& http_status) { 73 const net::HttpStatusCode& http_status) {
74 scoped_refptr<net::HttpResponseHeaders> headers( 74 scoped_refptr<net::HttpResponseHeaders> headers(
75 GetResponseHeaders("text/html", http_status)); 75 GetResponseHeaders("text/html", http_status));
76 headers->AddHeader("Location: " + destination); 76 headers->AddHeader("Location: " + destination);
77 return headers; 77 return headers;
78 } 78 }
79 79
80 } // namespace web 80 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/test/http_server/response_provider.h ('k') | ios/web/public/test/http_server/string_response_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698