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

Side by Side Diff: crypto/scoped_test_nss_db.h

Issue 1413173005: Deprecate *_EXPORT_PRIVATE macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format Created 5 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 unified diff | Download patch
« no previous file with comments | « crypto/scoped_test_nss_chromeos_user.h ('k') | crypto/scoped_test_system_nss_key_slot.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CRYPTO_SCOPED_TEST_NSS_DB_H_ 5 #ifndef CRYPTO_SCOPED_TEST_NSS_DB_H_
6 #define CRYPTO_SCOPED_TEST_NSS_DB_H_ 6 #define CRYPTO_SCOPED_TEST_NSS_DB_H_
7 7
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "crypto/crypto_export.h" 10 #include "crypto/crypto_export.h"
11 #include "crypto/scoped_nss_types.h" 11 #include "crypto/scoped_nss_types.h"
12 12
13 namespace crypto { 13 namespace crypto {
14 14
15 // Opens a persistent NSS database in a temporary directory. 15 // Opens a persistent NSS database in a temporary directory.
16 // Prior NSS version 3.15.1, because of http://bugzil.la/875601 , the opened DB 16 // Prior NSS version 3.15.1, because of http://bugzil.la/875601 , the opened DB
17 // will not be closed automatically. 17 // will not be closed automatically.
18 class CRYPTO_EXPORT_PRIVATE ScopedTestNSSDB { 18 class CRYPTO_EXPORT ScopedTestNSSDB {
19 public: 19 public:
20 ScopedTestNSSDB(); 20 ScopedTestNSSDB();
21 ~ScopedTestNSSDB(); 21 ~ScopedTestNSSDB();
22 22
23 bool is_open() const { return slot_; } 23 bool is_open() const { return slot_; }
24 PK11SlotInfo* slot() const { return slot_.get(); } 24 PK11SlotInfo* slot() const { return slot_.get(); }
25 25
26 private: 26 private:
27 base::ScopedTempDir temp_dir_; 27 base::ScopedTempDir temp_dir_;
28 ScopedPK11Slot slot_; 28 ScopedPK11Slot slot_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(ScopedTestNSSDB); 30 DISALLOW_COPY_AND_ASSIGN(ScopedTestNSSDB);
31 }; 31 };
32 32
33 } // namespace crypto 33 } // namespace crypto
34 34
35 #endif // CRYPTO_SCOPED_TEST_NSS_DB_H_ 35 #endif // CRYPTO_SCOPED_TEST_NSS_DB_H_
OLDNEW
« no previous file with comments | « crypto/scoped_test_nss_chromeos_user.h ('k') | crypto/scoped_test_system_nss_key_slot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698