| 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 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/time.h" | 6 #include "base/time/time.h" |
| 7 #include "crypto/mock_apple_keychain.h" | 7 #include "crypto/mock_apple_keychain.h" |
| 8 | 8 |
| 9 namespace crypto { | 9 namespace crypto { |
| 10 | 10 |
| 11 // static | 11 // static |
| 12 const SecKeychainSearchRef MockAppleKeychain::kDummySearchRef = | 12 const SecKeychainSearchRef MockAppleKeychain::kDummySearchRef = |
| 13 reinterpret_cast<SecKeychainSearchRef>(1000); | 13 reinterpret_cast<SecKeychainSearchRef>(1000); |
| 14 | 14 |
| 15 MockAppleKeychain::MockAppleKeychain() | 15 MockAppleKeychain::MockAppleKeychain() |
| 16 : next_item_key_(0), | 16 : next_item_key_(0), |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 SetTestDataPort(key, item_data.port); | 500 SetTestDataPort(key, item_data.port); |
| 501 SetTestDataString(key, kSecSecurityDomainItemAttr, | 501 SetTestDataString(key, kSecSecurityDomainItemAttr, |
| 502 item_data.security_domain); | 502 item_data.security_domain); |
| 503 SetTestDataString(key, kSecCreationDateItemAttr, item_data.creation_date); | 503 SetTestDataString(key, kSecCreationDateItemAttr, item_data.creation_date); |
| 504 SetTestDataString(key, kSecAccountItemAttr, item_data.username); | 504 SetTestDataString(key, kSecAccountItemAttr, item_data.username); |
| 505 SetTestDataPasswordString(key, item_data.password); | 505 SetTestDataPasswordString(key, item_data.password); |
| 506 SetTestDataNegativeItem(key, item_data.negative_item); | 506 SetTestDataNegativeItem(key, item_data.negative_item); |
| 507 } | 507 } |
| 508 | 508 |
| 509 } // namespace crypto | 509 } // namespace crypto |
| OLD | NEW |