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

Unified Diff: net/cert/nss_cert_database_chromeos_test_utils.cc

Issue 111273002: NSSCertDatabaseChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gcc fix Created 7 years 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
Index: net/cert/nss_cert_database_chromeos_test_utils.cc
diff --git a/net/cert/nss_cert_database_chromeos_test_utils.cc b/net/cert/nss_cert_database_chromeos_test_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c6c34722fa1bfe36f798762bdadfd3e0287f0d77
--- /dev/null
+++ b/net/cert/nss_cert_database_chromeos_test_utils.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2013 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/nss_cert_database_chromeos_test_utils.h"
+
+#include "net/cert/nss_cert_database_chromeos.h"
+
+namespace net {
+
+ScopedTestNSSCertDatabaseChromeOS::ScopedTestNSSCertDatabaseChromeOS(
+ const std::string& username_hash)
+ : scoped_nss_user_(username_hash) {}
+
+ScopedTestNSSCertDatabaseChromeOS::~ScopedTestNSSCertDatabaseChromeOS() {
+ NSSCertDatabaseChromeOS::RemoveUserForTesting(username_hash());
+}
+
+void ScopedTestNSSCertDatabaseChromeOS::FinishInit() {
+ scoped_nss_user_.FinishInit();
+}
+
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698