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

Side by Side Diff: net/proxy/proxy_script_fetcher_impl_unittest.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/proxy/network_delegate_error_observer_unittest.cc ('k') | net/tools/fetch/fetch_client.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/proxy/proxy_script_fetcher_impl.h" 5 #include "net/proxy/proxy_script_fetcher_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 virtual bool OnCanThrottleRequest(const URLRequest& request) const OVERRIDE { 186 virtual bool OnCanThrottleRequest(const URLRequest& request) const OVERRIDE {
187 return false; 187 return false;
188 } 188 }
189 189
190 virtual int OnBeforeSocketStreamConnect( 190 virtual int OnBeforeSocketStreamConnect(
191 SocketStream* stream, 191 SocketStream* stream,
192 const CompletionCallback& callback) OVERRIDE { 192 const CompletionCallback& callback) OVERRIDE {
193 return OK; 193 return OK;
194 } 194 }
195 195
196 virtual void OnCacheWaitStateChange(const net::URLRequest& request,
197 CacheWaitState state) OVERRIDE {
198 }
199
196 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate); 200 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate);
197 }; 201 };
198 202
199 } // namespace 203 } // namespace
200 204
201 class ProxyScriptFetcherImplTest : public PlatformTest { 205 class ProxyScriptFetcherImplTest : public PlatformTest {
202 public: 206 public:
203 ProxyScriptFetcherImplTest() 207 ProxyScriptFetcherImplTest()
204 : test_server_(TestServer::TYPE_HTTP, 208 : test_server_(TestServer::TYPE_HTTP,
205 net::TestServer::kLocalhost, 209 net::TestServer::kLocalhost,
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 { 486 {
483 GURL url(kEncodedUrlBroken); 487 GURL url(kEncodedUrlBroken);
484 string16 text; 488 string16 text;
485 TestCompletionCallback callback; 489 TestCompletionCallback callback;
486 int result = pac_fetcher.Fetch(url, &text, callback.callback()); 490 int result = pac_fetcher.Fetch(url, &text, callback.callback());
487 EXPECT_EQ(ERR_FAILED, result); 491 EXPECT_EQ(ERR_FAILED, result);
488 } 492 }
489 } 493 }
490 494
491 } // namespace net 495 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/network_delegate_error_observer_unittest.cc ('k') | net/tools/fetch/fetch_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698