| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/data_response_provider.h" | 5 #import "ios/web/public/test/http_server/data_response_provider.h" |
| 6 | 6 |
| 7 #include "base/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
| 8 #import "ios/third_party/gcdwebserver/src/GCDWebServer/Responses/GCDWebServerDat
aResponse.h" | 8 #import "ios/third_party/gcdwebserver/src/GCDWebServer/Responses/GCDWebServerDat
aResponse.h" |
| 9 | 9 |
| 10 namespace web { | 10 namespace web { |
| 11 | 11 |
| 12 GCDWebServerResponse* DataResponseProvider::GetGCDWebServerResponse( | 12 GCDWebServerResponse* DataResponseProvider::GetGCDWebServerResponse( |
| 13 const Request& request) { | 13 const Request& request) { |
| 14 std::string response_body; | 14 std::string response_body; |
| 15 scoped_refptr<net::HttpResponseHeaders> response_headers; | 15 scoped_refptr<net::HttpResponseHeaders> response_headers; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 data_response.contentType = base::SysUTF8ToNSString(value); | 27 data_response.contentType = base::SysUTF8ToNSString(value); |
| 28 continue; | 28 continue; |
| 29 } | 29 } |
| 30 [data_response setValue:base::SysUTF8ToNSString(value) | 30 [data_response setValue:base::SysUTF8ToNSString(value) |
| 31 forAdditionalHeader:base::SysUTF8ToNSString(name)]; | 31 forAdditionalHeader:base::SysUTF8ToNSString(name)]; |
| 32 } | 32 } |
| 33 return data_response; | 33 return data_response; |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace web | 36 } // namespace web |
| OLD | NEW |