diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-02 22:56:01 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-02 22:56:01 +0000 |
commit | 4473860ddb85d92fb2fda427f4dabd3415c69c43 (patch) | |
tree | 7d77e45863b029707bb7b78afe2dd8e8fa5f7add /chrome/browser/component_updater | |
parent | 533e8fe4288e72f87d50479580665b5ec68a8e1b (diff) | |
download | chromium_src-4473860ddb85d92fb2fda427f4dabd3415c69c43.zip chromium_src-4473860ddb85d92fb2fda427f4dabd3415c69c43.tar.gz chromium_src-4473860ddb85d92fb2fda427f4dabd3415c69c43.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/component_updater')
-rw-r--r-- | chrome/browser/component_updater/component_updater_service_unittest.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/component_updater/component_updater_service_unittest.cc b/chrome/browser/component_updater/component_updater_service_unittest.cc index 89fce47..fd38931 100644 --- a/chrome/browser/component_updater/component_updater_service_unittest.cc +++ b/chrome/browser/component_updater/component_updater_service_unittest.cc @@ -14,16 +14,14 @@ #include "chrome/browser/component_updater/component_updater_interceptor.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/chrome_paths.h" -#include "chrome/test/base/test_url_request_context_getter.h" #include "content/public/browser/notification_observer.h" #include "content/public/browser/notification_service.h" #include "content/test/test_browser_thread.h" #include "content/public/common/url_fetcher.h" #include "content/test/test_notification_tracker.h" - #include "googleurl/src/gurl.h" #include "libxml/globals.h" - +#include "net/url_request/url_request_test_util.h" #include "testing/gtest/include/gtest/gtest.h" using content::BrowserThread; @@ -65,7 +63,8 @@ class TestConfigurator : public ComponentUpdateService::Configurator { virtual size_t UrlSizeLimit() OVERRIDE { return 256; } virtual net::URLRequestContextGetter* RequestContext() OVERRIDE { - return new TestURLRequestContextGetter(); + return new TestURLRequestContextGetter( + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); } // Don't use the utility process to decode files. |