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 COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | |
6 #define COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/i18n/rtl.h" | |
10 #include "components/autofill/browser/autofill_manager_delegate.h" | |
11 | |
12 namespace autofill { | |
13 | |
14 // This class is only for easier writing of testings. All pure virtual functions | |
15 // have been giving empty methods. | |
16 class TestAutofillManagerDelegate : public AutofillManagerDelegate { | |
17 public: | |
18 TestAutofillManagerDelegate(); | |
19 virtual ~TestAutofillManagerDelegate(); | |
20 | |
21 // AutofillManagerDelegate implementation. | |
22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; | |
23 virtual PrefService* GetPrefs() OVERRIDE; | |
24 virtual autocheckout::WhitelistManager* | |
25 GetAutocheckoutWhitelistManager() const OVERRIDE; | |
26 virtual void HideRequestAutocompleteDialog() OVERRIDE; | |
27 virtual void OnAutocheckoutError() OVERRIDE; | |
28 virtual void OnAutocheckoutSuccess() OVERRIDE; | |
29 virtual void ShowAutofillSettings() OVERRIDE; | |
30 virtual void ConfirmSaveCreditCard( | |
31 const AutofillMetrics& metric_logger, | |
32 const CreditCard& credit_card, | |
33 const base::Closure& save_card_callback) OVERRIDE; | |
34 virtual void ShowAutocheckoutBubble( | |
35 const gfx::RectF& bounding_box, | |
36 bool is_google_user, | |
37 const base::Callback<void(bool)>& callback) OVERRIDE; | |
38 virtual void HideAutocheckoutBubble() OVERRIDE; | |
39 virtual void ShowRequestAutocompleteDialog( | |
40 const FormData& form, | |
41 const GURL& source_url, | |
42 DialogType dialog_type, | |
43 const base::Callback<void(const FormStructure*, | |
44 const std::string&)>& callback) OVERRIDE; | |
45 virtual void ShowAutofillPopup( | |
46 const gfx::RectF& element_bounds, | |
47 base::i18n::TextDirection text_direction, | |
48 const std::vector<base::string16>& values, | |
49 const std::vector<base::string16>& labels, | |
50 const std::vector<base::string16>& icons, | |
51 const std::vector<int>& identifiers, | |
52 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; | |
53 virtual void HideAutofillPopup() OVERRIDE; | |
54 virtual void UpdateProgressBar(double value) OVERRIDE; | |
55 | |
56 private: | |
57 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); | |
58 }; | |
59 | |
60 } // namespace autofill | |
61 | |
62 #endif // COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | |
OLD | NEW |