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

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

Issue 2789843004: [Payments] Upload card UI now has a CVC prompt (Closed)
Patch Set: Fix Android build (accidentally omitted scoping class name) 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.cc
diff --git a/components/autofill/core/browser/test_autofill_client.cc b/components/autofill/core/browser/test_autofill_client.cc
index 72b2da47cc1179c3227bf265ba42deb234220119..d7c3be9b5289d0e4c412522ff586ed8853c77749 100644
--- a/components/autofill/core/browser/test_autofill_client.cc
+++ b/components/autofill/core/browser/test_autofill_client.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "components/autofill/core/browser/test_autofill_client.h"
+#include "components/autofill/core/browser/ui/mock_save_card_bubble_controller.h"
Evan Stade 2017/04/12 23:56:22 probably should only include on !android
Jared Saul 2017/04/13 00:42:35 Done.
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
@@ -12,6 +13,9 @@ TestAutofillClient::TestAutofillClient()
: token_service_(new FakeOAuth2TokenService()),
identity_provider_(new FakeIdentityProvider(token_service_.get())),
rappor_service_(new rappor::TestRapporServiceImpl()),
+#if !defined(OS_ANDROID)
+ save_card_bubble_controller_(new MockSaveCardBubbleController()),
+#endif
form_origin_(GURL("https://example.test")) {}
TestAutofillClient::~TestAutofillClient() {
@@ -45,6 +49,14 @@ ukm::UkmService* TestAutofillClient::GetUkmService() {
return ukm_service_test_harness_.test_ukm_service();
}
+SaveCardBubbleController* TestAutofillClient::GetSaveCardBubbleController() {
+#if defined(OS_ANDROID)
Evan Stade 2017/04/12 23:56:22 not necessary if you remove the ifdef from the hea
Jared Saul 2017/04/13 00:42:35 Acknowledged.
+ return nullptr;
+#else
+ return save_card_bubble_controller_.get();
+#endif
+}
+
void TestAutofillClient::ShowAutofillSettings() {
}
@@ -65,6 +77,7 @@ void TestAutofillClient::ConfirmSaveCreditCardLocally(
void TestAutofillClient::ConfirmSaveCreditCardToCloud(
const CreditCard& card,
std::unique_ptr<base::DictionaryValue> legal_message,
+ bool should_cvc_be_requested,
const base::Closure& callback) {
callback.Run();
}

Powered by Google App Engine
This is Rietveld 408576698