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

Unified Diff: net/cert/test_keychain_search_list_mac.cc

Issue 2347893002: Revert of CertVerifyProcMac: Add Keychain re-ordering hack, check CRLsets in path pruning loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl patch is broken so try a manual revert instead Created 4 years, 3 months 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
deleted file mode 100644
index c2fe00107a2ee4c80b853bd3087f7db893987e8b..0000000000000000000000000000000000000000
--- a/net/cert/test_keychain_search_list_mac.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/cert/test_keychain_search_list_mac.h"
-
-#include "base/memory/ptr_util.h"
-
-namespace net {
-
-namespace {
-
-TestKeychainSearchList* g_test_keychain_search_list = nullptr;
-
-} // namespace
-
-TestKeychainSearchList::TestKeychainSearchList() {
- g_test_keychain_search_list = this;
- scoped_keychain_search_list.reset(
- CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks));
-}
-
-TestKeychainSearchList::~TestKeychainSearchList() {
- g_test_keychain_search_list = nullptr;
-}
-
-// static
-std::unique_ptr<TestKeychainSearchList> TestKeychainSearchList::Create() {
- if (g_test_keychain_search_list)
- return nullptr;
- return base::WrapUnique(new TestKeychainSearchList);
-}
-
-// static
-bool TestKeychainSearchList::HasInstance() {
- return !!g_test_keychain_search_list;
-}
-
-// static
-TestKeychainSearchList* TestKeychainSearchList::GetInstance() {
- return g_test_keychain_search_list;
-}
-
-OSStatus TestKeychainSearchList::CopySearchList(
- CFArrayRef* keychain_search_list) const {
- *keychain_search_list =
- CFArrayCreateCopy(kCFAllocatorDefault, scoped_keychain_search_list.get());
- return *keychain_search_list ? 0 : errSecAllocate;
-}
-
-void TestKeychainSearchList::AddKeychain(SecKeychainRef keychain) {
- CFArrayAppendValue(scoped_keychain_search_list.get(), keychain);
-}
-
-} // namespace net
« 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