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

Unified Diff: chrome/browser/autofill/autofill_download_unittest.cc

Issue 8395038: Make test URLFetcher implementations not derive from the URLFetcher implementation, since we want... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: move factory to its own file and remove Create function from URLFetcher impl Created 9 years, 2 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 | chrome/browser/chromeos/login/mock_url_fetchers.h » ('j') | content/common/net/url_fetcher.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_download_unittest.cc
===================================================================
--- chrome/browser/autofill/autofill_download_unittest.cc (revision 107268)
+++ chrome/browser/autofill/autofill_download_unittest.cc (working copy)
@@ -312,7 +312,7 @@
mock_metric_logger));
fetcher = factory.GetFetcherByID(3);
ASSERT_TRUE(fetcher);
- fetcher->SetBackoffDelayForTesting(
+ fetcher->set_backoff_delay(
base::TimeDelta::FromMilliseconds(TestTimeouts::action_max_timeout_ms()));
FakeOnURLFetchComplete(fetcher, 500, std::string(responses[0]));
@@ -338,7 +338,7 @@
*(form_structures[0]), true, FieldTypeSet()));
fetcher = factory.GetFetcherByID(4);
ASSERT_TRUE(fetcher);
- fetcher->SetBackoffDelayForTesting(
+ fetcher->set_backoff_delay(
base::TimeDelta::FromMilliseconds(TestTimeouts::action_max_timeout_ms()));
FakeOnURLFetchComplete(fetcher, 503, std::string(responses[2]));
EXPECT_EQ(AutofillDownloadTest::REQUEST_UPLOAD_FAILED,
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/mock_url_fetchers.h » ('j') | content/common/net/url_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698