| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_WALLET_WALLET_ITEMS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 const base::string16& last_four_digits() const { return last_four_digits_; } | 102 const base::string16& last_four_digits() const { return last_four_digits_; } |
| 103 int expiration_month() const { return expiration_month_; } | 103 int expiration_month() const { return expiration_month_; } |
| 104 int expiration_year() const { return expiration_year_; } | 104 int expiration_year() const { return expiration_year_; } |
| 105 const Address& address() const { return *address_; } | 105 const Address& address() const { return *address_; } |
| 106 const Status& status() const { return status_; } | 106 const Status& status() const { return status_; } |
| 107 const std::string& object_id() const { return object_id_; } | 107 const std::string& object_id() const { return object_id_; } |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 friend class WalletItemsTest; | 110 friend class WalletItemsTest; |
| 111 friend scoped_ptr<MaskedInstrument> GetTestMaskedInstrumentWithDetails( | 111 friend scoped_ptr<MaskedInstrument> GetTestMaskedInstrumentWithDetails( |
| 112 const std::string&, Type type, Status status); | 112 const std::string&, scoped_ptr<Address> address, |
| 113 Type type, Status status); |
| 113 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, | 114 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, |
| 114 GetInfoCreditCardExpMonth); | 115 GetInfoCreditCardExpMonth); |
| 115 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, | 116 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, |
| 116 GetDisplayTextEmptyWhenExpired); | 117 GetDisplayTextEmptyWhenExpired); |
| 117 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateMaskedInstrument); | 118 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateMaskedInstrument); |
| 118 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems); | 119 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems); |
| 119 | 120 |
| 120 MaskedInstrument(const base::string16& descriptve_name, | 121 MaskedInstrument(const base::string16& descriptve_name, |
| 121 const Type& type, | 122 const Type& type, |
| 122 const std::vector<base::string16>& supported_currencies, | 123 const std::vector<base::string16>& supported_currencies, |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 // Legal documents the user must accept before using Online Wallet. | 289 // Legal documents the user must accept before using Online Wallet. |
| 289 ScopedVector<LegalDocument> legal_documents_; | 290 ScopedVector<LegalDocument> legal_documents_; |
| 290 | 291 |
| 291 DISALLOW_COPY_AND_ASSIGN(WalletItems); | 292 DISALLOW_COPY_AND_ASSIGN(WalletItems); |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace wallet | 295 } // namespace wallet |
| 295 } // namespace autofill | 296 } // namespace autofill |
| 296 | 297 |
| 297 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 298 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
| OLD | NEW |