OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef COMPONENTS_AUTOFILL_BROWSER_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROI
D_H_ | |
6 #define COMPONENTS_AUTOFILL_BROWSER_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROI
D_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "components/autofill/browser/android/auxiliary_profile_loader_android.h
" | |
10 | |
11 namespace autofill { | |
12 | |
13 class TestAuxiliaryProfileLoader | |
14 : public autofill::AuxiliaryProfileLoaderAndroid { | |
15 // Mock object for unit testing |AuxiliaryProfilesAndroid| | |
16 public: | |
17 TestAuxiliaryProfileLoader(); | |
18 virtual ~TestAuxiliaryProfileLoader(); | |
19 | |
20 virtual bool GetHasPermissions() const OVERRIDE; | |
21 | |
22 virtual base::string16 GetFirstName() const OVERRIDE; | |
23 virtual base::string16 GetMiddleName() const OVERRIDE; | |
24 virtual base::string16 GetLastName() const OVERRIDE; | |
25 virtual base::string16 GetSuffix() const OVERRIDE; | |
26 | |
27 virtual base::string16 GetStreet() const OVERRIDE; | |
28 virtual base::string16 GetCity() const OVERRIDE; | |
29 virtual base::string16 GetNeighborhood() const OVERRIDE; | |
30 virtual base::string16 GetPostalCode() const OVERRIDE; | |
31 virtual base::string16 GetRegion() const OVERRIDE; | |
32 virtual base::string16 GetPostOfficeBox() const OVERRIDE; | |
33 virtual base::string16 GetCountry() const OVERRIDE; | |
34 | |
35 virtual void GetEmailAddresses( | |
36 std::vector<base::string16>* email_addresses) const OVERRIDE; | |
37 virtual void GetPhoneNumbers( | |
38 std::vector<base::string16>* phone_numbers) const OVERRIDE; | |
39 | |
40 void SetFirstName(const base::string16& first_name); | |
41 void SetMiddleName(const base::string16& middle_name); | |
42 void SetLastName(const base::string16& last_name); | |
43 void SetSuffix(const base::string16& suffix); | |
44 | |
45 void SetStreet(const base::string16& street); | |
46 void SetPostOfficeBox(const base::string16& post_office_box); | |
47 void SetNeighborhood(const base::string16& neighborhood); | |
48 void SetRegion(const base::string16& region); | |
49 void SetCity(const base::string16& city); | |
50 void SetPostalCode(const base::string16& postal_code); | |
51 void SetCountry(const base::string16& country); | |
52 | |
53 void SetEmailAddresses(const std::vector<base::string16>& email_addresses); | |
54 void SetPhoneNumbers(const std::vector<base::string16>& phone_numbers); | |
55 | |
56 private: | |
57 base::string16 street_; | |
58 base::string16 post_office_box_; | |
59 base::string16 neighborhood_; | |
60 base::string16 region_; | |
61 base::string16 city_; | |
62 base::string16 postal_code_; | |
63 base::string16 country_; | |
64 base::string16 first_name_; | |
65 base::string16 middle_name_; | |
66 base::string16 last_name_; | |
67 base::string16 suffix_; | |
68 std::vector<base::string16> email_addresses_; | |
69 std::vector<base::string16> phone_numbers_; | |
70 }; | |
71 | |
72 } // namespace autofill | |
73 | |
74 #endif // COMPONENTS_AUTOFILL_BROWSER_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_AND
ROID_H_ | |
OLD | NEW |