| Index: crypto/openssl_bio_string_unittest.cc
|
| diff --git a/crypto/openssl_bio_string_unittest.cc b/crypto/openssl_bio_string_unittest.cc
|
| index 39d3a9aeaed5dadbd4da9a1fca15c404254b76c0..2467215ef821d3984c3c66ffb08d1c8979bfae7c 100644
|
| --- a/crypto/openssl_bio_string_unittest.cc
|
| +++ b/crypto/openssl_bio_string_unittest.cc
|
| @@ -6,16 +6,18 @@
|
|
|
| #include <openssl/bio.h>
|
|
|
| -#include "crypto/openssl_util.h"
|
| +#include "crypto/scoped_openssl_types.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| +namespace crypto {
|
| +
|
| TEST(OpenSSLBIOString, TestWrite) {
|
| std::string s;
|
| const std::string expected1("a one\nb 2\n");
|
| const std::string expected2("c d e f");
|
| const std::string expected3("g h i");
|
| {
|
| - crypto::ScopedOpenSSL<BIO, BIO_free_all> bio(crypto::BIO_new_string(&s));
|
| + ScopedBIO bio(BIO_new_string(&s));
|
| ASSERT_TRUE(bio.get());
|
|
|
| EXPECT_EQ(static_cast<int>(expected1.size()),
|
| @@ -48,7 +50,7 @@ TEST(OpenSSLBIOString, TestReset) {
|
| const std::string expected1("a b c\n");
|
| const std::string expected2("d e f g\n");
|
| {
|
| - crypto::ScopedOpenSSL<BIO, BIO_free_all> bio(crypto::BIO_new_string(&s));
|
| + ScopedBIO bio(BIO_new_string(&s));
|
| ASSERT_TRUE(bio.get());
|
|
|
| EXPECT_EQ(static_cast<int>(expected1.size()),
|
| @@ -64,3 +66,5 @@ TEST(OpenSSLBIOString, TestReset) {
|
| }
|
| EXPECT_EQ(expected2, s);
|
| }
|
| +
|
| +} // namespace crypto
|
|
|