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

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

Issue 2824813002: Remove URLRequestJob::GetResponseCode implementations. (Closed)
Patch Set: Fix more stuff 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
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 "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
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
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
OLDNEW
« no previous file with comments | « headless/public/util/testing/generic_url_request_mocks.h ('k') | headless/public/util/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698