OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "headless/public/util/testing/generic_url_request_mocks.h" | 5 #include "headless/public/util/testing/generic_url_request_mocks.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "net/http/http_response_headers.h" |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 class URLRequestJob; | 14 class URLRequestJob; |
14 } // namespace net | 15 } // namespace net |
15 | 16 |
16 namespace headless { | 17 namespace headless { |
17 | 18 |
18 // MockGenericURLRequestJobDelegate | 19 // MockGenericURLRequestJobDelegate |
19 MockGenericURLRequestJobDelegate::MockGenericURLRequestJobDelegate() | 20 MockGenericURLRequestJobDelegate::MockGenericURLRequestJobDelegate() |
20 : main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {} | 21 : main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {} |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 int bytes_read) {} | 177 int bytes_read) {} |
177 const std::string& MockURLRequestDelegate::response_data() const { | 178 const std::string& MockURLRequestDelegate::response_data() const { |
178 return response_data_; | 179 return response_data_; |
179 } | 180 } |
180 | 181 |
181 const net::IOBufferWithSize* MockURLRequestDelegate::metadata() const { | 182 const net::IOBufferWithSize* MockURLRequestDelegate::metadata() const { |
182 return nullptr; | 183 return nullptr; |
183 } | 184 } |
184 | 185 |
185 } // namespace headless | 186 } // namespace headless |
OLD | NEW |