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

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

Issue 710453002: [Autofill] Componentize AutofillCCInfoBarDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years 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 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(); }

Powered by Google App Engine
This is Rietveld 408576698