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

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: include vector Created 5 years, 9 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698