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

Unified Diff: net/url_request/test_url_fetcher_factory.cc

Issue 11464028: Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, post first try if online, more tests Created 8 years 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
Index: net/url_request/test_url_fetcher_factory.cc
diff --git a/net/url_request/test_url_fetcher_factory.cc b/net/url_request/test_url_fetcher_factory.cc
index 967b810bd3322f2669a9f69e1d95f415e5d929e0..08ba483b23a01d29811999120a0c365104a9f561 100644
--- a/net/url_request/test_url_fetcher_factory.cc
+++ b/net/url_request/test_url_fetcher_factory.cc
@@ -114,11 +114,11 @@ void TestURLFetcher::SetStopOnRedirect(bool stop_on_redirect) {
void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) {
}
-void TestURLFetcher::SetMaxRetries(int max_retries) {
+void TestURLFetcher::SetMaxRetriesOn5xx(int max_retries) {
fake_max_retries_ = max_retries;
}
-int TestURLFetcher::GetMaxRetries() const {
+int TestURLFetcher::GetMaxRetriesOn5xx() const {
return fake_max_retries_;
}
@@ -126,6 +126,9 @@ base::TimeDelta TestURLFetcher::GetBackoffDelay() const {
return fake_backoff_delay_;
}
+void TestURLFetcher::SetAutomaticallyRetryOnNetworkChanges(int max_retries) {
+}
+
void TestURLFetcher::SaveResponseToFileAtPath(
const FilePath& file_path,
scoped_refptr<base::TaskRunner> file_task_runner) {

Powered by Google App Engine
This is Rietveld 408576698