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

Side by Side Diff: net/url_request/url_request_test_util.cc

Issue 7043007: Kill URLRequestJobTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build. Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "net/url_request/url_request_test_util.h" 5 #include "net/url_request/url_request_test_util.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 const GURL& new_location) { 272 const GURL& new_location) {
273 } 273 }
274 274
275 void TestNetworkDelegate::OnResponseStarted(net::URLRequest* request) { 275 void TestNetworkDelegate::OnResponseStarted(net::URLRequest* request) {
276 if (request->status().status() == net::URLRequestStatus::FAILED) { 276 if (request->status().status() == net::URLRequestStatus::FAILED) {
277 error_count_++; 277 error_count_++;
278 last_os_error_ = request->status().os_error(); 278 last_os_error_ = request->status().os_error();
279 } 279 }
280 } 280 }
281 281
282 void TestNetworkDelegate::OnBytesRead(const net::URLRequest& /* request */,
283 int /* bytes_read */) {}
rvargas (doing something else) 2011/05/18 21:45:18 nit: Same comment here about the argument name. An
284
282 void TestNetworkDelegate::OnCompleted(net::URLRequest* request) { 285 void TestNetworkDelegate::OnCompleted(net::URLRequest* request) {
283 if (request->status().status() == net::URLRequestStatus::FAILED) { 286 if (request->status().status() == net::URLRequestStatus::FAILED) {
284 error_count_++; 287 error_count_++;
285 last_os_error_ = request->status().os_error(); 288 last_os_error_ = request->status().os_error();
286 } 289 }
287 } 290 }
288 291
289 void TestNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { 292 void TestNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {
290 destroyed_requests_++; 293 destroyed_requests_++;
291 } 294 }
292 295
293 void TestNetworkDelegate::OnHttpTransactionDestroyed(uint64 request_id) { 296 void TestNetworkDelegate::OnHttpTransactionDestroyed(uint64 request_id) {
294 } 297 }
295 298
296 net::URLRequestJob* TestNetworkDelegate::OnMaybeCreateURLRequestJob( 299 net::URLRequestJob* TestNetworkDelegate::OnMaybeCreateURLRequestJob(
297 net::URLRequest* request) { 300 net::URLRequest* request) {
298 return NULL; 301 return NULL;
299 } 302 }
300 303
301 void TestNetworkDelegate::OnPACScriptError(int line_number, 304 void TestNetworkDelegate::OnPACScriptError(int line_number,
302 const string16& error) { 305 const string16& error) {
303 } 306 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698