Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 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 | |
| 7 | namespace autofill { |
| 8 | |
| 9 | TestAutofillManagerDelegate::TestAutofillManagerDelegate() {} |
| 10 | TestAutofillManagerDelegate::~TestAutofillManagerDelegate() {} |
| 11 | |
| 12 | PersonalDataManager* TestAutofillManagerDelegate::GetPersonalDataManager() { |
| 13 | return NULL; |
| 14 | } |
| 15 | |
| 16 | autocheckout::WhitelistManager* |
| 17 | TestAutofillManagerDelegate::GetAutocheckoutWhitelistManager() const { |
| 18 | return NULL; |
| 19 | } |
| 20 | |
| 21 | PrefService* TestAutofillManagerDelegate::GetPrefs() { |
| 22 | return NULL; |
| 23 | } |
| 24 | |
| 25 | void TestAutofillManagerDelegate::HideRequestAutocompleteDialog() {} |
| 26 | |
| 27 | void TestAutofillManagerDelegate::OnAutocheckoutError() {} |
| 28 | |
| 29 | void TestAutofillManagerDelegate::OnAutocheckoutSuccess() {} |
| 30 | |
| 31 | void TestAutofillManagerDelegate::ShowAutofillSettings() {} |
| 32 | |
| 33 | void TestAutofillManagerDelegate::ConfirmSaveCreditCard( |
| 34 | const AutofillMetrics& metric_logger, |
| 35 | const CreditCard& credit_card, |
| 36 | const base::Closure& save_card_callback) {} |
| 37 | |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame^] | 38 | bool TestAutofillManagerDelegate::ShowAutocheckoutBubble( |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 39 | const gfx::RectF& bounding_box, |
| 40 | bool is_google_user, |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame^] | 41 | const base::Callback<void(AutocheckoutBubbleState)>& callback) { |
| 42 | return true; |
| 43 | } |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 44 | |
| 45 | void TestAutofillManagerDelegate::HideAutocheckoutBubble() {} |
| 46 | |
| 47 | void 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 | |
| 54 | void 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 | |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 63 | void TestAutofillManagerDelegate::UpdateAutofillPopupDataListValues( |
| 64 | const std::vector<base::string16>& values, |
| 65 | const std::vector<base::string16>& labels) {} |
| 66 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 67 | void TestAutofillManagerDelegate::HideAutofillPopup() {} |
| 68 | |
| 69 | void TestAutofillManagerDelegate::AddAutocheckoutStep( |
| 70 | AutocheckoutStepType step_type) {} |
| 71 | |
| 72 | void TestAutofillManagerDelegate::UpdateAutocheckoutStep( |
| 73 | AutocheckoutStepType step_type, |
| 74 | AutocheckoutStepStatus step_status) {} |
| 75 | |
| 76 | bool TestAutofillManagerDelegate::IsAutocompleteEnabled() { |
| 77 | return true; |
| 78 | } |
| 79 | |
| 80 | } // namespace autofill |