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

Unified Diff: chrome/browser/autofill/select_control_handler_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/select_control_handler.cc ('k') | chrome/common/autofill_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/select_control_handler_unittest.cc
diff --git a/chrome/browser/autofill/select_control_handler_unittest.cc b/chrome/browser/autofill/select_control_handler_unittest.cc
index 7d74ab6549e546e031e1b79d2558d410d1071b0e..603c66ab37f6695e9ca88ac131f1a1cb699ab05a 100644
--- a/chrome/browser/autofill/select_control_handler_unittest.cc
+++ b/chrome/browser/autofill/select_control_handler_unittest.cc
@@ -22,7 +22,7 @@ TEST_F(SelectControlHandlerTest, CreditCardMonthExact) {
options[i] = ASCIIToUTF16(kMonthsNumeric[i]);
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = options;
field.option_contents = options;
@@ -42,7 +42,7 @@ TEST_F(SelectControlHandlerTest, CreditCardMonthAbbreviated) {
options[i] = ASCIIToUTF16(kMonthsAbbreviated[i]);
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = options;
field.option_contents = options;
@@ -62,7 +62,7 @@ TEST_F(SelectControlHandlerTest, CreditCardMonthFull) {
options[i] = ASCIIToUTF16(kMonthsFull[i]);
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = options;
field.option_contents = options;
@@ -81,7 +81,7 @@ TEST_F(SelectControlHandlerTest, CreditCardMonthNumeric) {
options[i] = ASCIIToUTF16(kMonthsNumeric[i]);
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = options;
field.option_contents = options;
@@ -100,7 +100,7 @@ TEST_F(SelectControlHandlerTest, AddressCountryFull) {
options[i] = ASCIIToUTF16(kCountries[i]);
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = options;
field.option_contents = options;
@@ -119,7 +119,7 @@ TEST_F(SelectControlHandlerTest, AddressCountryAbbrev) {
options[i] = ASCIIToUTF16(kCountries[i]);
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = options;
field.option_contents = options;
@@ -138,7 +138,7 @@ TEST_F(SelectControlHandlerTest, AddressStateFull) {
options[i] = ASCIIToUTF16(kStates[i]);
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = options;
field.option_contents = options;
@@ -157,7 +157,7 @@ TEST_F(SelectControlHandlerTest, AddressStateAbbrev) {
options[i] = ASCIIToUTF16(kStates[i]);
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = options;
field.option_contents = options;
@@ -179,7 +179,7 @@ TEST_F(SelectControlHandlerTest, FillByValue) {
}
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = values;
field.option_contents = contents;
@@ -201,7 +201,7 @@ TEST_F(SelectControlHandlerTest, FillByContents) {
}
FormFieldData field;
- field.form_control_type = ASCIIToUTF16("select-one");
+ field.form_control_type = "select-one";
field.option_values = values;
field.option_contents = contents;
« no previous file with comments | « chrome/browser/autofill/select_control_handler.cc ('k') | chrome/common/autofill_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698