Chromium Code Reviews| Index: chrome/browser/autofill/android/test_auxiliary_profile_loader_android.h |
| diff --git a/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.h b/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..65aee984d0d4e43cec355c5b74ce45366e7faf50 |
| --- /dev/null |
| +++ b/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.h |
| @@ -0,0 +1,65 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_ |
| +#define CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "chrome/browser/autofill/android/auxiliary_profile_loader_android.h" |
| + |
| +class TestAuxiliaryProfileLoader : public autofill::AuxiliaryProfileLoader { |
| + // Mock object for unit testing |AuxiliaryProfilesAndroid| |
| + public: |
| + TestAuxiliaryProfileLoader(); |
| + ~TestAuxiliaryProfileLoader(); |
| + |
| + virtual string16 GetFirstName() const OVERRIDE; |
| + virtual string16 GetMiddleName() const OVERRIDE; |
| + virtual string16 GetLastName() const OVERRIDE; |
| + virtual string16 GetSuffix() const OVERRIDE; |
| + |
| + virtual string16 GetStreet() const OVERRIDE; |
| + virtual string16 GetCity() const OVERRIDE; |
| + virtual string16 GetNeighborhood() const OVERRIDE; |
| + virtual string16 GetPostalCode() const OVERRIDE; |
| + virtual string16 GetRegion() const OVERRIDE; |
| + virtual string16 GetPostOfficeBox() const OVERRIDE; |
| + virtual string16 GetCountry() const OVERRIDE; |
| + |
| + virtual void GetEmailAddresses(std::vector<string16>*) const OVERRIDE; |
| + virtual void GetPhoneNumbers(std::vector<string16>*) const OVERRIDE; |
| + |
| + void SetFirstName(string16); |
| + void SetMiddleName(string16); |
| + void SetLastName(string16); |
| + void SetSuffix(string16); |
| + |
| + void SetStreet(string16); |
| + void SetPobox(string16); |
| + void SetNeighborhood(string16); |
| + void SetRegion(string16); |
| + void SetCity(string16); |
| + void SetPostalCode(string16); |
| + void SetCountry(string16); |
| + |
| + void SetEmailAddresses(std::vector<string16>); |
| + void SetPhoneNumbers(std::vector<string16>); |
| + |
| + private: |
| + string16 street_; |
| + string16 pobox_; |
| + string16 neighborhood_; |
| + string16 region_; |
| + string16 city_; |
| + string16 postalCode_; |
| + string16 country_; |
| + string16 firstName_; |
| + string16 middleName_; |
| + string16 lastName_; |
| + string16 suffix_; |
| + std::vector<string16> emailAddresses_; |
| + std::vector<string16> phoneNumbers_; |
|
Ilya Sherman
2013/03/05 00:42:38
nit: hacker_case for all of these.
|
| +}; |
| + |
| +#endif // CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_ |