Chromium Code Reviews| Index: chrome/browser/autofill/auxiliary_profile_loader_mock.h |
| diff --git a/chrome/browser/autofill/auxiliary_profile_loader_mock.h b/chrome/browser/autofill/auxiliary_profile_loader_mock.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..91bd9b6f3a1507479d2e3412a6bc99f9d6cdce83 |
| --- /dev/null |
| +++ b/chrome/browser/autofill/auxiliary_profile_loader_mock.h |
| @@ -0,0 +1,59 @@ |
| +// 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_AUXILIARY_PROFILE_LOADER_MOCK_H_ |
| +#define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_MOCK_H_ |
| + |
| +#include "chrome/browser/autofill/auxiliary_profile_loader.h" |
| + |
| +class AuxiliaryProfileLoaderMock : public AuxiliaryProfileLoader { |
|
Ilya Sherman
2013/03/01 01:55:04
nit: This class should be named "TestAuxiliaryProf
apiccion
2013/03/02 03:37:01
Done.
|
| + public: |
| + explicit AuxiliaryProfileLoaderMock(); |
|
Ilya Sherman
2013/03/01 01:55:04
nit: No need for explicit.
Ilya Sherman
2013/03/01 01:55:04
nit: Include an explicitly defined destructor.
apiccion
2013/03/02 03:37:01
Done.
apiccion
2013/03/02 03:37:01
Done.
|
| + |
| + virtual string16 GetCity() OVERRIDE; |
| + virtual string16 GetCountry() OVERRIDE; |
| + virtual string16 GetFirstName() OVERRIDE; |
| + virtual string16 GetMiddleName() OVERRIDE; |
| + virtual string16 GetLastName() OVERRIDE; |
| + virtual string16 GetSuffix() OVERRIDE; |
| + virtual string16 GetNeighborhood() OVERRIDE; |
| + virtual string16 GetPobox() OVERRIDE; |
| + virtual string16 GetPostalCode() OVERRIDE; |
| + virtual string16 GetRegion() OVERRIDE; |
| + virtual string16 GetStreet() OVERRIDE; |
| + virtual std::vector<string16> GetEmailAddresses() OVERRIDE; |
| + virtual std::vector<string16> GetPhoneNumbers() OVERRIDE; |
| + |
| + void SetFirstName(string16); |
| + void SetMiddleName(string16); |
| + void SetLastName(string16); |
| + void SetSuffix(string16); |
| + void SetNeighborhood(string16); |
| + void SetPobox(string16); |
| + void SetPostalCode(string16); |
| + void SetRegion(string16); |
| + void SetStreet(string16); |
| + void SetCity(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_; |
| + DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfileLoaderMock); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_MOCK_H_ |