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

Unified Diff: crypto/openssl_bio_string_unittest.cc

Issue 2332473002: Use new BoringSSL scopers in //crypto (Closed)
Patch Set: rebase Created 4 years, 3 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/ec_signature_creator_impl.cc ('k') | crypto/rsa_private_key.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/openssl_bio_string_unittest.cc
diff --git a/crypto/openssl_bio_string_unittest.cc b/crypto/openssl_bio_string_unittest.cc
index 9dfa0e70f73325a7a6d24d840c2636210b68021b..31cd128ce4ebafdfc7bcbe6d8e640e02175204c6 100644
--- a/crypto/openssl_bio_string_unittest.cc
+++ b/crypto/openssl_bio_string_unittest.cc
@@ -6,7 +6,6 @@
#include <openssl/bio.h>
-#include "crypto/scoped_openssl_types.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace crypto {
@@ -17,7 +16,7 @@ TEST(OpenSSLBIOString, TestWrite) {
const std::string expected2("c d e f");
const std::string expected3("g h i");
{
- ScopedBIO bio(BIO_new_string(&s));
+ bssl::UniquePtr<BIO> bio(BIO_new_string(&s));
ASSERT_TRUE(bio.get());
EXPECT_EQ(static_cast<int>(expected1.size()),
@@ -43,7 +42,7 @@ TEST(OpenSSLBIOString, TestReset) {
const std::string expected1("a b c\n");
const std::string expected2("d e f g\n");
{
- ScopedBIO bio(BIO_new_string(&s));
+ bssl::UniquePtr<BIO> bio(BIO_new_string(&s));
ASSERT_TRUE(bio.get());
EXPECT_EQ(static_cast<int>(expected1.size()),
« no previous file with comments | « crypto/ec_signature_creator_impl.cc ('k') | crypto/rsa_private_key.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698