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 ba1510c2e76b9d1419c1fbabaea1bcfd8cc4c3a1..dcede139e3f3ebd2e678596d34045cbacf6d7cce 100644 |
--- a/components/autofill/core/browser/test_autofill_client.h |
+++ b/components/autofill/core/browser/test_autofill_client.h |
@@ -11,8 +11,16 @@ |
#include "base/prefs/pref_service.h" |
#include "components/autofill/core/browser/autofill_client.h" |
+class ConfirmInfoBarDelegate; |
+ |
+namespace infobars { |
+class InfoBar; |
+} |
+ |
namespace autofill { |
+class AutofillManager; |
+ |
// This class is for easier writing of tests. |
class TestAutofillClient : public AutofillClient { |
public: |
@@ -26,7 +34,8 @@ class TestAutofillClient : public AutofillClient { |
void HideRequestAutocompleteDialog() override; |
void ShowAutofillSettings() override; |
void ShowUnmaskPrompt() override; |
- void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; |
+ void ConfirmSaveCreditCard(AutofillManager* autofill_manager, |
+ const base::Closure& save_card_callback) override; |
bool HasCreditCardScanFeature() override; |
void ScanCreditCard(const CreditCardScanCallback& callback) override; |
void ShowRequestAutocompleteDialog(const FormData& form, |
@@ -51,6 +60,8 @@ class TestAutofillClient : public AutofillClient { |
void DidFillOrPreviewField(const base::string16& autofilled_value, |
const base::string16& profile_full_name) override; |
void OnFirstUserGestureObserved() override; |
+ scoped_ptr<infobars::InfoBar> CreateInfoBar( |
+ scoped_ptr<ConfirmInfoBarDelegate> delegate) override; |
void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } |