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 #ifndef CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_ | |
6 #define CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "chrome/browser/autofill/android/auxiliary_profile_loader_android.h" | |
10 | |
11 class TestAuxiliaryProfileLoader : public autofill::AuxiliaryProfileLoader { | |
12 // Mock object for unit testing |AuxiliaryProfilesAndroid| | |
13 public: | |
14 TestAuxiliaryProfileLoader(); | |
15 ~TestAuxiliaryProfileLoader(); | |
16 | |
17 virtual string16 GetFirstName() const OVERRIDE; | |
18 virtual string16 GetMiddleName() const OVERRIDE; | |
19 virtual string16 GetLastName() const OVERRIDE; | |
20 virtual string16 GetSuffix() const OVERRIDE; | |
21 | |
22 virtual string16 GetStreet() const OVERRIDE; | |
23 virtual string16 GetCity() const OVERRIDE; | |
24 virtual string16 GetNeighborhood() const OVERRIDE; | |
25 virtual string16 GetPostalCode() const OVERRIDE; | |
26 virtual string16 GetRegion() const OVERRIDE; | |
27 virtual string16 GetPostOfficeBox() const OVERRIDE; | |
28 virtual string16 GetCountry() const OVERRIDE; | |
29 | |
30 virtual void GetEmailAddresses(std::vector<string16>*) const OVERRIDE; | |
31 virtual void GetPhoneNumbers(std::vector<string16>*) const OVERRIDE; | |
32 | |
33 void SetFirstName(string16); | |
34 void SetMiddleName(string16); | |
35 void SetLastName(string16); | |
36 void SetSuffix(string16); | |
37 | |
38 void SetStreet(string16); | |
39 void SetPobox(string16); | |
40 void SetNeighborhood(string16); | |
41 void SetRegion(string16); | |
42 void SetCity(string16); | |
43 void SetPostalCode(string16); | |
44 void SetCountry(string16); | |
45 | |
46 void SetEmailAddresses(std::vector<string16>); | |
47 void SetPhoneNumbers(std::vector<string16>); | |
48 | |
49 private: | |
50 string16 street_; | |
51 string16 pobox_; | |
52 string16 neighborhood_; | |
53 string16 region_; | |
54 string16 city_; | |
55 string16 postalCode_; | |
56 string16 country_; | |
57 string16 firstName_; | |
58 string16 middleName_; | |
59 string16 lastName_; | |
60 string16 suffix_; | |
61 std::vector<string16> emailAddresses_; | |
62 std::vector<string16> phoneNumbers_; | |
Ilya Sherman
2013/03/05 00:42:38
nit: hacker_case for all of these.
| |
63 }; | |
64 | |
65 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID _H_ | |
OLD | NEW |