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

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: Fix compile error 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 const std::string& cookie_line, 177 const std::string& cookie_line,
178 CookieOptions* options) OVERRIDE { 178 CookieOptions* options) OVERRIDE {
179 return true; 179 return true;
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 186
187 virtual int OnBeforeSocketStreamConnect(
188 SocketStream* stream,
189 const CompletionCallback& callback) OVERRIDE {
190 return OK;
191 }
192
187 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate); 193 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate);
188 }; 194 };
189 195
190 } // namespace 196 } // namespace
191 197
192 class ProxyScriptFetcherImplTest : public PlatformTest { 198 class ProxyScriptFetcherImplTest : public PlatformTest {
193 public: 199 public:
194 ProxyScriptFetcherImplTest() 200 ProxyScriptFetcherImplTest()
195 : test_server_(TestServer::TYPE_HTTP, 201 : test_server_(TestServer::TYPE_HTTP,
196 net::TestServer::kLocalhost, 202 net::TestServer::kLocalhost,
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 { 479 {
474 GURL url(kEncodedUrlBroken); 480 GURL url(kEncodedUrlBroken);
475 string16 text; 481 string16 text;
476 TestCompletionCallback callback; 482 TestCompletionCallback callback;
477 int result = pac_fetcher.Fetch(url, &text, callback.callback()); 483 int result = pac_fetcher.Fetch(url, &text, callback.callback());
478 EXPECT_EQ(ERR_FAILED, result); 484 EXPECT_EQ(ERR_FAILED, result);
479 } 485 }
480 } 486 }
481 487
482 } // namespace net 488 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698