Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1365)

Unified Diff: external_tests/common/scoped_ptrs.h

Issue 279190043: Add simple tests for a few libssl internal interfaces.
Patch Set: Add simple tests for a few libssl internal interfaces. [v4] Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | external_tests/ssl_gtest/manifest.mn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: external_tests/common/scoped_ptrs.h
diff --git a/external_tests/common/scoped_ptrs.h b/external_tests/common/scoped_ptrs.h
index 261ff7a9ca13527970af2aed234daca27df58f8c..6a6aae95af701e5a4d35366c8457d6450da062c6 100644
--- a/external_tests/common/scoped_ptrs.h
+++ b/external_tests/common/scoped_ptrs.h
@@ -10,6 +10,7 @@
#include "cert.h"
#include "keyhi.h"
#include "pk11pub.h"
+#include "prio.h"
namespace nss_test {
@@ -24,6 +25,7 @@ struct ScopedDelete {
void operator()(SECItem* item) { SECITEM_FreeItem(item, true); }
void operator()(SECKEYPublicKey* key) { SECKEY_DestroyPublicKey(key); }
void operator()(SECKEYPrivateKey* key) { SECKEY_DestroyPrivateKey(key); }
+ void operator()(PRFileDesc* fd) { PR_Close(fd); }
};
template<class T>
@@ -41,6 +43,7 @@ SCOPED(SECAlgorithmID);
SCOPED(SECItem);
SCOPED(SECKEYPublicKey);
SCOPED(SECKEYPrivateKey);
+SCOPED(PRFileDesc);
#undef SCOPED
« no previous file with comments | « no previous file | external_tests/ssl_gtest/manifest.mn » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b