OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "components/autofill/content/browser/wallet/wallet_items.h" | 11 #include "components/autofill/content/browser/wallet/wallet_items.h" |
12 | 12 |
13 namespace autofill { | 13 namespace autofill { |
14 namespace wallet { | 14 namespace wallet { |
15 | 15 |
16 class Address; | 16 class Address; |
17 class FullWallet; | 17 class FullWallet; |
18 class GaiaAccount; | 18 class GaiaAccount; |
19 class Instrument; | 19 class Instrument; |
20 | 20 |
21 scoped_ptr<GaiaAccount> GetTestGaiaAccount(); | 21 scoped_ptr<GaiaAccount> GetTestGaiaAccount(); |
| 22 std::vector<base::string16> StreetAddress(const std::string& line1, |
| 23 const std::string& line2); |
22 scoped_ptr<Address> GetTestAddress(); | 24 scoped_ptr<Address> GetTestAddress(); |
23 scoped_ptr<Address> GetTestMinimalAddress(); | 25 scoped_ptr<Address> GetTestMinimalAddress(); |
24 scoped_ptr<FullWallet> GetTestFullWallet(); | 26 scoped_ptr<FullWallet> GetTestFullWallet(); |
25 scoped_ptr<FullWallet> GetTestFullWalletWithRequiredActions( | 27 scoped_ptr<FullWallet> GetTestFullWalletWithRequiredActions( |
26 const std::vector<RequiredAction>& action); | 28 const std::vector<RequiredAction>& action); |
27 scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly(); | 29 scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly(); |
28 scoped_ptr<Instrument> GetTestInstrument(); | 30 scoped_ptr<Instrument> GetTestInstrument(); |
29 scoped_ptr<Instrument> GetTestAddressUpgradeInstrument(); | 31 scoped_ptr<Instrument> GetTestAddressUpgradeInstrument(); |
30 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument(); | 32 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument(); |
31 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument(); | 33 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument(); |
(...skipping 24 matching lines...) Expand all Loading... |
56 const std::vector<std::string>& users, size_t user_index); | 58 const std::vector<std::string>& users, size_t user_index); |
57 scoped_ptr<WalletItems> GetTestWalletItemsWithDefaultIds( | 59 scoped_ptr<WalletItems> GetTestWalletItemsWithDefaultIds( |
58 const std::string& default_instrument_id, | 60 const std::string& default_instrument_id, |
59 const std::string& default_address_id, | 61 const std::string& default_address_id, |
60 AmexPermission amex_permission); | 62 AmexPermission amex_permission); |
61 | 63 |
62 } // namespace wallet | 64 } // namespace wallet |
63 } // namespace autofill | 65 } // namespace autofill |
64 | 66 |
65 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ | 67 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ |
OLD | NEW |