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

Side by Side Diff: net/proxy/proxy_script_fetcher_impl_unittest.cc

Issue 10834313: Add histograms for network activity, and total/cumulative (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
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, 196 virtual void OnRequestWaitStateChange(const net::URLRequest& request,
197 CacheWaitState state) OVERRIDE { 197 RequestWaitState state) OVERRIDE {
198 } 198 }
199 199
200 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate); 200 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate);
201 }; 201 };
202 202
203 } // namespace 203 } // namespace
204 204
205 class ProxyScriptFetcherImplTest : public PlatformTest { 205 class ProxyScriptFetcherImplTest : public PlatformTest {
206 public: 206 public:
207 ProxyScriptFetcherImplTest() 207 ProxyScriptFetcherImplTest()
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 { 486 {
487 GURL url(kEncodedUrlBroken); 487 GURL url(kEncodedUrlBroken);
488 string16 text; 488 string16 text;
489 TestCompletionCallback callback; 489 TestCompletionCallback callback;
490 int result = pac_fetcher.Fetch(url, &text, callback.callback()); 490 int result = pac_fetcher.Fetch(url, &text, callback.callback());
491 EXPECT_EQ(ERR_FAILED, result); 491 EXPECT_EQ(ERR_FAILED, result);
492 } 492 }
493 } 493 }
494 494
495 } // namespace net 495 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/network_delegate_error_observer_unittest.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698