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

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

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.cc
diff --git a/components/autofill/core/browser/test_autofill_client.cc b/components/autofill/core/browser/test_autofill_client.cc
index 72b2da47cc1179c3227bf265ba42deb234220119..e6a0f0023e449adb215874a14f1dc0a7f5950f5b 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>
Mathieu 2017/04/04 23:49:20 include is wrong style
Jared Saul 2017/04/05 00:58:29 Wow, where'd I pull this from, haha. Nice catch.
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
@@ -45,6 +46,10 @@ ukm::UkmService* TestAutofillClient::GetUkmService() {
return ukm_service_test_harness_.test_ukm_service();
}
+SaveCardBubbleController* TestAutofillClient::GetSaveCardBubbleController() {
+ return new MockSaveCardBubbleController();
+}
+
void TestAutofillClient::ShowAutofillSettings() {
}
@@ -65,6 +70,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