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

Unified Diff: chrome/browser/ui/views/payments/error_message_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/error_message_view_controller_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc b/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc
index cc11c0e7a1a775274f4a071c2be8b3af41962d8c..539cf9679db5a08e0322263cceb88e94af3a0178 100644
--- a/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc
+++ b/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc
@@ -27,7 +27,11 @@ class PaymentRequestErrorMessageTest : public PaymentRequestBrowserTestBase {
// Testing the use of the complete('fail') JS API and the error message.
IN_PROC_BROWSER_TEST_F(PaymentRequestErrorMessageTest, CompleteFail) {
- AddCreditCard(autofill::test::GetCreditCard()); // Visa
+ autofill::AutofillProfile billing_profile(autofill::test::GetFullProfile());
+ PaymentRequestBrowserTestBase::AddAutofillProfile(billing_profile);
+ autofill::CreditCard card(autofill::test::GetCreditCard()); // Visa
+ card.set_billing_address_id(billing_profile.guid());
+ AddCreditCard(card);
InvokePaymentRequestUI();
// We are ready to pay.

Powered by Google App Engine
This is Rietveld 408576698