| 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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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" |
| 25 #include "net/url_request/file_protocol_handler.h" | 25 #include "net/url_request/file_protocol_handler.h" |
| 26 #include "net/url_request/url_request_context_storage.h" | 26 #include "net/url_request/url_request_context_storage.h" |
| 27 #include "net/url_request/url_request_file_job.h" | 27 #include "net/url_request/url_request_file_job.h" |
| 28 #include "net/url_request/url_request_job_factory_impl.h" | 28 #include "net/url_request/url_request_job_factory_impl.h" |
| 29 #include "net/url_request/url_request_test_util.h" | 29 #include "net/url_request/url_request_test_util.h" |
| 30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
| 31 #include "testing/platform_test.h" | 31 #include "testing/platform_test.h" |
| 32 | 32 |
| 33 using base::ASCIIToUTF16; |
| 34 |
| 33 namespace net { | 35 namespace net { |
| 34 | 36 |
| 35 // TODO(eroman): | 37 // TODO(eroman): |
| 36 // - Test canceling an outstanding request. | 38 // - Test canceling an outstanding request. |
| 37 // - Test deleting ProxyScriptFetcher while a request is in progress. | 39 // - Test deleting ProxyScriptFetcher while a request is in progress. |
| 38 | 40 |
| 39 namespace { | 41 namespace { |
| 40 | 42 |
| 41 const base::FilePath::CharType kDocRoot[] = | 43 const base::FilePath::CharType kDocRoot[] = |
| 42 FILE_PATH_LITERAL("net/data/proxy_script_fetcher_unittest"); | 44 FILE_PATH_LITERAL("net/data/proxy_script_fetcher_unittest"); |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 { | 475 { |
| 474 GURL url(kEncodedUrlBroken); | 476 GURL url(kEncodedUrlBroken); |
| 475 base::string16 text; | 477 base::string16 text; |
| 476 TestCompletionCallback callback; | 478 TestCompletionCallback callback; |
| 477 int result = pac_fetcher.Fetch(url, &text, callback.callback()); | 479 int result = pac_fetcher.Fetch(url, &text, callback.callback()); |
| 478 EXPECT_EQ(ERR_FAILED, result); | 480 EXPECT_EQ(ERR_FAILED, result); |
| 479 } | 481 } |
| 480 } | 482 } |
| 481 | 483 |
| 482 } // namespace net | 484 } // namespace net |
| OLD | NEW |