1 // Copyright 2014 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_client.h"
6
7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
8
9 namespace autofill {
10
TestAutofillClient()11 TestAutofillClient::TestAutofillClient() {
12 }
~TestAutofillClient()13 TestAutofillClient::~TestAutofillClient() {
14 }
15
GetPersonalDataManager()16 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() {
17 return NULL;
18 }
19
GetDatabase()20 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() {
21 return scoped_refptr<AutofillWebDataService>(NULL);
22 }
23
GetPrefs()24 PrefService* TestAutofillClient::GetPrefs() {
25 return prefs_.get();
26 }
27
HideRequestAutocompleteDialog()28 void TestAutofillClient::HideRequestAutocompleteDialog() {
29 }
30
ShowAutofillSettings()31 void TestAutofillClient::ShowAutofillSettings() {
32 }
33
ConfirmSaveCreditCard(const AutofillMetrics & metric_logger,const base::Closure & save_card_callback)34 void TestAutofillClient::ConfirmSaveCreditCard(
35 const AutofillMetrics& metric_logger,
36 const base::Closure& save_card_callback) {
37 }
38
ShowRequestAutocompleteDialog(const FormData & form,const GURL & source_url,const ResultCallback & callback)39 void TestAutofillClient::ShowRequestAutocompleteDialog(
40 const FormData& form,
41 const GURL& source_url,
42 const ResultCallback& callback) {
43 }
44
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)45 void TestAutofillClient::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) {
53 }
54
UpdateAutofillPopupDataListValues(const std::vector<base::string16> & values,const std::vector<base::string16> & labels)55 void TestAutofillClient::UpdateAutofillPopupDataListValues(
56 const std::vector<base::string16>& values,
57 const std::vector<base::string16>& labels) {
58 }
59
HideAutofillPopup()60 void TestAutofillClient::HideAutofillPopup() {
61 }
62
IsAutocompleteEnabled()63 bool TestAutofillClient::IsAutocompleteEnabled() {
64 return true;
65 }
66
DetectAccountCreationForms(const std::vector<autofill::FormStructure * > & forms)67 void TestAutofillClient::DetectAccountCreationForms(
68 const std::vector<autofill::FormStructure*>& forms) {
69 }
70
DidFillOrPreviewField(const base::string16 & autofilled_value,const base::string16 & profile_full_name)71 void TestAutofillClient::DidFillOrPreviewField(
72 const base::string16& autofilled_value,
73 const base::string16& profile_full_name) {
74 }
75
76 } // namespace autofill
77