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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "net/base/filename_util.h" |
13 #include "net/base/load_flags.h" | 14 #include "net/base/load_flags.h" |
14 #include "net/base/net_util.h" | |
15 #include "net/base/test_completion_callback.h" | 15 #include "net/base/test_completion_callback.h" |
16 #include "net/cert/mock_cert_verifier.h" | 16 #include "net/cert/mock_cert_verifier.h" |
17 #include "net/disk_cache/disk_cache.h" | 17 #include "net/disk_cache/disk_cache.h" |
18 #include "net/dns/mock_host_resolver.h" | 18 #include "net/dns/mock_host_resolver.h" |
19 #include "net/http/http_cache.h" | 19 #include "net/http/http_cache.h" |
20 #include "net/http/http_network_session.h" | 20 #include "net/http/http_network_session.h" |
21 #include "net/http/http_server_properties_impl.h" | 21 #include "net/http/http_server_properties_impl.h" |
22 #include "net/http/transport_security_state.h" | 22 #include "net/http/transport_security_state.h" |
23 #include "net/ssl/ssl_config_service_defaults.h" | 23 #include "net/ssl/ssl_config_service_defaults.h" |
24 #include "net/test/spawned_test_server/spawned_test_server.h" | 24 #include "net/test/spawned_test_server/spawned_test_server.h" |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 { | 471 { |
472 GURL url(kEncodedUrlBroken); | 472 GURL url(kEncodedUrlBroken); |
473 base::string16 text; | 473 base::string16 text; |
474 TestCompletionCallback callback; | 474 TestCompletionCallback callback; |
475 int result = pac_fetcher.Fetch(url, &text, callback.callback()); | 475 int result = pac_fetcher.Fetch(url, &text, callback.callback()); |
476 EXPECT_EQ(ERR_FAILED, result); | 476 EXPECT_EQ(ERR_FAILED, result); |
477 } | 477 } |
478 } | 478 } |
479 | 479 |
480 } // namespace net | 480 } // namespace net |
OLD | NEW |