| 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"));
|
|
|