| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "components/autofill/browser/autofill_manager_delegate.h" | 9 #include "components/autofill/browser/autofill_manager_delegate.h" |
| 10 | 10 |
| 11 namespace autofill { | 11 namespace autofill { |
| 12 | 12 |
| 13 // This class is only for easier writing of testings. All pure virtual functions | 13 // This class is only for easier writing of testings. All pure virtual functions |
| 14 // have been giving empty methods. | 14 // have been giving empty methods. |
| 15 class TestAutofillManagerDelegate : public AutofillManagerDelegate { | 15 class TestAutofillManagerDelegate : public AutofillManagerDelegate { |
| 16 public: | 16 public: |
| 17 TestAutofillManagerDelegate(); | 17 TestAutofillManagerDelegate(); |
| 18 virtual ~TestAutofillManagerDelegate(); | 18 virtual ~TestAutofillManagerDelegate(); |
| 19 | 19 |
| 20 // AutofillManagerDelegate implementation. | 20 // AutofillManagerDelegate implementation. |
| 21 virtual scoped_refptr<AutofillWebDataService> GetAutofillWebDataService() |
| 22 OVERRIDE; |
| 21 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; | 23 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; |
| 22 virtual PrefService* GetPrefs() OVERRIDE; | 24 virtual PrefService* GetPrefs() OVERRIDE; |
| 23 virtual autocheckout::WhitelistManager* | 25 virtual autocheckout::WhitelistManager* |
| 24 GetAutocheckoutWhitelistManager() const OVERRIDE; | 26 GetAutocheckoutWhitelistManager() const OVERRIDE; |
| 25 virtual void HideRequestAutocompleteDialog() OVERRIDE; | 27 virtual void HideRequestAutocompleteDialog() OVERRIDE; |
| 26 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; | 28 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; |
| 27 virtual bool IsPasswordSyncEnabled() const OVERRIDE; | 29 virtual bool IsPasswordSyncEnabled() const OVERRIDE; |
| 28 virtual void SetSyncStateChangedCallback( | 30 virtual void SetSyncStateChangedCallback( |
| 29 const base::Closure& callback) OVERRIDE; | 31 const base::Closure& callback) OVERRIDE; |
| 30 virtual void OnAutocheckoutError() OVERRIDE; | 32 virtual void OnAutocheckoutError() OVERRIDE; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 56 virtual void HideAutofillPopup() OVERRIDE; | 58 virtual void HideAutofillPopup() OVERRIDE; |
| 57 virtual void UpdateProgressBar(double value) OVERRIDE; | 59 virtual void UpdateProgressBar(double value) OVERRIDE; |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); | 62 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 } // namespace autofill | 65 } // namespace autofill |
| 64 | 66 |
| 65 #endif // COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | 67 #endif // COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |