OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 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 "chrome/browser/autofill/android/test_auxiliary_profile_loader_android. h" | |
6 | |
7 TestAuxiliaryProfileLoader::TestAuxiliaryProfileLoader() { | |
8 } | |
9 | |
10 TestAuxiliaryProfileLoader::~TestAuxiliaryProfileLoader() { | |
11 } | |
12 | |
13 string16 TestAuxiliaryProfileLoader::GetFirstName() const { | |
14 return firstName_; | |
15 } | |
16 | |
17 string16 TestAuxiliaryProfileLoader::GetMiddleName() const { | |
18 return middleName_; | |
19 } | |
20 | |
21 string16 TestAuxiliaryProfileLoader::GetLastName() const { | |
22 return lastName_; | |
23 } | |
24 | |
25 string16 TestAuxiliaryProfileLoader::GetSuffix() const { | |
26 return suffix_; | |
27 } | |
28 | |
29 string16 TestAuxiliaryProfileLoader::GetStreet() const { | |
30 return street_; | |
31 } | |
32 | |
33 string16 TestAuxiliaryProfileLoader::GetPostOfficeBox() const { | |
34 return pobox_; | |
35 } | |
36 | |
37 string16 TestAuxiliaryProfileLoader::GetCity() const { | |
38 return city_; | |
39 } | |
40 | |
41 string16 TestAuxiliaryProfileLoader::GetNeighborhood() const { | |
42 return neighborhood_; | |
43 } | |
44 | |
45 string16 TestAuxiliaryProfileLoader::GetRegion() const { | |
46 return region_; | |
47 } | |
48 | |
49 string16 TestAuxiliaryProfileLoader::GetPostalCode() const { | |
50 return postalCode_; | |
51 } | |
52 | |
53 string16 TestAuxiliaryProfileLoader::GetCountry() const { | |
54 return country_; | |
55 } | |
56 | |
57 void TestAuxiliaryProfileLoader::GetEmailAddresses( | |
58 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.
| |
59 *emailAddresses = email_addresses_; | |
60 } | |
61 | |
62 void TestAuxiliaryProfileLoader::GetPhoneNumbers( | |
63 std::vector<string16>* phoneNumbers) const { | |
64 *phoneNumbers = phone_numbers_; | |
65 } | |
66 | |
67 void TestAuxiliaryProfileLoader::SetFirstName(string16 firstName) { | |
68 firstName_ = firstName; | |
69 } | |
70 | |
71 void TestAuxiliaryProfileLoader::SetMiddleName(string16 middleName) { | |
72 middleName_ = middleName; | |
73 } | |
74 | |
75 void TestAuxiliaryProfileLoader::SetLastName(string16 lastName) { | |
76 lastName_ = lastName; | |
77 } | |
78 | |
79 void TestAuxiliaryProfileLoader::SetSuffix(string16 suffix) { | |
80 suffix_ = suffix; | |
81 } | |
82 | |
83 void TestAuxiliaryProfileLoader::SetStreet(string16 street) { | |
84 street_ = street; | |
85 } | |
86 | |
87 void TestAuxiliaryProfileLoader::SetPobox(string16 pobox) { | |
88 pobox_ = pobox; | |
89 } | |
90 | |
91 void TestAuxiliaryProfileLoader::SetNeighborhood(string16 neighborhood) { | |
92 neighborhood_ = neighborhood; | |
93 } | |
94 | |
95 void TestAuxiliaryProfileLoader::SetRegion(string16 region) { | |
96 region_ = region; | |
97 } | |
98 | |
99 void TestAuxiliaryProfileLoader::SetCity(string16 city) { | |
100 city_ = city; | |
101 } | |
102 | |
103 void TestAuxiliaryProfileLoader::SetPostalCode(string16 postalCode) { | |
104 postalCode_ = postalCode; | |
105 } | |
106 | |
107 void TestAuxiliaryProfileLoader::SetCountry(string16 country) { | |
108 country_ = country; | |
109 } | |
110 | |
111 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.
| |
112 email_addresses_ = addr; | |
113 } | |
114 | |
115 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.
| |
116 phone_numbers_ = pns; | |
117 } | |
OLD | NEW |