Lines Matching refs:bio1
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()
238 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
239 EXPECT_EQ(0u, BIO_ctrl_get_read_request(bio1)); in TEST_P()
243 EXPECT_EQ(5, BIO_write(bio1, "12345", 5)); in TEST_P()
244 EXPECT_EQ(5u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
247 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
250 EXPECT_EQ(10, BIO_write(bio1, "1234567890___", 13)); in TEST_P()
251 EXPECT_EQ(0u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
252 EXPECT_EQ(-1, BIO_write(bio1, "z", 1)); in TEST_P()
253 EXPECT_TRUE(BIO_should_write(bio1)); in TEST_P()
256 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
261 EXPECT_EQ(5u, BIO_ctrl_get_read_request(bio1)); in TEST_P()
266 EXPECT_EQ(10u, BIO_ctrl_get_read_request(bio1)); in TEST_P()
269 EXPECT_EQ(5, BIO_write(bio1, "12345", 5)); in TEST_P()
270 EXPECT_EQ(5u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
271 EXPECT_EQ(5, BIO_write(bio1, "67890___", 8)); in TEST_P()
272 EXPECT_EQ(0u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
275 EXPECT_EQ(3u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
278 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
281 EXPECT_EQ(0u, BIO_ctrl_get_read_request(bio1)); in TEST_P()
285 EXPECT_EQ(8, BIO_write(bio1, "abcdefgh", 8)); in TEST_P()
286 EXPECT_EQ(2u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
289 EXPECT_EQ(5u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
290 EXPECT_EQ(5, BIO_write(bio1, "ijklm___", 8)); in TEST_P()
291 EXPECT_EQ(0u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
294 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
297 EXPECT_EQ(5, BIO_write(bio1, "12345", 5)); in TEST_P()
301 ASSERT_EQ(5, BIO_read(bio1, buf, sizeof(buf))); in TEST_P()
305 EXPECT_EQ(5, BIO_write(bio1, "12345", 5)); in TEST_P()
306 EXPECT_TRUE(BIO_shutdown_wr(bio1)); in TEST_P()
312 EXPECT_EQ(0u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
313 EXPECT_EQ(-1, BIO_write(bio1, "_____", 5)); in TEST_P()
321 ASSERT_EQ(5, BIO_read(bio1, buf, sizeof(buf))); in TEST_P()