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 OSStatus MockAppleKeychain::FindGenericPassword( | 11 OSStatus MockAppleKeychain::FindGenericPassword( |
12 CFTypeRef keychainOrArray, | 12 CFTypeRef keychainOrArray, |
13 UInt32 serviceNameLength, | 13 UInt32 serviceNameLength, |
14 const char* serviceName, | 14 const char* serviceName, |
15 UInt32 accountNameLength, | 15 UInt32 accountNameLength, |
16 const char* accountName, | 16 const char* accountName, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 DCHECK_GT(passwordLength, 0U); | 53 DCHECK_GT(passwordLength, 0U); |
54 DCHECK(passwordData); | 54 DCHECK(passwordData); |
55 add_generic_password_ = | 55 add_generic_password_ = |
56 std::string(const_cast<char*>(static_cast<const char*>(passwordData)), | 56 std::string(const_cast<char*>(static_cast<const char*>(passwordData)), |
57 passwordLength); | 57 passwordLength); |
58 return noErr; | 58 return noErr; |
59 } | 59 } |
60 | 60 |
61 } // namespace crypto | 61 } // namespace crypto |
OLD | NEW |