Commit 69a16ffc authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

Mark SaveCard delegate action methods as virtual for testing

This change will allow for mocking AutofillSaveCardInfoBarDelegateMobile.

Bug: 1071914
Change-Id: I1175201dc0b286558211e111bb19a6c6d853856b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2250702
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Reviewed-by: default avatarJared Saul <jsaul@google.com>
Cr-Commit-Position: refs/heads/master@{#780089}
parent 595a4d29
...@@ -63,7 +63,7 @@ class AutofillSaveCardInfoBarDelegateMobile : public ConfirmInfoBarDelegate { ...@@ -63,7 +63,7 @@ class AutofillSaveCardInfoBarDelegateMobile : public ConfirmInfoBarDelegate {
} }
// Called when a link in the legal message text was clicked. // Called when a link in the legal message text was clicked.
void OnLegalMessageLinkClicked(GURL url); virtual void OnLegalMessageLinkClicked(GURL url);
// Google Pay branding is enabled with a flag and only for cards upstreamed // Google Pay branding is enabled with a flag and only for cards upstreamed
// to Google. // to Google.
...@@ -87,9 +87,9 @@ class AutofillSaveCardInfoBarDelegateMobile : public ConfirmInfoBarDelegate { ...@@ -87,9 +87,9 @@ class AutofillSaveCardInfoBarDelegateMobile : public ConfirmInfoBarDelegate {
// Updates and then saves the card using |cardholder_name|, // Updates and then saves the card using |cardholder_name|,
// |expiration_date_month| and |expiration_date_year|, which were provided // |expiration_date_month| and |expiration_date_year|, which were provided
// as part of the iOS save card Infobar dialog. // as part of the iOS save card Infobar dialog.
bool UpdateAndAccept(base::string16 cardholder_name, virtual bool UpdateAndAccept(base::string16 cardholder_name,
base::string16 expiration_date_month, base::string16 expiration_date_month,
base::string16 expiration_date_year); base::string16 expiration_date_year);
#endif // defined(OS_IOS) #endif // defined(OS_IOS)
private: private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment