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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 30 matching lines...) Expand all Loading... |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 void MockGenericURLRequestJobDelegate::OnResourceLoadFailed( | 44 void MockGenericURLRequestJobDelegate::OnResourceLoadFailed( |
45 const Request* request, | 45 const Request* request, |
46 net::Error error) {} | 46 net::Error error) {} |
47 | 47 |
48 void MockGenericURLRequestJobDelegate::OnResourceLoadComplete( | 48 void MockGenericURLRequestJobDelegate::OnResourceLoadComplete( |
49 const Request* request, | 49 const Request* request, |
50 const GURL& final_url, | 50 const GURL& final_url, |
51 int http_response_code, | |
52 scoped_refptr<net::HttpResponseHeaders> response_headers, | 51 scoped_refptr<net::HttpResponseHeaders> response_headers, |
53 const char* body, | 52 const char* body, |
54 size_t body_size) {} | 53 size_t body_size) {} |
55 | 54 |
56 // MockCookieStore | 55 // MockCookieStore |
57 MockCookieStore::MockCookieStore() {} | 56 MockCookieStore::MockCookieStore() {} |
58 MockCookieStore::~MockCookieStore() {} | 57 MockCookieStore::~MockCookieStore() {} |
59 | 58 |
60 void MockCookieStore::SetCookieWithOptionsAsync( | 59 void MockCookieStore::SetCookieWithOptionsAsync( |
61 const GURL& url, | 60 const GURL& url, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 int bytes_read) {} | 174 int bytes_read) {} |
176 const std::string& MockURLRequestDelegate::response_data() const { | 175 const std::string& MockURLRequestDelegate::response_data() const { |
177 return response_data_; | 176 return response_data_; |
178 } | 177 } |
179 | 178 |
180 const net::IOBufferWithSize* MockURLRequestDelegate::metadata() const { | 179 const net::IOBufferWithSize* MockURLRequestDelegate::metadata() const { |
181 return nullptr; | 180 return nullptr; |
182 } | 181 } |
183 | 182 |
184 } // namespace headless | 183 } // namespace headless |
OLD | NEW |