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.
4
5 #include "components/autofill/core/browser/test_autofill_manager_delegate.h"
6 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
7
8 namespace autofill {
9
TestAutofillManagerDelegate()10 TestAutofillManagerDelegate::TestAutofillManagerDelegate() {}
~TestAutofillManagerDelegate()11 TestAutofillManagerDelegate::~TestAutofillManagerDelegate() {}
12
GetPersonalDataManager()13 PersonalDataManager* TestAutofillManagerDelegate::GetPersonalDataManager() {
14 return NULL;
15 }
16
17 scoped_refptr<AutofillWebDataService>
GetDatabase()18 TestAutofillManagerDelegate::GetDatabase() {
19 return scoped_refptr<AutofillWebDataService>(NULL);
20 }
21
GetPrefs()22 PrefService* TestAutofillManagerDelegate::GetPrefs() {
23 return NULL;
24 }
25
HideRequestAutocompleteDialog()26 void TestAutofillManagerDelegate::HideRequestAutocompleteDialog() {}
27
ShowAutofillSettings()28 void TestAutofillManagerDelegate::ShowAutofillSettings() {}
29
ConfirmSaveCreditCard(const AutofillMetrics & metric_logger,const base::Closure & save_card_callback)30 void TestAutofillManagerDelegate::ConfirmSaveCreditCard(
31 const AutofillMetrics& metric_logger,
32 const base::Closure& save_card_callback) {}
33
ShowRequestAutocompleteDialog(const FormData & form,const GURL & source_url,const base::Callback<void (const FormStructure *)> & callback)34 void TestAutofillManagerDelegate::ShowRequestAutocompleteDialog(
35 const FormData& form,
36 const GURL& source_url,
37 const base::Callback<void(const FormStructure*)>& callback) {}
38
ShowAutofillPopup(const gfx::RectF & element_bounds,base::i18n::TextDirection text_direction,const std::vector<base::string16> & values,const std::vector<base::string16> & labels,const std::vector<base::string16> & icons,const std::vector<int> & identifiers,base::WeakPtr<AutofillPopupDelegate> delegate)39 void TestAutofillManagerDelegate::ShowAutofillPopup(
40 const gfx::RectF& element_bounds,
41 base::i18n::TextDirection text_direction,
42 const std::vector<base::string16>& values,
43 const std::vector<base::string16>& labels,
44 const std::vector<base::string16>& icons,
45 const std::vector<int>& identifiers,
46 base::WeakPtr<AutofillPopupDelegate> delegate) {}
47
UpdateAutofillPopupDataListValues(const std::vector<base::string16> & values,const std::vector<base::string16> & labels)48 void TestAutofillManagerDelegate::UpdateAutofillPopupDataListValues(
49 const std::vector<base::string16>& values,
50 const std::vector<base::string16>& labels) {}
51
HideAutofillPopup()52 void TestAutofillManagerDelegate::HideAutofillPopup() {}
53
IsAutocompleteEnabled()54 bool TestAutofillManagerDelegate::IsAutocompleteEnabled() {
55 return true;
56 }
57
DetectAccountCreationForms(const std::vector<autofill::FormStructure * > & forms)58 void TestAutofillManagerDelegate::DetectAccountCreationForms(
59 const std::vector<autofill::FormStructure*>& forms) {}
60
61 } // namespace autofill
62