Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: net/cert/test_keychain_search_list_mac.cc

Issue 2411023002: *WIP* Mac Unittest for client cert selection with intermediate certs
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/test_keychain_search_list_mac.h ('k') | net/data/ssl/certificates/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/test_keychain_search_list_mac.cc
diff --git a/net/cert/test_keychain_search_list_mac.cc b/net/cert/test_keychain_search_list_mac.cc
index c2fe00107a2ee4c80b853bd3087f7db893987e8b..4730bba8e6238400e47f6ccf44be847a42261d08 100644
--- a/net/cert/test_keychain_search_list_mac.cc
+++ b/net/cert/test_keychain_search_list_mac.cc
@@ -42,9 +42,9 @@ TestKeychainSearchList* TestKeychainSearchList::GetInstance() {
}
OSStatus TestKeychainSearchList::CopySearchList(
- CFArrayRef* keychain_search_list) const {
- *keychain_search_list =
- CFArrayCreateCopy(kCFAllocatorDefault, scoped_keychain_search_list.get());
+ base::ScopedCFTypeRef<CFArrayRef>* keychain_search_list) const {
+ keychain_search_list->reset(CFArrayCreateCopy(
+ kCFAllocatorDefault, scoped_keychain_search_list.get()));
return *keychain_search_list ? 0 : errSecAllocate;
}
« no previous file with comments | « net/cert/test_keychain_search_list_mac.h ('k') | net/data/ssl/certificates/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698