| 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 "base/strings/string16.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; | |
| 19 class Instrument; | |
| 20 | 18 |
| 21 scoped_ptr<GaiaAccount> GetTestGaiaAccount(); | |
| 22 std::vector<base::string16> StreetAddress(const std::string& line1, | 19 std::vector<base::string16> StreetAddress(const std::string& line1, |
| 23 const std::string& line2); | 20 const std::string& line2); |
| 24 scoped_ptr<Address> GetTestAddress(); | 21 scoped_ptr<Address> GetTestAddress(); |
| 25 scoped_ptr<Address> GetTestMinimalAddress(); | 22 scoped_ptr<Address> GetTestMinimalAddress(); |
| 26 scoped_ptr<FullWallet> GetTestFullWallet(); | 23 scoped_ptr<FullWallet> GetTestFullWallet(); |
| 27 scoped_ptr<FullWallet> GetTestFullWalletWithRequiredActions( | |
| 28 const std::vector<RequiredAction>& action); | |
| 29 scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly(); | 24 scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly(); |
| 30 scoped_ptr<Instrument> GetTestInstrument(); | |
| 31 scoped_ptr<Instrument> GetTestAddressUpgradeInstrument(); | |
| 32 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument(); | |
| 33 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument(); | |
| 34 scoped_ptr<WalletItems::LegalDocument> GetTestLegalDocument(); | |
| 35 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrument(); | |
| 36 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentExpired(); | |
| 37 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentInvalid(); | |
| 38 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentAmex( | |
| 39 AmexPermission amex_permission); | |
| 40 scoped_ptr<WalletItems::MaskedInstrument> GetTestNonDefaultMaskedInstrument(); | |
| 41 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentWithId( | |
| 42 const std::string& id); | |
| 43 scoped_ptr<WalletItems::MaskedInstrument> | |
| 44 GetTestMaskedInstrumentWithIdAndAddress( | |
| 45 const std::string& id, scoped_ptr<Address> address); | |
| 46 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentWithDetails( | |
| 47 const std::string& id, | |
| 48 scoped_ptr<Address> address, | |
| 49 WalletItems::MaskedInstrument::Type type, | |
| 50 WalletItems::MaskedInstrument::Status status); | |
| 51 scoped_ptr<Address> GetTestSaveableAddress(); | 25 scoped_ptr<Address> GetTestSaveableAddress(); |
| 52 scoped_ptr<Address> GetTestShippingAddress(); | 26 scoped_ptr<Address> GetTestShippingAddress(); |
| 53 scoped_ptr<Address> GetTestNonDefaultShippingAddress(); | 27 scoped_ptr<Address> GetTestNonDefaultShippingAddress(); |
| 54 scoped_ptr<WalletItems> GetTestWalletItemsWithRequiredAction( | |
| 55 RequiredAction action); | |
| 56 scoped_ptr<WalletItems> GetTestWalletItems(AmexPermission amex_permission); | |
| 57 scoped_ptr<WalletItems> GetTestWalletItemsWithUsers( | |
| 58 const std::vector<std::string>& users, size_t user_index); | |
| 59 scoped_ptr<WalletItems> GetTestWalletItemsWithDefaultIds( | |
| 60 const std::string& default_instrument_id, | |
| 61 const std::string& default_address_id, | |
| 62 AmexPermission amex_permission); | |
| 63 | 28 |
| 64 } // namespace wallet | 29 } // namespace wallet |
| 65 } // namespace autofill | 30 } // namespace autofill |
| 66 | 31 |
| 67 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ | 32 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ |
| OLD | NEW |