OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |