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

Unified Diff: components/autofill/core/browser/autofill_assistant_unittest.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: components/autofill/core/browser/autofill_assistant_unittest.cc
diff --git a/components/autofill/core/browser/autofill_assistant_unittest.cc b/components/autofill/core/browser/autofill_assistant_unittest.cc
index d5b27e105b2540ab08f7eb85bfd7d4c56559d983..d7fb2f020c8dd07ff1ff8ddf733edd339d728b08 100644
--- a/components/autofill/core/browser/autofill_assistant_unittest.cc
+++ b/components/autofill/core/browser/autofill_assistant_unittest.cc
@@ -5,6 +5,7 @@
#include "components/autofill/core/browser/autofill_assistant.h"
#include <memory>
+#include <utility>
#include "base/callback.h"
#include "base/feature_list.h"
@@ -231,7 +232,8 @@ TEST_F(AutofillAssistantTest, ShowAssistForCreditCard_ValidCard_CancelCvc) {
// Create a valid card for the assist.
CreditCard card;
- test::SetCreditCardInfo(&card, "John Doe", "4111111111111111", "05", "2999");
+ test::SetCreditCardInfo(&card, "John Doe", "4111111111111111", "05", "2999",
+ "1");
// FillCreditCardForm should not be called if the user cancelled the CVC.
EXPECT_CALL(autofill_manager_, FillCreditCardForm(_, _, _, _, _)).Times(0);
@@ -253,7 +255,8 @@ TEST_F(AutofillAssistantTest, ShowAssistForCreditCard_ValidCard_SubmitCvc) {
// Create a valid card for the assist.
CreditCard card;
- test::SetCreditCardInfo(&card, "John Doe", "4111111111111111", "05", "2999");
+ test::SetCreditCardInfo(&card, "John Doe", "4111111111111111", "05", "2999",
+ "1");
// FillCreditCardForm ends up being called after user has accepted the
// prompt.

Powered by Google App Engine
This is Rietveld 408576698