| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/autofill/core/browser/test_autofill_client.h" | 5 #include "components/autofill/core/browser/test_autofill_client.h" |
| 6 | 6 |
| 7 #include "components/autofill/core/browser/autofill_manager.h" |
| 7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 8 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 9 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 10 #include "components/infobars/core/infobar.h" |
| 8 | 11 |
| 9 namespace autofill { | 12 namespace autofill { |
| 10 | 13 |
| 11 TestAutofillClient::TestAutofillClient() { | 14 TestAutofillClient::TestAutofillClient() { |
| 12 } | 15 } |
| 13 TestAutofillClient::~TestAutofillClient() { | 16 TestAutofillClient::~TestAutofillClient() { |
| 14 } | 17 } |
| 15 | 18 |
| 16 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() { | 19 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() { |
| 17 return NULL; | 20 return NULL; |
| 18 } | 21 } |
| 19 | 22 |
| 20 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() { | 23 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() { |
| 21 return scoped_refptr<AutofillWebDataService>(NULL); | 24 return scoped_refptr<AutofillWebDataService>(NULL); |
| 22 } | 25 } |
| 23 | 26 |
| 24 PrefService* TestAutofillClient::GetPrefs() { | 27 PrefService* TestAutofillClient::GetPrefs() { |
| 25 return prefs_.get(); | 28 return prefs_.get(); |
| 26 } | 29 } |
| 27 | 30 |
| 28 void TestAutofillClient::HideRequestAutocompleteDialog() { | 31 void TestAutofillClient::HideRequestAutocompleteDialog() { |
| 29 } | 32 } |
| 30 | 33 |
| 31 void TestAutofillClient::ShowAutofillSettings() { | 34 void TestAutofillClient::ShowAutofillSettings() { |
| 32 } | 35 } |
| 33 | 36 |
| 34 void TestAutofillClient::ConfirmSaveCreditCard( | 37 void TestAutofillClient::ConfirmSaveCreditCard( |
| 38 AutofillManager* autofill_manager, |
| 35 const AutofillMetrics& metric_logger, | 39 const AutofillMetrics& metric_logger, |
| 36 const base::Closure& save_card_callback) { | 40 const base::Closure& save_card_callback) { |
| 37 } | 41 } |
| 38 | 42 |
| 39 bool TestAutofillClient::HasCreditCardScanFeature() { | 43 bool TestAutofillClient::HasCreditCardScanFeature() { |
| 40 return false; | 44 return false; |
| 41 } | 45 } |
| 42 | 46 |
| 43 void TestAutofillClient::ScanCreditCard( | 47 void TestAutofillClient::ScanCreditCard( |
| 44 const CreditCardScanCallback& callback) { | 48 const CreditCardScanCallback& callback) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 74 | 78 |
| 75 void TestAutofillClient::DetectAccountCreationForms( | 79 void TestAutofillClient::DetectAccountCreationForms( |
| 76 const std::vector<autofill::FormStructure*>& forms) { | 80 const std::vector<autofill::FormStructure*>& forms) { |
| 77 } | 81 } |
| 78 | 82 |
| 79 void TestAutofillClient::DidFillOrPreviewField( | 83 void TestAutofillClient::DidFillOrPreviewField( |
| 80 const base::string16& autofilled_value, | 84 const base::string16& autofilled_value, |
| 81 const base::string16& profile_full_name) { | 85 const base::string16& profile_full_name) { |
| 82 } | 86 } |
| 83 | 87 |
| 88 scoped_ptr<infobars::InfoBar> TestAutofillClient::CreateInfoBar( |
| 89 scoped_ptr<ConfirmInfoBarDelegate> delegate) { |
| 90 return scoped_ptr<infobars::InfoBar>(nullptr); |
| 91 } |
| 92 |
| 84 } // namespace autofill | 93 } // namespace autofill |
| OLD | NEW |