| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/autofill/autofill_manager_delegate.h" |
| 10 |
| 11 namespace autofill { |
| 12 |
| 13 // This class is only for easier writing of testings. All pure virtual functions |
| 14 // have been giving empty methods. |
| 15 class TestAutofillManagerDelegate : public AutofillManagerDelegate { |
| 16 public: |
| 17 TestAutofillManagerDelegate(); |
| 18 virtual ~TestAutofillManagerDelegate(); |
| 19 |
| 20 // AutofillManagerDelegate implementation. |
| 21 virtual InfoBarService* GetInfoBarService() OVERRIDE; |
| 22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; |
| 23 virtual PrefService* GetPrefs() OVERRIDE; |
| 24 virtual ProfileSyncServiceBase* GetProfileSyncService() OVERRIDE; |
| 25 virtual void HideRequestAutocompleteDialog() OVERRIDE; |
| 26 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; |
| 27 virtual void OnAutocheckoutError() OVERRIDE; |
| 28 virtual void ShowAutofillSettings() OVERRIDE; |
| 29 virtual void ShowPasswordGenerationBubble( |
| 30 const gfx::Rect& bounds, |
| 31 const content::PasswordForm& form, |
| 32 autofill::PasswordGenerator* generator) OVERRIDE; |
| 33 virtual void ShowAutocheckoutBubble( |
| 34 const gfx::RectF& bounding_box, |
| 35 const gfx::NativeView& native_view, |
| 36 const base::Closure& callback) OVERRIDE; |
| 37 virtual void ShowRequestAutocompleteDialog( |
| 38 const FormData& form, |
| 39 const GURL& source_url, |
| 40 const content::SSLStatus& ssl_status, |
| 41 const AutofillMetrics& metric_logger, |
| 42 DialogType dialog_type, |
| 43 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE; |
| 44 virtual void RequestAutocompleteDialogClosed() OVERRIDE; |
| 45 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds, |
| 46 const std::vector<string16>& values, |
| 47 const std::vector<string16>& labels, |
| 48 const std::vector<string16>& icons, |
| 49 const std::vector<int>& identifiers, |
| 50 AutofillPopupDelegate* delegate) OVERRIDE; |
| 51 virtual void HideAutofillPopup() OVERRIDE; |
| 52 virtual void UpdateProgressBar(double value) OVERRIDE; |
| 53 |
| 54 private: |
| 55 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); |
| 56 }; |
| 57 |
| 58 } // namespace autofill |
| 59 |
| 60 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |