From 4473860ddb85d92fb2fda427f4dabd3415c69c43 Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Fri, 2 Mar 2012 22:56:01 +0000 Subject: Move TestURLRequestContextGetter to url_request_test_util.{h,cc} Make everything use this instead of rolling their own. BUG=113723 TEST= Review URL: https://chromiumcodereview.appspot.com/9562037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124758 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/sync/notifier/invalidation_notifier_unittest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/sync/notifier/invalidation_notifier_unittest.cc') diff --git a/chrome/browser/sync/notifier/invalidation_notifier_unittest.cc b/chrome/browser/sync/notifier/invalidation_notifier_unittest.cc index 93b123a..64f206c 100644 --- a/chrome/browser/sync/notifier/invalidation_notifier_unittest.cc +++ b/chrome/browser/sync/notifier/invalidation_notifier_unittest.cc @@ -11,12 +11,12 @@ #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/model_type_payload_map.h" #include "chrome/browser/sync/util/weak_handle.h" -#include "chrome/test/base/test_url_request_context_getter.h" #include "content/test/test_browser_thread.h" #include "jingle/notifier/base/fake_base_task.h" #include "jingle/notifier/base/notifier_options.h" #include "net/base/cert_verifier.h" #include "net/base/host_resolver.h" +#include "net/url_request/url_request_test_util.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" @@ -37,7 +37,8 @@ class InvalidationNotifierTest : public testing::Test { notifier::NotifierOptions notifier_options; // Note: URLRequestContextGetters are ref-counted. notifier_options.request_context_getter = - new TestURLRequestContextGetter(); + new TestURLRequestContextGetter( + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); invalidation_notifier_.reset( new InvalidationNotifier( notifier_options, -- cgit v1.1