| OLD | NEW |
| 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_FULL_WALLET_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 int expiration_month() const { return expiration_month_; } | 64 int expiration_month() const { return expiration_month_; } |
| 65 int expiration_year() const { return expiration_year_; } | 65 int expiration_year() const { return expiration_year_; } |
| 66 | 66 |
| 67 void set_one_time_pad(const std::vector<uint8>& one_time_pad) { | 67 void set_one_time_pad(const std::vector<uint8>& one_time_pad) { |
| 68 one_time_pad_ = one_time_pad; | 68 one_time_pad_ = one_time_pad; |
| 69 } | 69 } |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 friend class FullWalletTest; | 72 friend class FullWalletTest; |
| 73 friend scoped_ptr<FullWallet> GetTestFullWallet(); | 73 friend scoped_ptr<FullWallet> GetTestFullWallet(); |
| 74 friend scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly(); |
| 74 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, CreateFullWallet); | 75 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, CreateFullWallet); |
| 75 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, CreateFullWalletWithRequiredActions); | 76 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, CreateFullWalletWithRequiredActions); |
| 76 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthCorrectDecryptionTest); | 77 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthCorrectDecryptionTest); |
| 77 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthUnderDecryptionTest); | 78 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, RestLengthUnderDecryptionTest); |
| 78 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, GetCreditCardInfo); | 79 FRIEND_TEST_ALL_PREFIXES(FullWalletTest, GetCreditCardInfo); |
| 79 FullWallet(int expiration_month, | 80 FullWallet(int expiration_month, |
| 80 int expiration_year, | 81 int expiration_year, |
| 81 const std::string& iin, | 82 const std::string& iin, |
| 82 const std::string& encrypted_rest, | 83 const std::string& encrypted_rest, |
| 83 scoped_ptr<Address> billing_address, | 84 scoped_ptr<Address> billing_address, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // The one time pad used for FullWallet encryption. | 127 // The one time pad used for FullWallet encryption. |
| 127 std::vector<uint8> one_time_pad_; | 128 std::vector<uint8> one_time_pad_; |
| 128 | 129 |
| 129 DISALLOW_COPY_AND_ASSIGN(FullWallet); | 130 DISALLOW_COPY_AND_ASSIGN(FullWallet); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace wallet | 133 } // namespace wallet |
| 133 } // namespace autofill | 134 } // namespace autofill |
| 134 | 135 |
| 135 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ | 136 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_ |
| OLD | NEW |