Lines Matching refs:bio1

216   BIO *bio1, *bio2;  in TEST_P()  local
217 ASSERT_TRUE(BIO_new_bio_pair(&bio1, 10, &bio2, 10)); in TEST_P()
218 bssl::UniquePtr<BIO> free_bio1(bio1), free_bio2(bio2); in TEST_P()
221 std::swap(bio1, bio2); in TEST_P()
225 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
226 EXPECT_EQ(0u, BIO_ctrl_get_read_request(bio1)); in TEST_P()
230 EXPECT_EQ(5, BIO_write(bio1, "12345", 5)); in TEST_P()
231 EXPECT_EQ(5u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
234 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
237 EXPECT_EQ(10, BIO_write(bio1, "1234567890___", 13)); in TEST_P()
238 EXPECT_EQ(0u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
239 EXPECT_EQ(-1, BIO_write(bio1, "z", 1)); in TEST_P()
240 EXPECT_TRUE(BIO_should_write(bio1)); in TEST_P()
243 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
248 EXPECT_EQ(5u, BIO_ctrl_get_read_request(bio1)); in TEST_P()
253 EXPECT_EQ(10u, BIO_ctrl_get_read_request(bio1)); in TEST_P()
256 EXPECT_EQ(5, BIO_write(bio1, "12345", 5)); in TEST_P()
257 EXPECT_EQ(5u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
258 EXPECT_EQ(5, BIO_write(bio1, "67890___", 8)); in TEST_P()
259 EXPECT_EQ(0u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
262 EXPECT_EQ(3u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
265 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
268 EXPECT_EQ(0u, BIO_ctrl_get_read_request(bio1)); in TEST_P()
272 EXPECT_EQ(8, BIO_write(bio1, "abcdefgh", 8)); in TEST_P()
273 EXPECT_EQ(2u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
276 EXPECT_EQ(5u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
277 EXPECT_EQ(5, BIO_write(bio1, "ijklm___", 8)); in TEST_P()
278 EXPECT_EQ(0u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
281 EXPECT_EQ(10u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
284 EXPECT_EQ(5, BIO_write(bio1, "12345", 5)); in TEST_P()
288 ASSERT_EQ(5, BIO_read(bio1, buf, sizeof(buf))); in TEST_P()
292 EXPECT_EQ(5, BIO_write(bio1, "12345", 5)); in TEST_P()
293 EXPECT_TRUE(BIO_shutdown_wr(bio1)); in TEST_P()
299 EXPECT_EQ(0u, BIO_ctrl_get_write_guarantee(bio1)); in TEST_P()
300 EXPECT_EQ(-1, BIO_write(bio1, "_____", 5)); in TEST_P()
308 ASSERT_EQ(5, BIO_read(bio1, buf, sizeof(buf))); in TEST_P()