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/android/test_auxiliary_profile_loader_android.h" 6 7 namespace autofill { 8 TestAuxiliaryProfileLoader()9TestAuxiliaryProfileLoader::TestAuxiliaryProfileLoader() { 10 } 11 ~TestAuxiliaryProfileLoader()12TestAuxiliaryProfileLoader::~TestAuxiliaryProfileLoader() { 13 } 14 GetHasPermissions() const15bool TestAuxiliaryProfileLoader::GetHasPermissions() const { 16 return true; 17 } 18 GetFirstName() const19base::string16 TestAuxiliaryProfileLoader::GetFirstName() const { 20 return first_name_; 21 } 22 GetMiddleName() const23base::string16 TestAuxiliaryProfileLoader::GetMiddleName() const { 24 return middle_name_; 25 } 26 GetLastName() const27base::string16 TestAuxiliaryProfileLoader::GetLastName() const { 28 return last_name_; 29 } 30 GetSuffix() const31base::string16 TestAuxiliaryProfileLoader::GetSuffix() const { 32 return suffix_; 33 } 34 GetStreet() const35base::string16 TestAuxiliaryProfileLoader::GetStreet() const { 36 return street_; 37 } 38 GetPostOfficeBox() const39base::string16 TestAuxiliaryProfileLoader::GetPostOfficeBox() const { 40 return post_office_box_; 41 } 42 GetCity() const43base::string16 TestAuxiliaryProfileLoader::GetCity() const { 44 return city_; 45 } 46 GetNeighborhood() const47base::string16 TestAuxiliaryProfileLoader::GetNeighborhood() const { 48 return neighborhood_; 49 } 50 GetRegion() const51base::string16 TestAuxiliaryProfileLoader::GetRegion() const { 52 return region_; 53 } 54 GetPostalCode() const55base::string16 TestAuxiliaryProfileLoader::GetPostalCode() const { 56 return postal_code_; 57 } 58 GetCountry() const59base::string16 TestAuxiliaryProfileLoader::GetCountry() const { 60 return country_; 61 } 62 GetEmailAddresses(std::vector<base::string16> * email_addresses) const63void TestAuxiliaryProfileLoader::GetEmailAddresses( 64 std::vector<base::string16>* email_addresses) const { 65 *email_addresses = email_addresses_; 66 } 67 GetPhoneNumbers(std::vector<base::string16> * phone_numbers) const68void TestAuxiliaryProfileLoader::GetPhoneNumbers( 69 std::vector<base::string16>* phone_numbers) const { 70 *phone_numbers = phone_numbers_; 71 } 72 SetFirstName(const base::string16 & first_name)73void TestAuxiliaryProfileLoader::SetFirstName( 74 const base::string16& first_name) { 75 first_name_ = first_name; 76 } 77 SetMiddleName(const base::string16 & middle_name)78void TestAuxiliaryProfileLoader::SetMiddleName( 79 const base::string16& middle_name) { 80 middle_name_ = middle_name; 81 } 82 SetLastName(const base::string16 & last_name)83void TestAuxiliaryProfileLoader::SetLastName(const base::string16& last_name) { 84 last_name_ = last_name; 85 } 86 SetSuffix(const base::string16 & suffix)87void TestAuxiliaryProfileLoader::SetSuffix(const base::string16& suffix) { 88 suffix_ = suffix; 89 } 90 SetStreet(const base::string16 & street)91void TestAuxiliaryProfileLoader::SetStreet(const base::string16& street) { 92 street_ = street; 93 } 94 SetPostOfficeBox(const base::string16 & post_office_box)95void TestAuxiliaryProfileLoader::SetPostOfficeBox( 96 const base::string16& post_office_box) { 97 post_office_box_ = post_office_box; 98 } 99 SetNeighborhood(const base::string16 & neighborhood)100void TestAuxiliaryProfileLoader::SetNeighborhood( 101 const base::string16& neighborhood) { 102 neighborhood_ = neighborhood; 103 } 104 SetRegion(const base::string16 & region)105void TestAuxiliaryProfileLoader::SetRegion(const base::string16& region) { 106 region_ = region; 107 } 108 SetCity(const base::string16 & city)109void TestAuxiliaryProfileLoader::SetCity(const base::string16& city) { 110 city_ = city; 111 } 112 SetPostalCode(const base::string16 & postal_code)113void TestAuxiliaryProfileLoader::SetPostalCode( 114 const base::string16& postal_code) { 115 postal_code_ = postal_code; 116 } 117 SetCountry(const base::string16 & country)118void TestAuxiliaryProfileLoader::SetCountry(const base::string16& country) { 119 country_ = country; 120 } 121 SetEmailAddresses(const std::vector<base::string16> & addresses)122void TestAuxiliaryProfileLoader::SetEmailAddresses( 123 const std::vector<base::string16>& addresses) { 124 email_addresses_ = addresses; 125 } 126 SetPhoneNumbers(const std::vector<base::string16> & phone_numbers)127void TestAuxiliaryProfileLoader::SetPhoneNumbers( 128 const std::vector<base::string16>& phone_numbers) { 129 phone_numbers_ = phone_numbers; 130 } 131 132 } // namespace autofill 133