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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_
10 #include "base/memory/scoped_ptr.h"
11 #include "components/autofill/content/browser/wallet/wallet_items.h"
21 scoped_ptr<GaiaAccount> GetTestGaiaAccount();
22 scoped_ptr<Address> GetTestAddress();
23 scoped_ptr<Address> GetTestMinimalAddress();
24 scoped_ptr<FullWallet> GetTestFullWallet();
25 scoped_ptr<FullWallet> GetTestFullWalletWithRequiredActions(
26 const std::vector<RequiredAction>& action);
27 scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly();
28 scoped_ptr<Instrument> GetTestInstrument();
29 scoped_ptr<Instrument> GetTestAddressUpgradeInstrument();
30 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument();
31 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument();
32 scoped_ptr<WalletItems::LegalDocument> GetTestLegalDocument();
33 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrument();
34 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentExpired();
35 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentInvalid();
36 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentAmex(
37 AmexPermission amex_permission);
38 scoped_ptr<WalletItems::MaskedInstrument> GetTestNonDefaultMaskedInstrument();
39 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentWithId(
40 const std::string& id);
41 scoped_ptr<WalletItems::MaskedInstrument>
42 GetTestMaskedInstrumentWithIdAndAddress(
43 const std::string& id, scoped_ptr<Address> address);
44 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentWithDetails(
45 const std::string& id,
46 scoped_ptr<Address> address,
47 WalletItems::MaskedInstrument::Type type,
48 WalletItems::MaskedInstrument::Status status);
49 scoped_ptr<Address> GetTestSaveableAddress();
50 scoped_ptr<Address> GetTestShippingAddress();
51 scoped_ptr<Address> GetTestNonDefaultShippingAddress();
52 scoped_ptr<WalletItems> GetTestWalletItemsWithRequiredAction(
53 RequiredAction action);
54 scoped_ptr<WalletItems> GetTestWalletItems(AmexPermission amex_permission);
55 scoped_ptr<WalletItems> GetTestWalletItemsWithUsers(
56 const std::vector<std::string>& users, size_t user_index);
57 scoped_ptr<WalletItems> GetTestWalletItemsWithDefaultIds(
58 const std::string& default_instrument_id,
59 const std::string& default_address_id,
60 AmexPermission amex_permission);
63 } // namespace autofill
65 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_