Chromium Code Reviews| 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 { | |
|
Ilya Sherman
2013/02/26 09:24:57
nit: IMO this is more of a "MockAutofillManagerDel
kaiwang
2013/02/26 22:18:40
As you can see in this CL, there are many other cl
| |
| 16 public: | |
| 17 virtual ~TestAutofillManagerDelegate(); | |
| 18 | |
| 19 // AutofillManagerDelegate implementation. | |
| 20 virtual InfoBarService* GetInfoBarService() OVERRIDE; | |
| 21 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; | |
| 22 virtual PrefService* GetPrefs() OVERRIDE; | |
| 23 virtual ProfileSyncServiceBase* GetProfileSyncService() OVERRIDE; | |
| 24 virtual void HideRequestAutocompleteDialog() OVERRIDE; | |
| 25 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; | |
| 26 virtual void OnAutocheckoutError() OVERRIDE; | |
| 27 virtual void ShowAutofillSettings() OVERRIDE; | |
| 28 virtual void ShowPasswordGenerationBubble( | |
| 29 const gfx::Rect& bounds, | |
| 30 const content::PasswordForm& form, | |
| 31 autofill::PasswordGenerator* generator) OVERRIDE; | |
| 32 virtual void ShowAutocheckoutBubble( | |
| 33 const gfx::RectF& bounding_box, | |
| 34 const gfx::NativeView& native_view, | |
| 35 const base::Closure& callback) OVERRIDE; | |
| 36 virtual void ShowRequestAutocompleteDialog( | |
| 37 const FormData& form, | |
| 38 const GURL& source_url, | |
| 39 const content::SSLStatus& ssl_status, | |
| 40 const AutofillMetrics& metric_logger, | |
| 41 DialogType dialog_type, | |
| 42 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE; | |
| 43 virtual void RequestAutocompleteDialogClosed() OVERRIDE; | |
| 44 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds, | |
| 45 const std::vector<string16>& values, | |
| 46 const std::vector<string16>& labels, | |
| 47 const std::vector<string16>& icons, | |
| 48 const std::vector<int>& identifiers, | |
| 49 AutofillPopupDelegate* delegate) OVERRIDE; | |
| 50 virtual void HideAutofillPopup() OVERRIDE; | |
| 51 virtual void UpdateProgressBar(double value) OVERRIDE; | |
| 52 }; | |
| 53 | |
| 54 } // namespace autofill | |
| 55 | |
| 56 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | |
| OLD | NEW |