Home | History | Annotate | Download | only in browser
      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
      3 // found in the LICENSE file.
      4 
      5 #include "components/autofill/core/browser/test_autofill_client.h"
      6 
      7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
      8 
      9 namespace autofill {
     10 
     11 TestAutofillClient::TestAutofillClient() {
     12 }
     13 TestAutofillClient::~TestAutofillClient() {
     14 }
     15 
     16 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() {
     17   return NULL;
     18 }
     19 
     20 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() {
     21   return scoped_refptr<AutofillWebDataService>(NULL);
     22 }
     23 
     24 PrefService* TestAutofillClient::GetPrefs() {
     25   return prefs_.get();
     26 }
     27 
     28 void TestAutofillClient::HideRequestAutocompleteDialog() {
     29 }
     30 
     31 void TestAutofillClient::ShowAutofillSettings() {
     32 }
     33 
     34 void TestAutofillClient::ConfirmSaveCreditCard(
     35     const AutofillMetrics& metric_logger,
     36     const base::Closure& save_card_callback) {
     37 }
     38 
     39 void TestAutofillClient::ShowRequestAutocompleteDialog(
     40     const FormData& form,
     41     const GURL& source_url,
     42     const ResultCallback& callback) {
     43 }
     44 
     45 void TestAutofillClient::ShowAutofillPopup(
     46     const gfx::RectF& element_bounds,
     47     base::i18n::TextDirection text_direction,
     48     const std::vector<base::string16>& values,
     49     const std::vector<base::string16>& labels,
     50     const std::vector<base::string16>& icons,
     51     const std::vector<int>& identifiers,
     52     base::WeakPtr<AutofillPopupDelegate> delegate) {
     53 }
     54 
     55 void TestAutofillClient::UpdateAutofillPopupDataListValues(
     56     const std::vector<base::string16>& values,
     57     const std::vector<base::string16>& labels) {
     58 }
     59 
     60 void TestAutofillClient::HideAutofillPopup() {
     61 }
     62 
     63 bool TestAutofillClient::IsAutocompleteEnabled() {
     64   return true;
     65 }
     66 
     67 void TestAutofillClient::DetectAccountCreationForms(
     68     const std::vector<autofill::FormStructure*>& forms) {
     69 }
     70 
     71 void TestAutofillClient::DidFillOrPreviewField(
     72     const base::string16& autofilled_value,
     73     const base::string16& profile_full_name) {
     74 }
     75 
     76 }  // namespace autofill
     77