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

Unified Diff: components/autofill/content/browser/autocheckout_manager_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/content/browser/autocheckout_manager_unittest.cc
diff --git a/components/autofill/content/browser/autocheckout_manager_unittest.cc b/components/autofill/content/browser/autocheckout_manager_unittest.cc
index cfe1891ad2dce5fd492e6f18180ef0050f20e951..3333384f9c9d182abb9913a1921dbcc71d8f4d84 100644
--- a/components/autofill/content/browser/autocheckout_manager_unittest.cc
+++ b/components/autofill/content/browser/autocheckout_manager_unittest.cc
@@ -56,7 +56,7 @@ FormFieldData BuildField(const std::string& autocomplete_attribute) {
}
scoped_ptr<FormStructure> CreateTestFormStructure(
- const std::vector<AutofillFieldType>& autofill_types) {
+ const std::vector<ServerFieldType>& autofill_types) {
FormData form;
form.name = ASCIIToUTF16("MyForm");
form.method = ASCIIToUTF16("POST");
@@ -84,7 +84,7 @@ scoped_ptr<FormStructure> CreateTestFormStructure(
}
scoped_ptr<FormStructure> CreateTestAddressFormStructure() {
- std::vector<AutofillFieldType> autofill_types;
+ std::vector<ServerFieldType> autofill_types;
autofill_types.push_back(NAME_FULL);
autofill_types.push_back(PHONE_HOME_WHOLE_NUMBER);
autofill_types.push_back(EMAIL_ADDRESS);
@@ -98,7 +98,7 @@ scoped_ptr<FormStructure> CreateTestAddressFormStructure() {
}
scoped_ptr<FormStructure> CreateTestCreditCardFormStructure() {
- std::vector<AutofillFieldType> autofill_types;
+ std::vector<ServerFieldType> autofill_types;
autofill_types.push_back(CREDIT_CARD_NAME);
autofill_types.push_back(CREDIT_CARD_NUMBER);
autofill_types.push_back(CREDIT_CARD_EXP_MONTH);
@@ -229,7 +229,7 @@ scoped_ptr<AutocheckoutPageMetaData> CreateMultiClickMetaData() {
struct TestField {
const char* const field_type;
const char* const field_value;
- AutofillFieldType autofill_type;
+ ServerFieldType autofill_type;
};
const TestField kTestFields[] = {

Powered by Google App Engine
This is Rietveld 408576698