Lines Matching refs:bio2
229 BIO *bio1, *bio2; in TEST_P() local
230 ASSERT_TRUE(BIO_new_bio_pair(&bio1, 10, &bio2, 10)); in TEST_P()
231 bssl::UniquePtr<BIO> free_bio1(bio1), free_bio2(bio2); in TEST_P()
234 std::swap(bio1, bio2); in TEST_P()
245 ASSERT_EQ(5, BIO_read(bio2, buf, sizeof(buf))); in TEST_P()
254 ASSERT_EQ(10, BIO_read(bio2, buf, sizeof(buf))); in TEST_P()
259 EXPECT_EQ(-1, BIO_read(bio2, buf, 5)); in TEST_P()
260 EXPECT_TRUE(BIO_should_read(bio2)); in TEST_P()
264 EXPECT_EQ(-1, BIO_read(bio2, buf, 20)); in TEST_P()
265 EXPECT_TRUE(BIO_should_read(bio2)); in TEST_P()
273 ASSERT_EQ(3, BIO_read(bio2, buf, 3)); in TEST_P()
276 ASSERT_EQ(7, BIO_read(bio2, buf, sizeof(buf))); in TEST_P()
287 ASSERT_EQ(3, BIO_read(bio2, buf, 3)); in TEST_P()
292 ASSERT_EQ(10, BIO_read(bio2, buf, sizeof(buf))); in TEST_P()
298 EXPECT_EQ(5, BIO_write(bio2, "67890", 5)); in TEST_P()
299 ASSERT_EQ(5, BIO_read(bio2, buf, sizeof(buf))); in TEST_P()
307 ASSERT_EQ(5, BIO_read(bio2, buf, sizeof(buf))); in TEST_P()
309 EXPECT_EQ(0, BIO_read(bio2, buf, sizeof(buf))); in TEST_P()
320 EXPECT_EQ(5, BIO_write(bio2, "12345", 5)); in TEST_P()