Chromium Code Reviews| 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(); |
| } |