summaryrefslogtreecommitdiff
path: root/chromium/components/autofill/core/browser/autofill_test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/autofill/core/browser/autofill_test_utils.h')
-rw-r--r--chromium/components/autofill/core/browser/autofill_test_utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/components/autofill/core/browser/autofill_test_utils.h b/chromium/components/autofill/core/browser/autofill_test_utils.h
index f722ba5042d..80af947d034 100644
--- a/chromium/components/autofill/core/browser/autofill_test_utils.h
+++ b/chromium/components/autofill/core/browser/autofill_test_utils.h
@@ -30,6 +30,8 @@ struct FormFieldData;
// Common utilities shared amongst Autofill tests.
namespace test {
+const char kEmptyOrigin[] = "";
+
// The following methods return a PrefService that can be used for
// Autofill-related testing in contexts where the PrefService would otherwise
// have to be constructed manually (e.g., in unit tests within Autofill core
@@ -66,6 +68,10 @@ void CreateTestAddressFormData(FormData* form);
void CreateTestAddressFormData(FormData* form,
std::vector<ServerFieldTypeSet>* types);
+// Populates |form| with data corresponding to a simple personal information
+// form, including name and email, but no address-related fields.
+void CreateTestPersonalInformationFormData(FormData* form);
+
// Returns a full profile with valid info according to rules for Canada.
AutofillProfile GetFullValidProfileForCanada();
@@ -200,6 +206,8 @@ void FillQueryField(AutofillQueryContents::Form::Field* field,
void GenerateTestAutofillPopup(
AutofillExternalDelegate* autofill_external_delegate);
+std::string ObfuscatedCardDigitsAsUTF8(const std::string& str);
+
} // namespace test
} // namespace autofill