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 std::vector
<base::string16
> StreetAddress(const std::string
& line1
,
23 const std::string
& line2
);
24 scoped_ptr
<Address
> GetTestAddress();
25 scoped_ptr
<Address
> GetTestMinimalAddress();
26 scoped_ptr
<FullWallet
> GetTestFullWallet();
27 scoped_ptr
<FullWallet
> GetTestFullWalletWithRequiredActions(
28 const std::vector
<RequiredAction
>& action
);
29 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();
52 scoped_ptr
<Address
> GetTestShippingAddress();
53 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
);
65 } // namespace autofill
67 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_