Chromium Code Reviews| Index: net/url_request/url_request_job_factory_unittest.cc |
| diff --git a/net/url_request/url_request_job_factory_unittest.cc b/net/url_request/url_request_job_factory_unittest.cc |
| index a87c7173f511a68b4522e43d71b8028509c3e03c..251e0d1ce5338cccc50eae0219b9ea5e15137ca4 100644 |
| --- a/net/url_request/url_request_job_factory_unittest.cc |
| +++ b/net/url_request/url_request_job_factory_unittest.cc |
| @@ -2,7 +2,7 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#include "net/url_request/url_request_job_factory.h" |
| +#include "net/url_request/url_request_job_factory_impl.h" |
|
mmenke
2012/08/23 15:00:21
Think this file should now be called url_request_j
shalev
2012/08/23 15:15:46
Done.
|
| #include "base/bind.h" |
| #include "base/memory/weak_ptr.h" |
| @@ -100,7 +100,7 @@ TEST(URLRequestJobFactoryTest, NoProtocolHandler) { |
| TEST(URLRequestJobFactoryTest, BasicProtocolHandler) { |
| TestDelegate delegate; |
| - URLRequestJobFactory job_factory; |
| + URLRequestJobFactoryImpl job_factory; |
| TestURLRequestContext request_context; |
| request_context.set_job_factory(&job_factory); |
| job_factory.SetProtocolHandler("foo", new DummyProtocolHandler); |
| @@ -113,7 +113,7 @@ TEST(URLRequestJobFactoryTest, BasicProtocolHandler) { |
| } |
| TEST(URLRequestJobFactoryTest, DeleteProtocolHandler) { |
| - URLRequestJobFactory job_factory; |
| + URLRequestJobFactoryImpl job_factory; |
| TestURLRequestContext request_context; |
| request_context.set_job_factory(&job_factory); |
| job_factory.SetProtocolHandler("foo", new DummyProtocolHandler); |
| @@ -122,7 +122,7 @@ TEST(URLRequestJobFactoryTest, DeleteProtocolHandler) { |
| TEST(URLRequestJobFactoryTest, BasicInterceptor) { |
| TestDelegate delegate; |
| - URLRequestJobFactory job_factory; |
| + URLRequestJobFactoryImpl job_factory; |
| TestURLRequestContext request_context; |
| request_context.set_job_factory(&job_factory); |
| job_factory.AddInterceptor(new DummyInterceptor); |
| @@ -136,7 +136,7 @@ TEST(URLRequestJobFactoryTest, BasicInterceptor) { |
| TEST(URLRequestJobFactoryTest, InterceptorNeedsValidSchemeStill) { |
| TestDelegate delegate; |
| - URLRequestJobFactory job_factory; |
| + URLRequestJobFactoryImpl job_factory; |
| TestURLRequestContext request_context; |
| request_context.set_job_factory(&job_factory); |
| job_factory.AddInterceptor(new DummyInterceptor); |
| @@ -150,7 +150,7 @@ TEST(URLRequestJobFactoryTest, InterceptorNeedsValidSchemeStill) { |
| TEST(URLRequestJobFactoryTest, InterceptorOverridesProtocolHandler) { |
| TestDelegate delegate; |
| - URLRequestJobFactory job_factory; |
| + URLRequestJobFactoryImpl job_factory; |
| TestURLRequestContext request_context; |
| request_context.set_job_factory(&job_factory); |
| job_factory.SetProtocolHandler("foo", new DummyProtocolHandler); |
| @@ -165,7 +165,7 @@ TEST(URLRequestJobFactoryTest, InterceptorOverridesProtocolHandler) { |
| TEST(URLRequestJobFactoryTest, InterceptorDoesntInterceptUnknownProtocols) { |
| TestDelegate delegate; |
| - URLRequestJobFactory job_factory; |
| + URLRequestJobFactoryImpl job_factory; |
| TestURLRequestContext request_context; |
| request_context.set_job_factory(&job_factory); |
| DummyInterceptor* interceptor = new DummyInterceptor; |
| @@ -179,7 +179,7 @@ TEST(URLRequestJobFactoryTest, InterceptorDoesntInterceptUnknownProtocols) { |
| TEST(URLRequestJobFactoryTest, InterceptorInterceptsHandledUnknownProtocols) { |
| TestDelegate delegate; |
| - URLRequestJobFactory job_factory; |
| + URLRequestJobFactoryImpl job_factory; |
| TestURLRequestContext request_context; |
| request_context.set_job_factory(&job_factory); |
| DummyInterceptor* interceptor = new DummyInterceptor; |
| @@ -196,7 +196,7 @@ TEST(URLRequestJobFactoryTest, InterceptorInterceptsHandledUnknownProtocols) { |
| TEST(URLRequestJobFactoryTest, InterceptorAffectsIsHandledProtocol) { |
| DummyInterceptor* interceptor = new DummyInterceptor; |
| - URLRequestJobFactory job_factory; |
| + URLRequestJobFactoryImpl job_factory; |
| job_factory.AddInterceptor(interceptor); |
| EXPECT_FALSE(interceptor->WillHandleProtocol("anything")); |
| EXPECT_FALSE(job_factory.IsHandledProtocol("anything")); |