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

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

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | net/websockets/websocket_job_spdy2_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 const net::URLRequest& request) const { 493 const net::URLRequest& request) const {
494 return true; 494 return true;
495 } 495 }
496 496
497 int TestNetworkDelegate::OnBeforeSocketStreamConnect( 497 int TestNetworkDelegate::OnBeforeSocketStreamConnect(
498 net::SocketStream* socket, 498 net::SocketStream* socket,
499 const net::CompletionCallback& callback) { 499 const net::CompletionCallback& callback) {
500 return net::OK; 500 return net::OK;
501 } 501 }
502 502
503 void TestNetworkDelegate::OnCacheWaitStateChange(const net::URLRequest& request,
504 CacheWaitState state) {
505 }
506
503 // static 507 // static
504 std::string ScopedCustomUrlRequestTestHttpHost::value_("127.0.0.1"); 508 std::string ScopedCustomUrlRequestTestHttpHost::value_("127.0.0.1");
505 509
506 ScopedCustomUrlRequestTestHttpHost::ScopedCustomUrlRequestTestHttpHost( 510 ScopedCustomUrlRequestTestHttpHost::ScopedCustomUrlRequestTestHttpHost(
507 const std::string& new_value) 511 const std::string& new_value)
508 : old_value_(value_), 512 : old_value_(value_),
509 new_value_(new_value) { 513 new_value_(new_value) {
510 value_ = new_value_; 514 value_ = new_value_;
511 } 515 }
512 516
513 ScopedCustomUrlRequestTestHttpHost::~ScopedCustomUrlRequestTestHttpHost() { 517 ScopedCustomUrlRequestTestHttpHost::~ScopedCustomUrlRequestTestHttpHost() {
514 DCHECK_EQ(value_, new_value_); 518 DCHECK_EQ(value_, new_value_);
515 value_ = old_value_; 519 value_ = old_value_;
516 } 520 }
517 521
518 // static 522 // static
519 const std::string& ScopedCustomUrlRequestTestHttpHost::value() { 523 const std::string& ScopedCustomUrlRequestTestHttpHost::value() {
520 return value_; 524 return value_;
521 } 525 }
OLDNEW
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | net/websockets/websocket_job_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698