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/webdata/autofill_webdata_service.h" | 7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 8 #include "components/infobars/core/infobar_manager.h" |
8 | 9 |
9 namespace autofill { | 10 namespace autofill { |
10 | 11 |
11 TestAutofillClient::TestAutofillClient() { | 12 TestAutofillClient::TestAutofillClient() { |
12 } | 13 } |
13 TestAutofillClient::~TestAutofillClient() { | 14 TestAutofillClient::~TestAutofillClient() { |
14 } | 15 } |
15 | 16 |
16 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() { | 17 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() { |
17 return NULL; | 18 return nullptr; |
18 } | 19 } |
19 | 20 |
20 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() { | 21 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() { |
21 return scoped_refptr<AutofillWebDataService>(NULL); | 22 return scoped_refptr<AutofillWebDataService>(nullptr); |
22 } | 23 } |
23 | 24 |
24 PrefService* TestAutofillClient::GetPrefs() { | 25 PrefService* TestAutofillClient::GetPrefs() { |
25 return prefs_.get(); | 26 return prefs_.get(); |
26 } | 27 } |
27 | 28 |
28 void TestAutofillClient::HideRequestAutocompleteDialog() { | 29 void TestAutofillClient::HideRequestAutocompleteDialog() { |
29 } | 30 } |
30 | 31 |
31 void TestAutofillClient::ShowAutofillSettings() { | 32 void TestAutofillClient::ShowAutofillSettings() { |
32 } | 33 } |
33 | 34 |
34 void TestAutofillClient::ShowUnmaskPrompt() { | 35 void TestAutofillClient::ShowUnmaskPrompt() { |
35 } | 36 } |
36 | 37 |
37 void TestAutofillClient::ConfirmSaveCreditCard( | |
38 const base::Closure& save_card_callback) { | |
39 } | |
40 | |
41 bool TestAutofillClient::HasCreditCardScanFeature() { | 38 bool TestAutofillClient::HasCreditCardScanFeature() { |
42 return false; | 39 return false; |
43 } | 40 } |
44 | 41 |
45 void TestAutofillClient::ScanCreditCard( | 42 void TestAutofillClient::ScanCreditCard( |
46 const CreditCardScanCallback& callback) { | 43 const CreditCardScanCallback& callback) { |
47 } | 44 } |
48 | 45 |
49 void TestAutofillClient::ShowRequestAutocompleteDialog( | 46 void TestAutofillClient::ShowRequestAutocompleteDialog( |
50 const FormData& form, | 47 const FormData& form, |
(...skipping 26 matching lines...) Expand all Loading... |
77 } | 74 } |
78 | 75 |
79 void TestAutofillClient::DidFillOrPreviewField( | 76 void TestAutofillClient::DidFillOrPreviewField( |
80 const base::string16& autofilled_value, | 77 const base::string16& autofilled_value, |
81 const base::string16& profile_full_name) { | 78 const base::string16& profile_full_name) { |
82 } | 79 } |
83 | 80 |
84 void TestAutofillClient::OnFirstUserGestureObserved() { | 81 void TestAutofillClient::OnFirstUserGestureObserved() { |
85 } | 82 } |
86 | 83 |
| 84 infobars::InfoBarManager* TestAutofillClient::GetInfoBarManager() { |
| 85 return nullptr; |
| 86 } |
| 87 |
87 } // namespace autofill | 88 } // namespace autofill |
OLD | NEW |