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

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

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « net/proxy/proxy_resolver_v8.cc ('k') | net/proxy/proxy_server.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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 172 }
173 173
174 bool OnCanAccessFile(const net::URLRequest& request, 174 bool OnCanAccessFile(const net::URLRequest& request,
175 const base::FilePath& path) const override { 175 const base::FilePath& path) const override {
176 return true; 176 return true;
177 } 177 }
178 bool OnCanThrottleRequest(const URLRequest& request) const override { 178 bool OnCanThrottleRequest(const URLRequest& request) const override {
179 return false; 179 return false;
180 } 180 }
181 181
182 int OnBeforeSocketStreamConnect(SocketStream* stream,
183 const CompletionCallback& callback) override {
184 return OK;
185 }
186
187 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate); 182 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate);
188 }; 183 };
189 184
190 } // namespace 185 } // namespace
191 186
192 class ProxyScriptFetcherImplTest : public PlatformTest { 187 class ProxyScriptFetcherImplTest : public PlatformTest {
193 public: 188 public:
194 ProxyScriptFetcherImplTest() 189 ProxyScriptFetcherImplTest()
195 : test_server_(SpawnedTestServer::TYPE_HTTP, 190 : test_server_(SpawnedTestServer::TYPE_HTTP,
196 net::SpawnedTestServer::kLocalhost, 191 net::SpawnedTestServer::kLocalhost,
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 { 475 {
481 GURL url(kEncodedUrlBroken); 476 GURL url(kEncodedUrlBroken);
482 base::string16 text; 477 base::string16 text;
483 TestCompletionCallback callback; 478 TestCompletionCallback callback;
484 int result = pac_fetcher.Fetch(url, &text, callback.callback()); 479 int result = pac_fetcher.Fetch(url, &text, callback.callback());
485 EXPECT_EQ(ERR_FAILED, result); 480 EXPECT_EQ(ERR_FAILED, result);
486 } 481 }
487 } 482 }
488 483
489 } // namespace net 484 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver_v8.cc ('k') | net/proxy/proxy_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698