diff options
Diffstat (limited to 'chromium/components/autofill/core/browser/android/test_auxiliary_profile_loader_android.cc')
-rw-r--r-- | chromium/components/autofill/core/browser/android/test_auxiliary_profile_loader_android.cc | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/chromium/components/autofill/core/browser/android/test_auxiliary_profile_loader_android.cc b/chromium/components/autofill/core/browser/android/test_auxiliary_profile_loader_android.cc new file mode 100644 index 00000000000..ced72c8a603 --- /dev/null +++ b/chromium/components/autofill/core/browser/android/test_auxiliary_profile_loader_android.cc @@ -0,0 +1,132 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "components/autofill/core/browser/android/test_auxiliary_profile_loader_android.h" + +namespace autofill { + +TestAuxiliaryProfileLoader::TestAuxiliaryProfileLoader() { +} + +TestAuxiliaryProfileLoader::~TestAuxiliaryProfileLoader() { +} + +bool TestAuxiliaryProfileLoader::GetHasPermissions() const { + return true; +} + +base::string16 TestAuxiliaryProfileLoader::GetFirstName() const { + return first_name_; +} + +base::string16 TestAuxiliaryProfileLoader::GetMiddleName() const { + return middle_name_; +} + +base::string16 TestAuxiliaryProfileLoader::GetLastName() const { + return last_name_; +} + +base::string16 TestAuxiliaryProfileLoader::GetSuffix() const { + return suffix_; +} + +base::string16 TestAuxiliaryProfileLoader::GetStreet() const { + return street_; +} + +base::string16 TestAuxiliaryProfileLoader::GetPostOfficeBox() const { + return post_office_box_; +} + +base::string16 TestAuxiliaryProfileLoader::GetCity() const { + return city_; +} + +base::string16 TestAuxiliaryProfileLoader::GetNeighborhood() const { + return neighborhood_; +} + +base::string16 TestAuxiliaryProfileLoader::GetRegion() const { + return region_; +} + +base::string16 TestAuxiliaryProfileLoader::GetPostalCode() const { + return postal_code_; +} + +base::string16 TestAuxiliaryProfileLoader::GetCountry() const { + return country_; +} + +void TestAuxiliaryProfileLoader::GetEmailAddresses( + std::vector<base::string16>* email_addresses) const { + *email_addresses = email_addresses_; +} + +void TestAuxiliaryProfileLoader::GetPhoneNumbers( + std::vector<base::string16>* phone_numbers) const { + *phone_numbers = phone_numbers_; +} + +void TestAuxiliaryProfileLoader::SetFirstName( + const base::string16& first_name) { + first_name_ = first_name; +} + +void TestAuxiliaryProfileLoader::SetMiddleName( + const base::string16& middle_name) { + middle_name_ = middle_name; +} + +void TestAuxiliaryProfileLoader::SetLastName(const base::string16& last_name) { + last_name_ = last_name; +} + +void TestAuxiliaryProfileLoader::SetSuffix(const base::string16& suffix) { + suffix_ = suffix; +} + +void TestAuxiliaryProfileLoader::SetStreet(const base::string16& street) { + street_ = street; +} + +void TestAuxiliaryProfileLoader::SetPostOfficeBox( + const base::string16& post_office_box) { + post_office_box_ = post_office_box; +} + +void TestAuxiliaryProfileLoader::SetNeighborhood( + const base::string16& neighborhood) { + neighborhood_ = neighborhood; +} + +void TestAuxiliaryProfileLoader::SetRegion(const base::string16& region) { + region_ = region; +} + +void TestAuxiliaryProfileLoader::SetCity(const base::string16& city) { + city_ = city; +} + +void TestAuxiliaryProfileLoader::SetPostalCode( + const base::string16& postal_code) { + postal_code_ = postal_code; +} + +void TestAuxiliaryProfileLoader::SetCountry(const base::string16& country) { + country_ = country; +} + +void TestAuxiliaryProfileLoader::SetEmailAddresses( + const std::vector<base::string16>& addresses) { + email_addresses_ = addresses; +} + +void TestAuxiliaryProfileLoader::SetPhoneNumbers( + const std::vector<base::string16>& phone_numbers) { + phone_numbers_ = phone_numbers; +} + +} // namespace autofill |