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

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

Issue 10704116: Switch to TimeDelta interfaces for TestTimeouts in autofill unit test. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_download_unittest.cc
diff --git a/chrome/browser/autofill/autofill_download_unittest.cc b/chrome/browser/autofill/autofill_download_unittest.cc
index c3519704cf3146c99ae16d6b5d282be83b2c2101..1b2169d6fe3105ecf794aa6d4aa6fd7df222af44 100644
--- a/chrome/browser/autofill/autofill_download_unittest.cc
+++ b/chrome/browser/autofill/autofill_download_unittest.cc
@@ -310,8 +310,7 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
mock_metric_logger));
fetcher = factory.GetFetcherByID(3);
ASSERT_TRUE(fetcher);
- fetcher->set_backoff_delay(
- base::TimeDelta::FromMilliseconds(TestTimeouts::action_max_timeout_ms()));
+ fetcher->set_backoff_delay(TestTimeouts::action_max_timeout());
FakeOnURLFetchComplete(fetcher, 500, std::string(responses[0]));
EXPECT_EQ(AutofillDownloadTest::REQUEST_QUERY_FAILED,
@@ -336,8 +335,7 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
*(form_structures[0]), true, FieldTypeSet()));
fetcher = factory.GetFetcherByID(4);
ASSERT_TRUE(fetcher);
- fetcher->set_backoff_delay(
- base::TimeDelta::FromMilliseconds(TestTimeouts::action_max_timeout_ms()));
+ fetcher->set_backoff_delay(TestTimeouts::action_max_timeout());
FakeOnURLFetchComplete(fetcher, 503, std::string(responses[2]));
EXPECT_EQ(AutofillDownloadTest::REQUEST_UPLOAD_FAILED,
responses_.front().type_of_response);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698