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

Unified Diff: crypto/scoped_test_system_nss_key_slot.cc

Issue 956613002: Reland "Cut down /crypto and switch what is left of it to boringssl". (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase. Created 5 years, 10 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 | « crypto/scoped_test_system_nss_key_slot.h ('k') | crypto/secure_hash_default.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/scoped_test_system_nss_key_slot.cc
diff --git a/crypto/scoped_test_system_nss_key_slot.cc b/crypto/scoped_test_system_nss_key_slot.cc
deleted file mode 100644
index 53fbbffc1a99fb8b5b111c7ad399909c8969367d..0000000000000000000000000000000000000000
--- a/crypto/scoped_test_system_nss_key_slot.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 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 "crypto/scoped_test_system_nss_key_slot.h"
-
-#include "crypto/nss_util_internal.h"
-#include "crypto/scoped_test_nss_db.h"
-
-namespace crypto {
-
-ScopedTestSystemNSSKeySlot::ScopedTestSystemNSSKeySlot()
- : test_db_(new ScopedTestNSSDB) {
- if (!test_db_->is_open())
- return;
- SetSystemKeySlotForTesting(
- ScopedPK11Slot(PK11_ReferenceSlot(test_db_->slot())));
-}
-
-ScopedTestSystemNSSKeySlot::~ScopedTestSystemNSSKeySlot() {
- SetSystemKeySlotForTesting(ScopedPK11Slot());
-}
-
-bool ScopedTestSystemNSSKeySlot::ConstructedSuccessfully() const {
- return test_db_->is_open();
-}
-
-PK11SlotInfo* ScopedTestSystemNSSKeySlot::slot() const {
- return test_db_->slot();
-}
-
-} // namespace crypto
« no previous file with comments | « crypto/scoped_test_system_nss_key_slot.h ('k') | crypto/secure_hash_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698