diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 00:20:36 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 00:20:36 +0000 |
commit | f7c255ea1def87601d233ca1cdd64da6d2543232 (patch) | |
tree | 07e269e5871f01193542263415deecf47f309d98 /crypto/openssl_bio_string_unittest.cc | |
parent | 948ef5ad51b031190496722b5ccd93d50320829a (diff) | |
download | chromium_src-f7c255ea1def87601d233ca1cdd64da6d2543232.zip chromium_src-f7c255ea1def87601d233ca1cdd64da6d2543232.tar.gz chromium_src-f7c255ea1def87601d233ca1cdd64da6d2543232.tar.bz2 |
Revert "Switch to BoringSSL."
This reverts commit 283542.
This broke the WebView Android build.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283591 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/openssl_bio_string_unittest.cc')
-rw-r--r-- | crypto/openssl_bio_string_unittest.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/openssl_bio_string_unittest.cc b/crypto/openssl_bio_string_unittest.cc index 9dfa0e7..2467215 100644 --- a/crypto/openssl_bio_string_unittest.cc +++ b/crypto/openssl_bio_string_unittest.cc @@ -23,17 +23,24 @@ TEST(OpenSSLBIOString, TestWrite) { EXPECT_EQ(static_cast<int>(expected1.size()), BIO_printf(bio.get(), "a %s\nb %i\n", "one", 2)); EXPECT_EQ(expected1, s); + EXPECT_EQ(static_cast<int>(expected1.size()), BIO_tell(bio.get())); EXPECT_EQ(1, BIO_flush(bio.get())); + EXPECT_EQ(-1, BIO_seek(bio.get(), 0)); EXPECT_EQ(expected1, s); EXPECT_EQ(static_cast<int>(expected2.size()), BIO_write(bio.get(), expected2.data(), expected2.size())); EXPECT_EQ(expected1 + expected2, s); + EXPECT_EQ(static_cast<int>(expected1.size() + expected2.size()), + BIO_tell(bio.get())); EXPECT_EQ(static_cast<int>(expected3.size()), BIO_puts(bio.get(), expected3.c_str())); EXPECT_EQ(expected1 + expected2 + expected3, s); + EXPECT_EQ(static_cast<int>(expected1.size() + expected2.size() + + expected3.size()), + BIO_tell(bio.get())); } EXPECT_EQ(expected1 + expected2 + expected3, s); } |