Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: net/url_request/test_url_fetcher_factory.h

Issue 12211076: Refactored FakeURLFetcher to make it more flexible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lint issue Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/url_request/test_url_fetcher_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/test_url_fetcher_factory.h
diff --git a/net/url_request/test_url_fetcher_factory.h b/net/url_request/test_url_fetcher_factory.h
index d7f0d305481c7e5588c96f8ffa907ea1b2a1ffab..8af5c4b9b29cd34865b8c24697b96bc8113b7c84 100644
--- a/net/url_request/test_url_fetcher_factory.h
+++ b/net/url_request/test_url_fetcher_factory.h
@@ -317,6 +317,13 @@ class FakeURLFetcherFactory : public URLFetcherFactory,
// SetFakeResponse().
void ClearFakeResponses();
+ protected:
+ // For use when subclassing FakeURLFetcherFactory.
+ // If no fake response is set, return NULL.
+ virtual TestURLFetcher* CreateFakeURLFetcher(const GURL& URL,
akalin 2013/02/08 07:47:35 I'm confused by the need for this. FakeURLFetcher
Noam Samuel (WRONG ACCOUNT) 2013/02/08 16:27:10 The main scenario I'm trying to support is the abi
noelutz 2013/02/08 18:21:40 I don't have a strong opinion here but I would als
Noam Samuel (WRONG ACCOUNT) 2013/02/08 18:58:44 Not sure how that would work. The FakeURLFetcherFa
+ URLFetcher::RequestType request_type,
+ URLFetcherDelegate* d);
+
private:
typedef std::map<GURL, std::pair<std::string, bool> > FakeResponseMap;
FakeResponseMap fake_responses_;
« no previous file with comments | « no previous file | net/url_request/test_url_fetcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698