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 8namespace autofill { 9 10TestAutofillManagerDelegate::TestAutofillManagerDelegate() {} 11TestAutofillManagerDelegate::~TestAutofillManagerDelegate() {} 12 13PersonalDataManager* TestAutofillManagerDelegate::GetPersonalDataManager() { 14 return NULL; 15} 16 17scoped_refptr<AutofillWebDataService> 18TestAutofillManagerDelegate::GetDatabase() { 19 return scoped_refptr<AutofillWebDataService>(NULL); 20} 21 22PrefService* TestAutofillManagerDelegate::GetPrefs() { 23 return NULL; 24} 25 26void TestAutofillManagerDelegate::HideRequestAutocompleteDialog() {} 27 28void TestAutofillManagerDelegate::ShowAutofillSettings() {} 29 30void TestAutofillManagerDelegate::ConfirmSaveCreditCard( 31 const AutofillMetrics& metric_logger, 32 const base::Closure& save_card_callback) {} 33 34void TestAutofillManagerDelegate::ShowRequestAutocompleteDialog( 35 const FormData& form, 36 const GURL& source_url, 37 const base::Callback<void(const FormStructure*)>& callback) {} 38 39void 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 48void TestAutofillManagerDelegate::UpdateAutofillPopupDataListValues( 49 const std::vector<base::string16>& values, 50 const std::vector<base::string16>& labels) {} 51 52void TestAutofillManagerDelegate::HideAutofillPopup() {} 53 54bool TestAutofillManagerDelegate::IsAutocompleteEnabled() { 55 return true; 56} 57 58void TestAutofillManagerDelegate::DetectAccountCreationForms( 59 const std::vector<autofill::FormStructure*>& forms) {} 60 61} // namespace autofill 62