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" | |
12 | 11 |
13 namespace net { | 12 namespace net { |
14 class URLRequestJob; | 13 class URLRequestJob; |
15 } // namespace net | 14 } // namespace net |
16 | 15 |
17 namespace headless { | 16 namespace headless { |
18 | 17 |
19 // MockGenericURLRequestJobDelegate | 18 // MockGenericURLRequestJobDelegate |
20 MockGenericURLRequestJobDelegate::MockGenericURLRequestJobDelegate() | 19 MockGenericURLRequestJobDelegate::MockGenericURLRequestJobDelegate() |
21 : main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {} | 20 : main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {} |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 int bytes_read) {} | 176 int bytes_read) {} |
178 const std::string& MockURLRequestDelegate::response_data() const { | 177 const std::string& MockURLRequestDelegate::response_data() const { |
179 return response_data_; | 178 return response_data_; |
180 } | 179 } |
181 | 180 |
182 const net::IOBufferWithSize* MockURLRequestDelegate::metadata() const { | 181 const net::IOBufferWithSize* MockURLRequestDelegate::metadata() const { |
183 return nullptr; | 182 return nullptr; |
184 } | 183 } |
185 | 184 |
186 } // namespace headless | 185 } // namespace headless |
OLD | NEW |