OLD | NEW |
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/url_request/test_url_fetcher_factory.h" | 5 #include "net/url_request/test_url_fetcher_factory.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 void TestURLFetcher::SaveResponseToFileAtPath( | 141 void TestURLFetcher::SaveResponseToFileAtPath( |
142 const base::FilePath& file_path, | 142 const base::FilePath& file_path, |
143 scoped_refptr<base::TaskRunner> file_task_runner) { | 143 scoped_refptr<base::TaskRunner> file_task_runner) { |
144 } | 144 } |
145 | 145 |
146 void TestURLFetcher::SaveResponseToTemporaryFile( | 146 void TestURLFetcher::SaveResponseToTemporaryFile( |
147 scoped_refptr<base::TaskRunner> file_task_runner) { | 147 scoped_refptr<base::TaskRunner> file_task_runner) { |
148 } | 148 } |
149 | 149 |
150 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { | 150 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { |
151 return fake_response_headers_; | 151 return fake_response_headers_.get(); |
152 } | 152 } |
153 | 153 |
154 HostPortPair TestURLFetcher::GetSocketAddress() const { | 154 HostPortPair TestURLFetcher::GetSocketAddress() const { |
155 NOTIMPLEMENTED(); | 155 NOTIMPLEMENTED(); |
156 return HostPortPair(); | 156 return HostPortPair(); |
157 } | 157 } |
158 | 158 |
159 bool TestURLFetcher::WasFetchedViaProxy() const { | 159 bool TestURLFetcher::WasFetchedViaProxy() const { |
160 return fake_was_fetched_via_proxy_; | 160 return fake_was_fetched_via_proxy_; |
161 } | 161 } |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 374 |
375 URLFetcher* URLFetcherImplFactory::CreateURLFetcher( | 375 URLFetcher* URLFetcherImplFactory::CreateURLFetcher( |
376 int id, | 376 int id, |
377 const GURL& url, | 377 const GURL& url, |
378 URLFetcher::RequestType request_type, | 378 URLFetcher::RequestType request_type, |
379 URLFetcherDelegate* d) { | 379 URLFetcherDelegate* d) { |
380 return new URLFetcherImpl(url, request_type, d); | 380 return new URLFetcherImpl(url, request_type, d); |
381 } | 381 } |
382 | 382 |
383 } // namespace net | 383 } // namespace net |
OLD | NEW |