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

Unified Diff: chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc

Issue 2849523003: Add billing address as a mandatory field of Payments credit cards. (Closed)
Patch Set: Components Unittests fix Created 3 years, 7 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: chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc b/chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc
index 7569316004ff2e1cfb76150f540514e57951330b..d18e4ee1cddd1b5e14042e7f03f94ec706849bcc 100644
--- a/chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc
+++ b/chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc
@@ -21,7 +21,11 @@ class PaymentRequestCvcUnmaskViewControllerTest
IN_PROC_BROWSER_TEST_F(PaymentRequestCvcUnmaskViewControllerTest,
CvcSentToResponse) {
- AddCreditCard(autofill::test::GetCreditCard()); // Visa.
+ autofill::AutofillProfile profile(autofill::test::GetFullProfile());
+ AddAutofillProfile(profile);
+ autofill::CreditCard card(autofill::test::GetCreditCard()); // Visa card.
+ card.set_billing_address_id(profile.guid());
+ AddCreditCard(card);
InvokePaymentRequestUI();
ResetEventObserver(DialogEvent::DIALOG_CLOSED);
@@ -34,7 +38,11 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestCvcUnmaskViewControllerTest,
// does not crash.
IN_PROC_BROWSER_TEST_F(PaymentRequestCvcUnmaskViewControllerTest,
OpenGoBackOpenPay) {
- AddCreditCard(autofill::test::GetCreditCard()); // Visa.
+ autofill::AutofillProfile profile(autofill::test::GetFullProfile());
+ AddAutofillProfile(profile);
+ autofill::CreditCard card(autofill::test::GetCreditCard()); // Visa card.
+ card.set_billing_address_id(profile.guid());
+ AddCreditCard(card);
InvokePaymentRequestUI();
OpenCVCPromptWithCVC(base::ASCIIToUTF16("012"));

Powered by Google App Engine
This is Rietveld 408576698