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

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

Issue 11198048: [Autofill] Update the autocomplete types implementation to match the current HTML spec. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update AutofillFieldTest expectations Created 8 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 | « chrome/browser/autofill/autofill_common_test.cc ('k') | chrome/browser/autofill/autofill_field.h » ('j') | 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 51f3740328e184c2c90e04a567162c67d44cf055..aaaa66b4089396103e3e4b97197972d66cbef8f1 100644
--- a/chrome/browser/autofill/autofill_download_unittest.cc
+++ b/chrome/browser/autofill/autofill_download_unittest.cc
@@ -146,37 +146,37 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
FormFieldData field;
field.label = ASCIIToUTF16("username");
field.name = ASCIIToUTF16("username");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
field.label = ASCIIToUTF16("First Name");
field.name = ASCIIToUTF16("firstname");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
field.label = ASCIIToUTF16("Last Name");
field.name = ASCIIToUTF16("lastname");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
field.label = ASCIIToUTF16("email");
field.name = ASCIIToUTF16("email");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
field.label = ASCIIToUTF16("email2");
field.name = ASCIIToUTF16("email2");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
field.label = ASCIIToUTF16("password");
field.name = ASCIIToUTF16("password");
- field.form_control_type = ASCIIToUTF16("password");
+ field.form_control_type = "password";
form.fields.push_back(field);
field.label = string16();
field.name = ASCIIToUTF16("Submit");
- field.form_control_type = ASCIIToUTF16("submit");
+ field.form_control_type = "submit";
form.fields.push_back(field);
FormStructure *form_structure = new FormStructure(form);
@@ -187,22 +187,22 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
field.label = ASCIIToUTF16("address");
field.name = ASCIIToUTF16("address");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
field.label = ASCIIToUTF16("address2");
field.name = ASCIIToUTF16("address2");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
field.label = ASCIIToUTF16("city");
field.name = ASCIIToUTF16("city");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
field.label = string16();
field.name = ASCIIToUTF16("Submit");
- field.form_control_type = ASCIIToUTF16("submit");
+ field.form_control_type = "submit";
form.fields.push_back(field);
form_structure = new FormStructure(form);
@@ -296,7 +296,7 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
// Modify form structures to miss the cache.
field.label = ASCIIToUTF16("Address line 2");
field.name = ASCIIToUTF16("address2");
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
form.fields.push_back(field);
form_structure = new FormStructure(form);
form_structures.push_back(form_structure);
@@ -356,7 +356,7 @@ TEST_F(AutofillDownloadTest, CacheQueryTest) {
form.method = ASCIIToUTF16("post");
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("text");
+ field.form_control_type = "text";
field.label = ASCIIToUTF16("username");
field.name = ASCIIToUTF16("username");
« no previous file with comments | « chrome/browser/autofill/autofill_common_test.cc ('k') | chrome/browser/autofill/autofill_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698