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

Unified Diff: components/autofill/core/browser/test_autofill_client.h

Issue 2789843004: [Payments] Upload card UI now has a CVC prompt (Closed)
Patch Set: Update TestAutofillClient, create MockSaveCardBubbleController, add unit test Created 3 years, 8 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/test_autofill_client.h
diff --git a/components/autofill/core/browser/test_autofill_client.h b/components/autofill/core/browser/test_autofill_client.h
index 5b25ecfabab9796e5c913bdafccb807ba248a5d6..e3fb1d231be875480633c1c530b81db286401bab 100644
--- a/components/autofill/core/browser/test_autofill_client.h
+++ b/components/autofill/core/browser/test_autofill_client.h
@@ -14,6 +14,7 @@
#include "base/i18n/rtl.h"
#include "base/macros.h"
#include "components/autofill/core/browser/autofill_client.h"
+#include "components/autofill/core/browser/ui/save_card_bubble_controller.h"
Mathieu 2017/04/04 23:49:20 could you see if it compiles without this? Usually
Jared Saul 2017/04/05 00:58:29 Done; appears to be ok.
#include "components/prefs/pref_service.h"
#include "components/rappor/test_rappor_service.h"
#include "components/ukm/test_ukm_service.h"
@@ -36,6 +37,7 @@ class TestAutofillClient : public AutofillClient {
IdentityProvider* GetIdentityProvider() override;
rappor::RapporServiceImpl* GetRapporServiceImpl() override;
ukm::UkmService* GetUkmService() override;
+ SaveCardBubbleController* GetSaveCardBubbleController() override;
void ShowAutofillSettings() override;
void ShowUnmaskPrompt(const CreditCard& card,
UnmaskCardReason reason,
@@ -46,6 +48,7 @@ class TestAutofillClient : public AutofillClient {
void ConfirmSaveCreditCardToCloud(
const CreditCard& card,
std::unique_ptr<base::DictionaryValue> legal_message,
+ bool should_cvc_be_requested,
const base::Closure& callback) override;
void ConfirmCreditCardFillAssist(const CreditCard& card,
const base::Closure& callback) override;

Powered by Google App Engine
This is Rietveld 408576698