| Index: net/proxy/proxy_script_fetcher_impl_unittest.cc
|
| diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc
|
| index 5fc8099df953eec2a225be57dca0132b6eaa231e..418cf7ea07a739e656658319e922f5a237821ef2 100644
|
| --- a/net/proxy/proxy_script_fetcher_impl_unittest.cc
|
| +++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc
|
| @@ -21,6 +21,7 @@
|
| #include "net/http/http_network_session.h"
|
| #include "net/http/http_server_properties_impl.h"
|
| #include "net/test/test_server.h"
|
| +#include "net/url_request/file_protocol_handler.h"
|
| #include "net/url_request/url_request_context_storage.h"
|
| #include "net/url_request/url_request_file_job.h"
|
| #include "net/url_request/url_request_job_factory_impl.h"
|
| @@ -220,6 +221,10 @@ class ProxyScriptFetcherImplTest : public PlatformTest {
|
| };
|
|
|
| TEST_F(ProxyScriptFetcherImplTest, FileUrl) {
|
| + URLRequestJobFactory job_factory;
|
| + job_factory.SetProtocolHandler("file", new FileProtocolHandler());
|
| + context_.set_job_factory(&job_factory);
|
| +
|
| ProxyScriptFetcherImpl pac_fetcher(&context_);
|
|
|
| { // Fetch a non-existent file.
|
| @@ -353,6 +358,10 @@ TEST_F(ProxyScriptFetcherImplTest, NoCache) {
|
| TEST_F(ProxyScriptFetcherImplTest, TooLarge) {
|
| ASSERT_TRUE(test_server_.Start());
|
|
|
| + URLRequestJobFactory job_factory;
|
| + job_factory.SetProtocolHandler("file", new FileProtocolHandler());
|
| + context_.set_job_factory(&job_factory);
|
| +
|
| ProxyScriptFetcherImpl pac_fetcher(&context_);
|
|
|
| // Set the maximum response size to 50 bytes.
|
|
|