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

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

Issue 6213002: Propagate correct data to the Toolbar servers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
Index: chrome/browser/autofill/autofill_download_unittest.cc
===================================================================
--- chrome/browser/autofill/autofill_download_unittest.cc (revision 71419)
+++ chrome/browser/autofill/autofill_download_unittest.cc (working copy)
@@ -195,10 +195,10 @@
helper.download_manager.SetNegativeUploadRate(1.0);
// Request with id 1.
EXPECT_TRUE(helper.download_manager.StartUploadRequest(*(form_structures[0]),
- true));
+ true, ""));
// Request with id 2.
EXPECT_TRUE(helper.download_manager.StartUploadRequest(*(form_structures[1]),
- false));
+ false, ""));
const char *responses[] = {
"<autofillqueryresponse>"
@@ -270,9 +270,9 @@
helper.download_manager.SetNegativeUploadRate(0.0);
// No actual requests for the next two calls, as we set upload rate to 0%.
EXPECT_FALSE(helper.download_manager.StartUploadRequest(*(form_structures[0]),
- true));
+ true, ""));
EXPECT_FALSE(helper.download_manager.StartUploadRequest(*(form_structures[1]),
- false));
+ false, ""));
fetcher = factory.GetFetcherByID(3);
EXPECT_EQ(NULL, fetcher);
@@ -306,7 +306,7 @@
helper.download_manager.SetPositiveUploadRate(1.0);
// Request with id 4.
EXPECT_TRUE(helper.download_manager.StartUploadRequest(*(form_structures[0]),
- true));
+ true, ""));
fetcher = factory.GetFetcherByID(4);
ASSERT_TRUE(fetcher);
fetcher->set_backoff_delay(
@@ -322,7 +322,7 @@
// Upload requests should be ignored for the next 10 seconds.
EXPECT_FALSE(helper.download_manager.StartUploadRequest(*(form_structures[0]),
- true));
+ true, ""));
fetcher = factory.GetFetcherByID(5);
EXPECT_EQ(NULL, fetcher);

Powered by Google App Engine
This is Rietveld 408576698