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