1 // Copyright 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.
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_
8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h"
10 #include "components/autofill/core/browser/autofill_manager_delegate.h"
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 {
18 TestAutofillManagerDelegate();
19 virtual ~TestAutofillManagerDelegate();
21 // AutofillManagerDelegate implementation.
22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
23 virtual PrefService* GetPrefs() OVERRIDE;
24 virtual void HideRequestAutocompleteDialog() OVERRIDE;
25 virtual void ShowAutofillSettings() OVERRIDE;
26 virtual void ConfirmSaveCreditCard(
27 const AutofillMetrics& metric_logger,
28 const CreditCard& credit_card,
29 const base::Closure& save_card_callback) OVERRIDE;
30 virtual void ShowRequestAutocompleteDialog(
32 const GURL& source_url,
33 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE;
34 virtual void ShowAutofillPopup(
35 const gfx::RectF& element_bounds,
36 base::i18n::TextDirection text_direction,
37 const std::vector<base::string16>& values,
38 const std::vector<base::string16>& labels,
39 const std::vector<base::string16>& icons,
40 const std::vector<int>& identifiers,
41 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE;
42 virtual void UpdateAutofillPopupDataListValues(
43 const std::vector<base::string16>& values,
44 const std::vector<base::string16>& labels) OVERRIDE;
45 virtual void HideAutofillPopup() OVERRIDE;
46 virtual bool IsAutocompleteEnabled() OVERRIDE;
48 virtual void DetectAccountCreationForms(
49 const std::vector<autofill::FormStructure*>& forms) OVERRIDE;
52 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate);
55 } // namespace autofill
57 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_