Chromium Code Reviews| 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_AUXILIARY_PROFILE_LOADER_MOCK_H_ | |
| 6 #define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_MOCK_H_ | |
| 7 | |
| 8 #include "chrome/browser/autofill/i_auxiliary_profile_loader.h" | |
| 9 | |
| 10 class AuxiliaryProfileLoaderMock : public IAuxiliaryProfileLoader { | |
| 11 public: | |
| 12 explicit AuxiliaryProfileLoaderMock(); | |
| 13 | |
| 14 // Address info | |
| 15 virtual string16 GetStreet(); | |
| 16 void SetStreet(string16); | |
|
aurimas (slooooooooow)
2013/02/27 01:56:00
This should be called set_street() since it is a s
apiccion
2013/02/28 01:31:04
Think this violates separation of interface from u
| |
| 17 virtual string16 GetPobox(); | |
| 18 void SetPobox(string16); | |
|
aurimas (slooooooooow)
2013/02/27 01:56:00
Same for all the Set... functions below.
apiccion
2013/02/28 01:31:04
See comment above.
| |
| 19 virtual string16 GetNeighborhood(); | |
| 20 void SetNeighborhood(string16); | |
| 21 virtual string16 GetRegion(); | |
| 22 void SetRegion(string16); | |
| 23 virtual string16 GetCity(); | |
| 24 void SetCity(string16); | |
| 25 virtual string16 GetPostalCode(); | |
| 26 void SetPostalCode(string16); | |
| 27 virtual string16 GetCountry(); | |
| 28 void SetCountry(string16); | |
| 29 | |
| 30 // Name info | |
| 31 virtual string16 GetFirstName(); | |
| 32 void SetFirstName(string16); | |
| 33 virtual string16 GetMiddleName(); | |
| 34 void SetMiddleName(string16); | |
| 35 virtual string16 GetLastName(); | |
| 36 void SetLastName(string16); | |
| 37 virtual string16 GetSuffix(); | |
| 38 void SetSuffix(string16); | |
| 39 | |
| 40 // Email info | |
| 41 virtual std::vector<string16> GetEmailAddresses(); | |
| 42 void SetEmailAddresses(std::vector<string16>); | |
| 43 | |
| 44 // Phone info | |
| 45 virtual std::vector<string16> GetPhoneNumbers(); | |
| 46 void SetPhoneNumbers(std::vector<string16>); | |
| 47 | |
| 48 private: | |
| 49 string16 street_; | |
| 50 string16 pobox_; | |
| 51 string16 neighborhood_; | |
| 52 string16 region_; | |
| 53 string16 city_; | |
| 54 string16 postalCode_; | |
| 55 string16 country_; | |
| 56 string16 firstName_; | |
| 57 string16 middleName_; | |
| 58 string16 lastName_; | |
| 59 string16 suffix_; | |
| 60 std::vector<string16> emailAddresses_; | |
| 61 std::vector<string16> phoneNumbers_; | |
| 62 }; | |
| 63 | |
| 64 #endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_MOCK_H_ | |
| OLD | NEW |