Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: headless/public/util/testing/generic_url_request_mocks.cc

Issue 2832963002: Reland of Add --headless flag to Windows (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « headless/public/util/generic_url_request_job.h ('k') | headless/test/headless_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « headless/public/util/generic_url_request_job.h ('k') | headless/test/headless_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698