| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/test/test_url_request_context_getter.h" | 5 #include "chrome/test/base/test_url_request_context_getter.h" |
| 6 | 6 |
| 7 #include "content/browser/browser_thread.h" | 7 #include "content/browser/browser_thread.h" |
| 8 #include "net/url_request/url_request_test_util.h" | 8 #include "net/url_request/url_request_test_util.h" |
| 9 | 9 |
| 10 TestURLRequestContextGetter::TestURLRequestContextGetter() {} | 10 TestURLRequestContextGetter::TestURLRequestContextGetter() {} |
| 11 | 11 |
| 12 TestURLRequestContextGetter::~TestURLRequestContextGetter() {} | 12 TestURLRequestContextGetter::~TestURLRequestContextGetter() {} |
| 13 | 13 |
| 14 net::URLRequestContext* TestURLRequestContextGetter::GetURLRequestContext() { | 14 net::URLRequestContext* TestURLRequestContextGetter::GetURLRequestContext() { |
| 15 if (!context_) | 15 if (!context_) |
| 16 context_ = new TestURLRequestContext(); | 16 context_ = new TestURLRequestContext(); |
| 17 return context_.get(); | 17 return context_.get(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 scoped_refptr<base::MessageLoopProxy> | 20 scoped_refptr<base::MessageLoopProxy> |
| 21 TestURLRequestContextGetter::GetIOMessageLoopProxy() const { | 21 TestURLRequestContextGetter::GetIOMessageLoopProxy() const { |
| 22 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 22 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); |
| 23 } | 23 } |
| OLD | NEW |