OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "net/base/net_errors.h" | 8 #include "net/base/net_errors.h" |
9 #include "net/base/net_util.h" | 9 #include "net/base/net_util.h" |
10 #include "net/proxy/proxy_resolver_v8.h" | 10 #include "net/proxy/proxy_resolver_v8.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 resolver.SetPacScript(std::string()); | 222 resolver.SetPacScript(std::string()); |
223 | 223 |
224 // Resolve should fail again now. | 224 // Resolve should fail again now. |
225 result = resolver.GetProxyForURL(kQueryUrl, kPacUrl, &proxy_info); | 225 result = resolver.GetProxyForURL(kQueryUrl, kPacUrl, &proxy_info); |
226 EXPECT_EQ(net::ERR_FAILED, result); | 226 EXPECT_EQ(net::ERR_FAILED, result); |
227 | 227 |
228 // Load a good script once more. | 228 // Load a good script once more. |
229 InitWithScriptFromDisk(&resolver, "direct.js"); | 229 InitWithScriptFromDisk(&resolver, "direct.js"); |
230 result = resolver.GetProxyForURL(kQueryUrl, kPacUrl, &proxy_info); | 230 result = resolver.GetProxyForURL(kQueryUrl, kPacUrl, &proxy_info); |
231 EXPECT_EQ(net::OK, result); | 231 EXPECT_EQ(net::OK, result); |
232 } | 232 } |
| 233 |
OLD | NEW |