| 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 <stddef.h> |
| 6 |
| 5 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
| 6 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 7 #include "crypto/mock_apple_keychain.h" | 10 #include "crypto/mock_apple_keychain.h" |
| 8 | 11 |
| 9 namespace crypto { | 12 namespace crypto { |
| 10 | 13 |
| 11 // static | 14 // static |
| 12 const SecKeychainSearchRef MockAppleKeychain::kDummySearchRef = | 15 const SecKeychainSearchRef MockAppleKeychain::kDummySearchRef = |
| 13 reinterpret_cast<SecKeychainSearchRef>(1000); | 16 reinterpret_cast<SecKeychainSearchRef>(1000); |
| 14 | 17 |
| 15 MockAppleKeychain::MockAppleKeychain() | 18 MockAppleKeychain::MockAppleKeychain() |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 SetTestDataPort(key, item_data.port); | 513 SetTestDataPort(key, item_data.port); |
| 511 SetTestDataString(key, kSecSecurityDomainItemAttr, | 514 SetTestDataString(key, kSecSecurityDomainItemAttr, |
| 512 item_data.security_domain); | 515 item_data.security_domain); |
| 513 SetTestDataString(key, kSecCreationDateItemAttr, item_data.creation_date); | 516 SetTestDataString(key, kSecCreationDateItemAttr, item_data.creation_date); |
| 514 SetTestDataString(key, kSecAccountItemAttr, item_data.username); | 517 SetTestDataString(key, kSecAccountItemAttr, item_data.username); |
| 515 SetTestDataPasswordString(key, item_data.password); | 518 SetTestDataPasswordString(key, item_data.password); |
| 516 SetTestDataNegativeItem(key, item_data.negative_item); | 519 SetTestDataNegativeItem(key, item_data.negative_item); |
| 517 } | 520 } |
| 518 | 521 |
| 519 } // namespace crypto | 522 } // namespace crypto |
| OLD | NEW |