| Index: chrome/browser/sync/glue/http_bridge_unittest.cc
|
| diff --git a/chrome/browser/sync/glue/http_bridge_unittest.cc b/chrome/browser/sync/glue/http_bridge_unittest.cc
|
| index 600e57065766bbc629367e314639548ee3858e11..88cd775a24cab7f757e4f14f00c5b76b59cd9a69 100644
|
| --- a/chrome/browser/sync/glue/http_bridge_unittest.cc
|
| +++ b/chrome/browser/sync/glue/http_bridge_unittest.cc
|
| @@ -7,7 +7,8 @@
|
| #include "chrome/browser/browser_thread.h"
|
| #include "chrome/browser/sync/glue/http_bridge.h"
|
| #include "chrome/common/net/test_url_fetcher_factory.h"
|
| -#include "net/url_request/url_request_unittest.h"
|
| +#include "chrome/test/test_url_request_context_getter.h"
|
| +#include "net/url_request/url_request_test_util.h"
|
| #include "net/test/test_server.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -18,24 +19,6 @@ namespace {
|
| const FilePath::CharType kDocRoot[] = FILE_PATH_LITERAL("chrome/test/data");
|
| }
|
|
|
| -// Lazy getter for TestURLRequestContext instances.
|
| -class TestURLRequestContextGetter : public URLRequestContextGetter {
|
| - public:
|
| - virtual net::URLRequestContext* GetURLRequestContext() {
|
| - if (!context_)
|
| - context_ = new TestURLRequestContext;
|
| - return context_;
|
| - }
|
| - virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() const {
|
| - return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
|
| - }
|
| -
|
| - private:
|
| - ~TestURLRequestContextGetter() {}
|
| -
|
| - scoped_refptr<net::URLRequestContext> context_;
|
| -};
|
| -
|
| class HttpBridgeTest : public testing::Test {
|
| public:
|
| HttpBridgeTest()
|
|
|