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