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 CRYPTO_MOCK_KEYCHAIN_MAC_H_ | 5 #ifndef CRYPTO_MOCK_KEYCHAIN_MAC_H_ |
6 #define CRYPTO_MOCK_KEYCHAIN_MAC_H_ | 6 #define CRYPTO_MOCK_KEYCHAIN_MAC_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 mutable std::set<unsigned int> added_via_api_; | 207 mutable std::set<unsigned int> added_via_api_; |
208 | 208 |
209 // Result code for the |FindGenericPassword()| method. | 209 // Result code for the |FindGenericPassword()| method. |
210 OSStatus find_generic_result_; | 210 OSStatus find_generic_result_; |
211 | 211 |
212 // Records whether |AddGenericPassword()| gets called. | 212 // Records whether |AddGenericPassword()| gets called. |
213 mutable bool called_add_generic_; | 213 mutable bool called_add_generic_; |
214 | 214 |
215 // Tracks the allocations and frees of password data in |FindGenericPassword| | 215 // Tracks the allocations and frees of password data in |FindGenericPassword| |
216 // and |ItemFreeContent|. | 216 // and |ItemFreeContent|. |
217 mutable unsigned int password_data_count_; | 217 mutable int password_data_count_; |
wtc
2012/07/19 17:57:42
The MockKeychain class doesn't use password_data_c
| |
218 | 218 |
219 // Records the password being set when |AddGenericPassword()| gets called. | 219 // Records the password being set when |AddGenericPassword()| gets called. |
220 mutable std::string add_generic_password_; | 220 mutable std::string add_generic_password_; |
221 }; | 221 }; |
222 | 222 |
223 } // namespace crypto | 223 } // namespace crypto |
224 | 224 |
225 #endif // CRYPTO_MOCK_KEYCHAIN_MAC_H_ | 225 #endif // CRYPTO_MOCK_KEYCHAIN_MAC_H_ |
OLD | NEW |