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

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

Issue 10541046: Adds NetworkDelegate::NotifyBeforeSocketStreamConnect() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments Created 8 years, 6 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 (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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 180 }
181 181
182 virtual bool OnCanAccessFile(const net::URLRequest& request, 182 virtual bool OnCanAccessFile(const net::URLRequest& request,
183 const FilePath& path) const OVERRIDE { 183 const FilePath& path) const OVERRIDE {
184 return true; 184 return true;
185 } 185 }
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(
191 SocketStream* stream,
192 const CompletionCallback& callback) OVERRIDE {
193 return OK;
194 }
195
190 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate); 196 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate);
191 }; 197 };
192 198
193 } // namespace 199 } // namespace
194 200
195 class ProxyScriptFetcherImplTest : public PlatformTest { 201 class ProxyScriptFetcherImplTest : public PlatformTest {
196 public: 202 public:
197 ProxyScriptFetcherImplTest() 203 ProxyScriptFetcherImplTest()
198 : test_server_(TestServer::TYPE_HTTP, 204 : test_server_(TestServer::TYPE_HTTP,
199 net::TestServer::kLocalhost, 205 net::TestServer::kLocalhost,
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 { 482 {
477 GURL url(kEncodedUrlBroken); 483 GURL url(kEncodedUrlBroken);
478 string16 text; 484 string16 text;
479 TestCompletionCallback callback; 485 TestCompletionCallback callback;
480 int result = pac_fetcher.Fetch(url, &text, callback.callback()); 486 int result = pac_fetcher.Fetch(url, &text, callback.callback());
481 EXPECT_EQ(ERR_FAILED, result); 487 EXPECT_EQ(ERR_FAILED, result);
482 } 488 }
483 } 489 }
484 490
485 } // namespace net 491 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/network_delegate_error_observer_unittest.cc ('k') | net/socket_stream/socket_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698