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

Unified Diff: components/autofill/browser/form_structure_unittest.cc

Issue 13973004: Convert string16 -> base::string16 in components/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/browser/form_structure_unittest.cc
diff --git a/components/autofill/browser/form_structure_unittest.cc b/components/autofill/browser/form_structure_unittest.cc
index 5f7b998e1cdab614a5b3ccfbc51943bac9829096..ad79a14f789f493ee8f401163cad85fa56e6ce57 100644
--- a/components/autofill/browser/form_structure_unittest.cc
+++ b/components/autofill/browser/form_structure_unittest.cc
@@ -77,7 +77,7 @@ TEST(FormStructureTest, FieldCount) {
field.form_control_type = "password";
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);
@@ -119,7 +119,7 @@ TEST(FormStructureTest, AutofillCount) {
field.form_control_type = "select-one";
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);
@@ -183,7 +183,7 @@ TEST(FormStructureTest, IsAutofillable) {
field.form_control_type = "password";
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);
@@ -376,7 +376,7 @@ TEST(FormStructureTest, HeuristicsContactInfo) {
field.name = ASCIIToUTF16("zipcode");
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);
@@ -417,17 +417,17 @@ TEST(FormStructureTest, HeuristicsAutocompleteAttribute) {
FormFieldData field;
field.form_control_type = "text";
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("field1");
field.autocomplete_attribute = "given-name";
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("field2");
field.autocomplete_attribute = "family-name";
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("field3");
field.autocomplete_attribute = "email";
form.fields.push_back(field);
@@ -455,17 +455,17 @@ TEST(FormStructureTest, HeuristicsAutocompleteAttributePhoneTypes) {
FormFieldData field;
field.form_control_type = "text";
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("field1");
field.autocomplete_attribute = "tel-local";
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("field2");
field.autocomplete_attribute = "tel-local-prefix";
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("field3");
field.autocomplete_attribute = "tel-local-suffix";
form.fields.push_back(field);
@@ -702,10 +702,10 @@ TEST(FormStructureTest, HeuristicsDontOverrideAutocompleteAttributeSections) {
field.name = ASCIIToUTF16("one");
field.autocomplete_attribute = "street-address";
form.fields.push_back(field);
- field.name = string16();
+ field.name = base::string16();
field.autocomplete_attribute = "section-foo email";
form.fields.push_back(field);
- field.name = string16();
+ field.name = base::string16();
field.autocomplete_attribute = "name";
form.fields.push_back(field);
field.name = ASCIIToUTF16("two");
@@ -772,7 +772,7 @@ TEST(FormStructureTest, HeuristicsSample8) {
field.name = ASCIIToUTF16("BillTo.Phone");
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);
@@ -839,7 +839,7 @@ TEST(FormStructureTest, HeuristicsSample6) {
field.name = ASCIIToUTF16("Home.PostalCode");
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.value = ASCIIToUTF16("continue");
field.form_control_type = "submit";
@@ -879,34 +879,34 @@ TEST(FormStructureTest, HeuristicsLabelsOnly) {
field.form_control_type = "text";
field.label = ASCIIToUTF16("First Name");
- field.name = string16();
+ field.name = base::string16();
form.fields.push_back(field);
field.label = ASCIIToUTF16("Last Name");
- field.name = string16();
+ field.name = base::string16();
form.fields.push_back(field);
field.label = ASCIIToUTF16("Email");
- field.name = string16();
+ field.name = base::string16();
form.fields.push_back(field);
field.label = ASCIIToUTF16("Phone");
- field.name = string16();
+ field.name = base::string16();
form.fields.push_back(field);
field.label = ASCIIToUTF16("Address");
- field.name = string16();
+ field.name = base::string16();
form.fields.push_back(field);
field.label = ASCIIToUTF16("Address");
- field.name = string16();
+ field.name = base::string16();
form.fields.push_back(field);
field.label = ASCIIToUTF16("Zip code");
- field.name = string16();
+ field.name = base::string16();
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);
@@ -964,7 +964,7 @@ TEST(FormStructureTest, HeuristicsCreditCardInfo) {
field.name = ASCIIToUTF16("verification");
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);
@@ -1025,7 +1025,7 @@ TEST(FormStructureTest, HeuristicsCreditCardInfoWithUnknownCardField) {
field.name = ASCIIToUTF16("verification");
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);
@@ -1448,7 +1448,7 @@ TEST(FormStructureTest, CVCCodeClash) {
field.name = ASCIIToUTF16("ccexpiresmonth");
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("ccexpiresyear");
form.fields.push_back(field);
@@ -2208,7 +2208,7 @@ TEST(FormStructureTest, ToFormData) {
field.form_control_type = "password";
form.fields.push_back(field);
- field.label = string16();
+ field.label = base::string16();
field.name = ASCIIToUTF16("Submit");
field.form_control_type = "submit";
form.fields.push_back(field);

Powered by Google App Engine
This is Rietveld 408576698