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

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

Issue 982203002: Autofill - Move test only code to a test util file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dcheck Created 5 years, 10 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 fd550a44c6f814b86e00c96182f062bd7363e6b7..6beb6ae42f6cac3b963c1da71f92496c6ee7e363 100644
--- a/components/autofill/core/browser/autofill_test_utils.h
+++ b/components/autofill/core/browser/autofill_test_utils.h
@@ -12,6 +12,7 @@ class PrefService;
namespace autofill {
class AutofillProfile;
+class AutofillTable;
class CreditCard;
struct FormData;
struct FormFieldData;
@@ -91,6 +92,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

Powered by Google App Engine
This is Rietveld 408576698