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

Unified Diff: components/autofill/core/browser/autofill_test_utils.h

Issue 1885773002: [Autofill] Don't fill expiration date of expired credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 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/core/browser/autofill_test_utils.h
diff --git a/components/autofill/core/browser/autofill_test_utils.h b/components/autofill/core/browser/autofill_test_utils.h
index 2f153b58cf7974ae9ef8aec4ddc7b6505e3247b9..8719aac74fd48d4206e8b7d6803ba0b87a79cd2b 100644
--- a/components/autofill/core/browser/autofill_test_utils.h
+++ b/components/autofill/core/browser/autofill_test_utils.h
@@ -38,6 +38,18 @@ void CreateTestFormField(const char* label,
const char* type,
FormFieldData* field);
+// Provides a quick way to populate a select field.
+void CreateTestSelectField(const char* label,
+ const char* name,
+ const char* value,
+ const std::vector<const char*>& values,
+ const std::vector<const char*>& contents,
+ size_t select_size,
+ FormFieldData* field);
+
+void CreateTestSelectField(const std::vector<const char*>& values,
+ FormFieldData* field);
+
// Populates |form| with data corresponding to a simple address form.
// Note that this actually appends fields to the form data, which can be useful
// for building up more complex test forms. Another version of the function is
« no previous file with comments | « components/autofill/core/browser/autofill_manager_unittest.cc ('k') | components/autofill/core/browser/autofill_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698