Lines Matching defs:read
113 // This sets up an initial non blocking read that would block, so ReadAsync()
118 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _))
128 // schedule another read.
144 data_callback.Run(AccessMode::READ);
174 // schedule another read yet.
199 // This sets up an initial non blocking read that would block, so
204 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _))
214 // ReadAllAsync() will try to read non blocking until the read would block
223 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _))
225 data_callback.Run(AccessMode::READ);
234 data_callback.Run(AccessMode::READ);
256 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _))
269 data_callback.Run(AccessMode::READ);
277 size_t read = 0;
283 EXPECT_TRUE(stream_mock.ReadBlocking(buf, sizeof(buf), &read, nullptr));
284 EXPECT_EQ(24, read);
290 EXPECT_TRUE(stream_mock.ReadBlocking(buf, sizeof(buf), &read, nullptr));
291 EXPECT_EQ(0, read);
299 EXPECT_CALL(stream_mock, WaitForDataBlocking(AccessMode::READ, _, _, _))
305 EXPECT_CALL(stream_mock, WaitForDataBlocking(AccessMode::READ, _, _, _))
312 EXPECT_TRUE(stream_mock.ReadBlocking(buf, sizeof(buf), &read, nullptr));
313 EXPECT_EQ(124, read);
321 EXPECT_CALL(stream_mock, WaitForDataBlocking(AccessMode::READ, _, _, _))
324 EXPECT_FALSE(stream_mock.ReadBlocking(buf, sizeof(buf), &read, nullptr));