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

Unified Diff: components/autofill/core/browser/autofill_download_unittest.cc

Issue 22009003: [Autofill] Distinguish between native field types and potentially HTML field types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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: components/autofill/core/browser/autofill_download_unittest.cc
diff --git a/components/autofill/core/browser/autofill_download_unittest.cc b/components/autofill/core/browser/autofill_download_unittest.cc
index ed2c705e736cfaffea210c0ada64606cecc36d06..9035c9cdafa7d043e02b1bdf16a5a4b715923f08 100644
--- a/components/autofill/core/browser/autofill_download_unittest.cc
+++ b/components/autofill/core/browser/autofill_download_unittest.cc
@@ -204,10 +204,10 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
download_manager_.SetNegativeUploadRate(1.0);
// Request with id 1.
EXPECT_TRUE(download_manager_.StartUploadRequest(
- *(form_structures[0]), true, FieldTypeSet()));
+ *(form_structures[0]), true, ServerFieldTypeSet()));
// Request with id 2.
EXPECT_TRUE(download_manager_.StartUploadRequest(
- *(form_structures[1]), false, FieldTypeSet()));
+ *(form_structures[1]), false, ServerFieldTypeSet()));
const char *responses[] = {
"<autofillqueryresponse>"
@@ -272,9 +272,9 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
download_manager_.SetNegativeUploadRate(0.0);
// No actual requests for the next two calls, as we set upload rate to 0%.
EXPECT_FALSE(download_manager_.StartUploadRequest(
- *(form_structures[0]), true, FieldTypeSet()));
+ *(form_structures[0]), true, ServerFieldTypeSet()));
EXPECT_FALSE(download_manager_.StartUploadRequest(
- *(form_structures[1]), false, FieldTypeSet()));
+ *(form_structures[1]), false, ServerFieldTypeSet()));
fetcher = factory.GetFetcherByID(3);
EXPECT_EQ(NULL, fetcher);
@@ -315,7 +315,7 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
form_structures[0]->upload_required_ = UPLOAD_REQUIRED;
// Request with id 4.
EXPECT_TRUE(download_manager_.StartUploadRequest(
- *(form_structures[0]), true, FieldTypeSet()));
+ *(form_structures[0]), true, ServerFieldTypeSet()));
fetcher = factory.GetFetcherByID(4);
ASSERT_TRUE(fetcher);
fetcher->set_backoff_delay(TestTimeouts::action_max_timeout());
@@ -327,7 +327,7 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
// Upload requests should be ignored for the next 10 seconds.
EXPECT_FALSE(download_manager_.StartUploadRequest(
- *(form_structures[0]), true, FieldTypeSet()));
+ *(form_structures[0]), true, ServerFieldTypeSet()));
fetcher = factory.GetFetcherByID(5);
EXPECT_EQ(NULL, fetcher);
}
« no previous file with comments | « components/autofill/core/browser/autofill_download.cc ('k') | components/autofill/core/browser/autofill_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698