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.
5 #include "components/autofill/core/browser/android/test_auxiliary_profile_loader_android.h"
9 TestAuxiliaryProfileLoader::TestAuxiliaryProfileLoader() {
12 TestAuxiliaryProfileLoader::~TestAuxiliaryProfileLoader() {
15 bool TestAuxiliaryProfileLoader::GetHasPermissions() const {
19 base::string16 TestAuxiliaryProfileLoader::GetFirstName() const {
23 base::string16 TestAuxiliaryProfileLoader::GetMiddleName() const {
27 base::string16 TestAuxiliaryProfileLoader::GetLastName() const {
31 base::string16 TestAuxiliaryProfileLoader::GetSuffix() const {
35 base::string16 TestAuxiliaryProfileLoader::GetStreet() const {
39 base::string16 TestAuxiliaryProfileLoader::GetPostOfficeBox() const {
40 return post_office_box_;
43 base::string16 TestAuxiliaryProfileLoader::GetCity() const {
47 base::string16 TestAuxiliaryProfileLoader::GetNeighborhood() const {
51 base::string16 TestAuxiliaryProfileLoader::GetRegion() const {
55 base::string16 TestAuxiliaryProfileLoader::GetPostalCode() const {
59 base::string16 TestAuxiliaryProfileLoader::GetCountry() const {
63 void TestAuxiliaryProfileLoader::GetEmailAddresses(
64 std::vector<base::string16>* email_addresses) const {
65 *email_addresses = email_addresses_;
68 void TestAuxiliaryProfileLoader::GetPhoneNumbers(
69 std::vector<base::string16>* phone_numbers) const {
70 *phone_numbers = phone_numbers_;
73 void TestAuxiliaryProfileLoader::SetFirstName(
74 const base::string16& first_name) {
75 first_name_ = first_name;
78 void TestAuxiliaryProfileLoader::SetMiddleName(
79 const base::string16& middle_name) {
80 middle_name_ = middle_name;
83 void TestAuxiliaryProfileLoader::SetLastName(const base::string16& last_name) {
84 last_name_ = last_name;
87 void TestAuxiliaryProfileLoader::SetSuffix(const base::string16& suffix) {
91 void TestAuxiliaryProfileLoader::SetStreet(const base::string16& street) {
95 void TestAuxiliaryProfileLoader::SetPostOfficeBox(
96 const base::string16& post_office_box) {
97 post_office_box_ = post_office_box;
100 void TestAuxiliaryProfileLoader::SetNeighborhood(
101 const base::string16& neighborhood) {
102 neighborhood_ = neighborhood;
105 void TestAuxiliaryProfileLoader::SetRegion(const base::string16& region) {
109 void TestAuxiliaryProfileLoader::SetCity(const base::string16& city) {
113 void TestAuxiliaryProfileLoader::SetPostalCode(
114 const base::string16& postal_code) {
115 postal_code_ = postal_code;
118 void TestAuxiliaryProfileLoader::SetCountry(const base::string16& country) {
122 void TestAuxiliaryProfileLoader::SetEmailAddresses(
123 const std::vector<base::string16>& addresses) {
124 email_addresses_ = addresses;
127 void TestAuxiliaryProfileLoader::SetPhoneNumbers(
128 const std::vector<base::string16>& phone_numbers) {
129 phone_numbers_ = phone_numbers;
132 } // namespace autofill