| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |