| 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
|
|
|