Chromium Code Reviews| Index: chrome/browser/extensions/user_script_listener_unittest.cc |
| diff --git a/chrome/browser/extensions/user_script_listener_unittest.cc b/chrome/browser/extensions/user_script_listener_unittest.cc |
| index d78d9556d6385e426a448d3ff3f1c55ddb9ec8c5..260d513cb899e81bfaab548d42e5dc6537626809 100644 |
| --- a/chrome/browser/extensions/user_script_listener_unittest.cc |
| +++ b/chrome/browser/extensions/user_script_listener_unittest.cc |
| @@ -133,11 +133,12 @@ class UserScriptListenerTest |
| } |
| protected: |
| - TestURLRequest* StartTestRequest(net::URLRequest::Delegate* delegate, |
| - const std::string& url_string, |
| - TestURLRequestContext* context) { |
| + net::TestURLRequest* StartTestRequest(net::URLRequest::Delegate* delegate, |
| + const std::string& url_string, |
| + net::TestURLRequestContext* context) { |
| GURL url(url_string); |
| - TestURLRequest* request = new TestURLRequest(url, delegate, context); |
| + net::TestURLRequest* request = |
| + new net::TestURLRequest(url, delegate, context); |
| ResourceThrottle* throttle = |
| listener_->CreateResourceThrottle(url, ResourceType::MAIN_FRAME); |
| @@ -182,9 +183,9 @@ TEST_F(UserScriptListenerTest, DelayAndUpdate) { |
| LoadTestExtension(); |
| MessageLoop::current()->RunAllPending(); |
| - TestDelegate delegate; |
| - TestURLRequestContext context; |
| - scoped_ptr<TestURLRequest> request( |
| + net::TestDelegate delegate; |
| + net::TestURLRequestContext context; |
| + scoped_ptr<net::TestURLRequest> request( |
| StartTestRequest(&delegate, kMatchingUrl, &context)); |
| ASSERT_FALSE(request->is_pending()); |
| @@ -200,9 +201,9 @@ TEST_F(UserScriptListenerTest, DelayAndUnload) { |
| LoadTestExtension(); |
| MessageLoop::current()->RunAllPending(); |
| - TestDelegate delegate; |
| - TestURLRequestContext context; |
| - scoped_ptr<TestURLRequest> request( |
| + net::TestDelegate delegate; |
| + net::TestURLRequestContext context; |
| + scoped_ptr<net::TestURLRequest> request( |
| StartTestRequest(&delegate, kMatchingUrl, &context)); |
| ASSERT_FALSE(request->is_pending()); |
| @@ -222,9 +223,9 @@ TEST_F(UserScriptListenerTest, DelayAndUnload) { |
| } |
| TEST_F(UserScriptListenerTest, NoDelayNoExtension) { |
| - TestDelegate delegate; |
| - TestURLRequestContext context; |
| - scoped_ptr<TestURLRequest> request( |
| + net::TestDelegate delegate; |
| + net::TestURLRequestContext context; |
| + scoped_ptr<net::TestURLRequest> request( |
| StartTestRequest(&delegate, kMatchingUrl, &context)); |
| // The request should be started immediately. |
| @@ -238,9 +239,9 @@ TEST_F(UserScriptListenerTest, NoDelayNotMatching) { |
| LoadTestExtension(); |
| MessageLoop::current()->RunAllPending(); |
| - TestDelegate delegate; |
| - TestURLRequestContext context; |
| - scoped_ptr<TestURLRequest> request(StartTestRequest(&delegate, |
| + net::TestDelegate delegate; |
| + net::TestURLRequestContext context; |
| + scoped_ptr<net::TestURLRequest> request(StartTestRequest(&delegate, |
| kNotMatchingUrl, |
| &context)); |
|
wtc
2012/11/12 21:50:49
Adjust indentation.
jochen (gone - plz use gerrit)
2012/11/13 09:17:57
Done.
|
| @@ -268,9 +269,9 @@ TEST_F(UserScriptListenerTest, MultiProfile) { |
| content::Source<Profile>(&profile2), |
| content::Details<Extension>(extension.get())); |
| - TestDelegate delegate; |
| - TestURLRequestContext context; |
| - scoped_ptr<TestURLRequest> request( |
| + net::TestDelegate delegate; |
| + net::TestURLRequestContext context; |
| + scoped_ptr<net::TestURLRequest> request( |
| StartTestRequest(&delegate, kMatchingUrl, &context)); |
| ASSERT_FALSE(request->is_pending()); |
| @@ -299,11 +300,11 @@ TEST_F(UserScriptListenerTest, MultiProfile) { |
| TEST_F(UserScriptListenerTest, ResumeBeforeStart) { |
| LoadTestExtension(); |
| MessageLoop::current()->RunAllPending(); |
| - TestDelegate delegate; |
| - TestURLRequestContext context; |
| + net::TestDelegate delegate; |
| + net::TestURLRequestContext context; |
| GURL url(kMatchingUrl); |
| - scoped_ptr<TestURLRequest> request( |
| - new TestURLRequest(url, &delegate, &context)); |
| + scoped_ptr<net::TestURLRequest> request( |
| + new net::TestURLRequest(url, &delegate, &context)); |
| ResourceThrottle* throttle = |
| listener_->CreateResourceThrottle(url, ResourceType::MAIN_FRAME); |