- add sources.
[platform/framework/web/crosswalk.git] / src / components / autofill / content / browser / wallet / wallet_test_util.h
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.
4
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_
7
8 #include <vector>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "components/autofill/content/browser/wallet/wallet_items.h"
12
13 namespace autofill {
14 namespace wallet {
15
16 class Address;
17 class FullWallet;
18 class Instrument;
19
20 scoped_ptr<Address> GetTestAddress();
21 scoped_ptr<Address> GetTestMinimalAddress();
22 scoped_ptr<FullWallet> GetTestFullWallet();
23 scoped_ptr<FullWallet> GetTestFullWalletWithRequiredActions(
24     const std::vector<RequiredAction>& action);
25 scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly();
26 scoped_ptr<Instrument> GetTestInstrument();
27 scoped_ptr<Instrument> GetTestAddressUpgradeInstrument();
28 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument();
29 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument();
30 scoped_ptr<WalletItems::LegalDocument> GetTestLegalDocument();
31 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrument();
32 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentExpired();
33 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentInvalid();
34 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentAmex(
35     AmexPermission amex_permission);
36 scoped_ptr<WalletItems::MaskedInstrument> GetTestNonDefaultMaskedInstrument();
37 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentWithId(
38     const std::string& id);
39 scoped_ptr<WalletItems::MaskedInstrument>
40     GetTestMaskedInstrumentWithIdAndAddress(
41         const std::string& id, scoped_ptr<Address> address);
42 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentWithDetails(
43     const std::string& id,
44     scoped_ptr<Address> address,
45     WalletItems::MaskedInstrument::Type type,
46     WalletItems::MaskedInstrument::Status status);
47 scoped_ptr<Address> GetTestSaveableAddress();
48 scoped_ptr<Address> GetTestShippingAddress();
49 scoped_ptr<Address> GetTestNonDefaultShippingAddress();
50 scoped_ptr<WalletItems> GetTestWalletItemsWithRequiredAction(
51     RequiredAction action);
52 scoped_ptr<WalletItems> GetTestWalletItems(AmexPermission amex_permission);
53 scoped_ptr<WalletItems> GetTestWalletItemsWithDefaultIds(
54     const std::string& default_instrument_id,
55     const std::string& default_address_id,
56     AmexPermission amex_permission);
57
58 }  // namespace wallet
59 }  // namespace autofill
60
61 #endif  // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_