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 fd550a44c6f814b86e00c96182f062bd7363e6b7..b48249563d23321076a63f4e3567057847fd0e74 100644 |
--- a/components/autofill/core/browser/autofill_test_utils.h |
+++ b/components/autofill/core/browser/autofill_test_utils.h |
@@ -5,6 +5,8 @@ |
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_ |
#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_ |
+#include <vector> |
+ |
#include "base/memory/scoped_ptr.h" |
class PrefService; |
@@ -12,6 +14,7 @@ class PrefService; |
namespace autofill { |
class AutofillProfile; |
+class AutofillTable; |
class CreditCard; |
struct FormData; |
struct FormFieldData; |
@@ -91,6 +94,11 @@ void SetCreditCardInfo(CreditCard* credit_card, |
// Disables or mocks out code that would otherwise reach out to system services. |
void DisableSystemServices(PrefService* prefs); |
+// Sets |cards| for |table|. |cards| may contain full, unmasked server cards, |
+// whereas AutofillTable::SetServerCreditCards can only contain masked cards. |
+void SetServerCreditCards(AutofillTable* table, |
+ const std::vector<CreditCard>& cards); |
+ |
} // namespace test |
} // namespace autofill |