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 7namespace autofill { 8 9TestAutofillManagerDelegate::TestAutofillManagerDelegate() {} 10TestAutofillManagerDelegate::~TestAutofillManagerDelegate() {} 11 12PersonalDataManager* TestAutofillManagerDelegate::GetPersonalDataManager() { 13 return NULL; 14} 15 16autocheckout::WhitelistManager* 17TestAutofillManagerDelegate::GetAutocheckoutWhitelistManager() const { 18 return NULL; 19} 20 21PrefService* TestAutofillManagerDelegate::GetPrefs() { 22 return NULL; 23} 24 25void TestAutofillManagerDelegate::HideRequestAutocompleteDialog() {} 26 27void TestAutofillManagerDelegate::OnAutocheckoutError() {} 28 29void TestAutofillManagerDelegate::OnAutocheckoutSuccess() {} 30 31void TestAutofillManagerDelegate::ShowAutofillSettings() {} 32 33void TestAutofillManagerDelegate::ConfirmSaveCreditCard( 34 const AutofillMetrics& metric_logger, 35 const CreditCard& credit_card, 36 const base::Closure& save_card_callback) {} 37 38bool TestAutofillManagerDelegate::ShowAutocheckoutBubble( 39 const gfx::RectF& bounding_box, 40 bool is_google_user, 41 const base::Callback<void(AutocheckoutBubbleState)>& callback) { 42 return true; 43} 44 45void TestAutofillManagerDelegate::HideAutocheckoutBubble() {} 46 47void TestAutofillManagerDelegate::ShowRequestAutocompleteDialog( 48 const FormData& form, 49 const GURL& source_url, 50 DialogType dialog_type, 51 const base::Callback<void(const FormStructure*, 52 const std::string&)>& callback) {} 53 54void TestAutofillManagerDelegate::ShowAutofillPopup( 55 const gfx::RectF& element_bounds, 56 base::i18n::TextDirection text_direction, 57 const std::vector<base::string16>& values, 58 const std::vector<base::string16>& labels, 59 const std::vector<base::string16>& icons, 60 const std::vector<int>& identifiers, 61 base::WeakPtr<AutofillPopupDelegate> delegate) {} 62 63void TestAutofillManagerDelegate::UpdateAutofillPopupDataListValues( 64 const std::vector<base::string16>& values, 65 const std::vector<base::string16>& labels) {} 66 67void TestAutofillManagerDelegate::HideAutofillPopup() {} 68 69void TestAutofillManagerDelegate::AddAutocheckoutStep( 70 AutocheckoutStepType step_type) {} 71 72void TestAutofillManagerDelegate::UpdateAutocheckoutStep( 73 AutocheckoutStepType step_type, 74 AutocheckoutStepStatus step_status) {} 75 76bool TestAutofillManagerDelegate::IsAutocompleteEnabled() { 77 return true; 78} 79 80} // namespace autofill 81