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

Unified Diff: components/autofill/core/browser/autofill_common_test.cc

Issue 23882013: [rAc] Persist selection of newly added cards and addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests, add a test Created 7 years, 3 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_common_test.cc
diff --git a/components/autofill/core/browser/autofill_common_test.cc b/components/autofill/core/browser/autofill_common_test.cc
index f477b25c2e62c7382b29f9963660e41ee3628173..2187d8b7bea898894935f77ec2ab5485de7adafd 100644
--- a/components/autofill/core/browser/autofill_common_test.cc
+++ b/components/autofill/core/browser/autofill_common_test.cc
@@ -128,12 +128,25 @@ CreditCard GetCreditCard() {
return credit_card;
}
+CreditCard GetCreditCard2() {
+ CreditCard credit_card(base::GenerateGUID(), "https://www.example.com");
+ SetCreditCardInfo(
+ &credit_card, "Someone Else", "378282246310005" /* AmEx */, "07", "2019");
+ return credit_card;
+}
+
CreditCard GetVerifiedCreditCard() {
CreditCard credit_card(GetCreditCard());
credit_card.set_origin(kSettingsOrigin);
return credit_card;
}
+CreditCard GetVerifiedCreditCard2() {
+ CreditCard credit_card(GetCreditCard2());
+ credit_card.set_origin(kSettingsOrigin);
+ return credit_card;
+}
+
void SetProfileInfo(AutofillProfile* profile,
const char* first_name, const char* middle_name,
const char* last_name, const char* email, const char* company,
« no previous file with comments | « components/autofill/core/browser/autofill_common_test.h ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698