Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: chrome/browser/autofill/android/test_auxiliary_profile_loader_android.cc

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed various nits. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/android/test_auxiliary_profile_loader_android.cc
diff --git a/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.cc b/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..69205f19df8aec24df55a125a5e7bff79cb1e31a
--- /dev/null
+++ b/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.cc
@@ -0,0 +1,117 @@
+// Copyright (c) 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 "chrome/browser/autofill/android/test_auxiliary_profile_loader_android.h"
+
+TestAuxiliaryProfileLoader::TestAuxiliaryProfileLoader() {
+}
+
+TestAuxiliaryProfileLoader::~TestAuxiliaryProfileLoader() {
+}
+
+string16 TestAuxiliaryProfileLoader::GetFirstName() const {
+ return firstName_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetMiddleName() const {
+ return middleName_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetLastName() const {
+ return lastName_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetSuffix() const {
+ return suffix_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetStreet() const {
+ return street_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetPostOfficeBox() const {
+ return pobox_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetCity() const {
+ return city_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetNeighborhood() const {
+ return neighborhood_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetRegion() const {
+ return region_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetPostalCode() const {
+ return postalCode_;
+}
+
+string16 TestAuxiliaryProfileLoader::GetCountry() const {
+ return country_;
+}
+
+void TestAuxiliaryProfileLoader::GetEmailAddresses(
+ std::vector<string16>* emailAddresses) const {
Ilya Sherman 2013/03/09 01:42:58 nit: hacker_case for this and all other variables
apiccion 2013/03/09 03:43:17 Done.
+ *emailAddresses = email_addresses_;
+}
+
+void TestAuxiliaryProfileLoader::GetPhoneNumbers(
+ std::vector<string16>* phoneNumbers) const {
+ *phoneNumbers = phone_numbers_;
+}
+
+void TestAuxiliaryProfileLoader::SetFirstName(string16 firstName) {
+ firstName_ = firstName;
+}
+
+void TestAuxiliaryProfileLoader::SetMiddleName(string16 middleName) {
+ middleName_ = middleName;
+}
+
+void TestAuxiliaryProfileLoader::SetLastName(string16 lastName) {
+ lastName_ = lastName;
+}
+
+void TestAuxiliaryProfileLoader::SetSuffix(string16 suffix) {
+ suffix_ = suffix;
+}
+
+void TestAuxiliaryProfileLoader::SetStreet(string16 street) {
+ street_ = street;
+}
+
+void TestAuxiliaryProfileLoader::SetPobox(string16 pobox) {
+ pobox_ = pobox;
+}
+
+void TestAuxiliaryProfileLoader::SetNeighborhood(string16 neighborhood) {
+ neighborhood_ = neighborhood;
+}
+
+void TestAuxiliaryProfileLoader::SetRegion(string16 region) {
+ region_ = region;
+}
+
+void TestAuxiliaryProfileLoader::SetCity(string16 city) {
+ city_ = city;
+}
+
+void TestAuxiliaryProfileLoader::SetPostalCode(string16 postalCode) {
+ postalCode_ = postalCode;
+}
+
+void TestAuxiliaryProfileLoader::SetCountry(string16 country) {
+ country_ = country;
+}
+
+void TestAuxiliaryProfileLoader::SetEmailAddresses(std::vector<string16> addr) {
Ilya Sherman 2013/03/09 01:42:58 nit: Please spell out "address"
apiccion 2013/03/09 03:43:17 Done.
+ email_addresses_ = addr;
+}
+
+void TestAuxiliaryProfileLoader::SetPhoneNumbers(std::vector<string16> pns) {
Ilya Sherman 2013/03/09 01:42:58 nit: Please spell out "phone_numbers"
apiccion 2013/03/09 03:43:17 Done.
+ phone_numbers_ = pns;
+}

Powered by Google App Engine
This is Rietveld 408576698