diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 01:11:15 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 01:11:15 +0000 |
commit | 56ed95aa44b76b41ba561237ab9c586830639b3b (patch) | |
tree | 2d621f21b57e29f5632928013488f3aab99f9fcc /content/test | |
parent | a5c6529a3be77f1c0c6e87917172d60323e97233 (diff) | |
download | chromium_src-56ed95aa44b76b41ba561237ab9c586830639b3b.zip chromium_src-56ed95aa44b76b41ba561237ab9c586830639b3b.tar.gz chromium_src-56ed95aa44b76b41ba561237ab9c586830639b3b.tar.bz2 |
Move URLFetcherFactory from content to net
BUG=118220
TEST=
TBR=jam@chromium.org,jhawkins@chromium.org,mnissler@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10438002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138956 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test')
-rw-r--r-- | content/test/test_url_fetcher_factory.cc | 4 | ||||
-rw-r--r-- | content/test/test_url_fetcher_factory.h | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/content/test/test_url_fetcher_factory.cc b/content/test/test_url_fetcher_factory.cc index d61b46d..00f9eda 100644 --- a/content/test/test_url_fetcher_factory.cc +++ b/content/test/test_url_fetcher_factory.cc @@ -17,7 +17,7 @@ #include "net/url_request/url_request_status.h" ScopedURLFetcherFactory::ScopedURLFetcherFactory( - content::URLFetcherFactory* factory) { + net::URLFetcherFactory* factory) { DCHECK(!URLFetcherImpl::factory()); URLFetcherImpl::set_factory(factory); } @@ -290,7 +290,7 @@ FakeURLFetcherFactory::FakeURLFetcherFactory() } FakeURLFetcherFactory::FakeURLFetcherFactory( - content::URLFetcherFactory* default_factory) + net::URLFetcherFactory* default_factory) : ScopedURLFetcherFactory(ALLOW_THIS_IN_INITIALIZER_LIST(this)), default_factory_(default_factory) { } diff --git a/content/test/test_url_fetcher_factory.h b/content/test/test_url_fetcher_factory.h index 86036fc..e508a35 100644 --- a/content/test/test_url_fetcher_factory.h +++ b/content/test/test_url_fetcher_factory.h @@ -12,16 +12,16 @@ #include <utility> #include "base/threading/non_thread_safe.h" -#include "content/public/common/url_fetcher_factory.h" #include "googleurl/src/gurl.h" #include "net/http/http_request_headers.h" +#include "net/url_request/url_fetcher_factory.h" #include "net/url_request/url_request_status.h" // Changes URLFetcher's Factory for the lifetime of the object. // Note that this scoper cannot be nested (to make it even harder to misuse). class ScopedURLFetcherFactory : public base::NonThreadSafe { public: - explicit ScopedURLFetcherFactory(content::URLFetcherFactory* factory); + explicit ScopedURLFetcherFactory(net::URLFetcherFactory* factory); virtual ~ScopedURLFetcherFactory(); private: @@ -180,7 +180,7 @@ class TestURLFetcher : public net::URLFetcher { // Simple URLFetcherFactory method that creates TestURLFetchers. All fetchers // are registered in a map by the id passed to the create method. -class TestURLFetcherFactory : public content::URLFetcherFactory, +class TestURLFetcherFactory : public net::URLFetcherFactory, public ScopedURLFetcherFactory { public: TestURLFetcherFactory(); @@ -234,13 +234,13 @@ class TestURLFetcherFactory : public content::URLFetcherFactory, // SomeService service; // service.Run(); // Will eventually request these two URLs. -class FakeURLFetcherFactory : public content::URLFetcherFactory, +class FakeURLFetcherFactory : public net::URLFetcherFactory, public ScopedURLFetcherFactory { public: FakeURLFetcherFactory(); // FakeURLFetcherFactory that will delegate creating URLFetcher for unknown // url to the given factory. - explicit FakeURLFetcherFactory(content::URLFetcherFactory* default_factory); + explicit FakeURLFetcherFactory(net::URLFetcherFactory* default_factory); virtual ~FakeURLFetcherFactory(); // If no fake response is set for the given URL this method will delegate the @@ -267,7 +267,7 @@ class FakeURLFetcherFactory : public content::URLFetcherFactory, private: typedef std::map<GURL, std::pair<std::string, bool> > FakeResponseMap; FakeResponseMap fake_responses_; - content::URLFetcherFactory* default_factory_; + net::URLFetcherFactory* default_factory_; DISALLOW_COPY_AND_ASSIGN(FakeURLFetcherFactory); }; @@ -276,7 +276,7 @@ class FakeURLFetcherFactory : public content::URLFetcherFactory, // URLFetcherImpl. It can be use in conjunction with a FakeURLFetcherFactory in // integration tests to control the behavior of some requests but execute // all the other ones. -class URLFetcherImplFactory : public content::URLFetcherFactory { +class URLFetcherImplFactory : public net::URLFetcherFactory { public: URLFetcherImplFactory(); virtual ~URLFetcherImplFactory(); |