Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1143)

Side by Side Diff: components/autofill/content/browser/wallet/wallet_test_util.h

Issue 23930002: [rAc] Reset the user's selection to the new default when the default Wallet item changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Factor out common functionality Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/autofill/content/browser/wallet/wallet_items.h" 9 #include "components/autofill/content/browser/wallet/wallet_items.h"
10 10
(...skipping 11 matching lines...) Expand all
22 scoped_ptr<Instrument> GetTestInstrument(); 22 scoped_ptr<Instrument> GetTestInstrument();
23 scoped_ptr<Instrument> GetTestAddressUpgradeInstrument(); 23 scoped_ptr<Instrument> GetTestAddressUpgradeInstrument();
24 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument(); 24 scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument();
25 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument(); 25 scoped_ptr<Instrument> GetTestAddressNameChangeInstrument();
26 scoped_ptr<WalletItems::LegalDocument> GetTestLegalDocument(); 26 scoped_ptr<WalletItems::LegalDocument> GetTestLegalDocument();
27 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrument(); 27 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrument();
28 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentExpired(); 28 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentExpired();
29 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentInvalid(); 29 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentInvalid();
30 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentAmex(); 30 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentAmex();
31 scoped_ptr<WalletItems::MaskedInstrument> GetTestNonDefaultMaskedInstrument(); 31 scoped_ptr<WalletItems::MaskedInstrument> GetTestNonDefaultMaskedInstrument();
32 scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentWithId(
33 const std::string& id);
32 scoped_ptr<WalletItems::MaskedInstrument> 34 scoped_ptr<WalletItems::MaskedInstrument>
33 GetTestMaskedInstrumentWithIdAndAddress( 35 GetTestMaskedInstrumentWithIdAndAddress(
34 const std::string& id, scoped_ptr<Address> address); 36 const std::string& id, scoped_ptr<Address> address);
35 scoped_ptr<Address> GetTestSaveableAddress(); 37 scoped_ptr<Address> GetTestSaveableAddress();
36 scoped_ptr<Address> GetTestShippingAddress(); 38 scoped_ptr<Address> GetTestShippingAddress();
37 scoped_ptr<Address> GetTestNonDefaultShippingAddress(); 39 scoped_ptr<Address> GetTestNonDefaultShippingAddress();
38 scoped_ptr<WalletItems> GetTestWalletItems(); 40 scoped_ptr<WalletItems> GetTestWalletItems();
41 scoped_ptr<WalletItems> GetTestWalletItemsWithDefaultIds(
42 const std::string& default_instrument_id,
43 const std::string& default_address_id);
39 44
40 } // namespace wallet 45 } // namespace wallet
41 } // namespace autofill 46 } // namespace autofill
42 47
43 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ 48 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698