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