Searched refs:ReadNonBlocking (Results 1 - 20 of 20) sorted by relevance

/external/libbrillo/brillo/streams/
H A Dinput_stream_set_unittest.cc74 EXPECT_CALL(*itf1_, ReadNonBlocking(_, _, _, _, _))
76 EXPECT_CALL(*itf2_, ReadNonBlocking(_, _, _, _, _)).Times(0);
101 TEST_F(InputStreamSetTest, ReadNonBlocking) {
106 EXPECT_CALL(*itf1_, ReadNonBlocking(IntToPtr(1000), 100, _, _, _))
110 EXPECT_TRUE(stream_->ReadNonBlocking(IntToPtr(1000), 100, &read, &eos,
115 EXPECT_CALL(*itf1_, ReadNonBlocking(IntToPtr(1000), 100, _, _, _))
117 EXPECT_CALL(*itf2_, ReadNonBlocking(IntToPtr(1000), 100 , _, _, _))
121 EXPECT_TRUE(stream_->ReadNonBlocking(IntToPtr(1000), 100, &read, &eos,
126 EXPECT_CALL(*itf2_, ReadNonBlocking(IntToPtr(1000), 100, _, _, _))
128 EXPECT_TRUE(stream_->ReadNonBlocking(IntToPt
[all...]
H A Dopenssl_stream_bio_unittests.cc41 EXPECT_CALL(*stream_, ReadNonBlocking(buffer, 10, _, _, _))
50 EXPECT_CALL(*stream_, ReadNonBlocking(buffer, 10, _, _, _))
59 EXPECT_CALL(*stream_, ReadNonBlocking(buffer, 10, _, _, _))
69 EXPECT_CALL(*stream_, ReadNonBlocking(buffer, 10, _, _, _))
79 EXPECT_CALL(*stream_, ReadNonBlocking(buffer, 10, _, _, _))
H A Dstream_unittest.cc51 MOCK_METHOD5(ReadNonBlocking, bool(void*, size_t, size_t*, bool*, ErrorPtr*));
115 EXPECT_CALL(stream_mock, ReadNonBlocking(buf, 10, _, _, _))
140 EXPECT_CALL(stream_mock, ReadNonBlocking(buf, 10, _, _, _))
160 EXPECT_CALL(stream_mock, ReadNonBlocking(buf, 10, _, _, _))
167 // Even if ReadNonBlocking() returned some data without waiting, the
201 EXPECT_CALL(stream_mock, ReadNonBlocking(buf, 10, _, _, _))
216 EXPECT_CALL(stream_mock, ReadNonBlocking(buf, 10, _, _, _))
220 EXPECT_CALL(stream_mock, ReadNonBlocking(buf + 7, 3, _, _, _))
230 EXPECT_CALL(stream_mock, ReadNonBlocking(buf + 7, 3, _, _, _))
253 EXPECT_CALL(stream_mock, ReadNonBlocking(bu
[all...]
H A Dmock_stream.h42 MOCK_METHOD5(ReadNonBlocking, bool(void*, size_t, size_t*, bool*, ErrorPtr*));
H A Dinput_stream_set.h80 bool ReadNonBlocking(void* buffer,
H A Dopenssl_stream_bio.cc37 if (!stream->ReadNonBlocking(buf, size, &read, &eos, nullptr))
H A Dtls_stream.h52 bool ReadNonBlocking(void* buffer,
H A Dfile_stream.h115 bool ReadNonBlocking(void* buffer,
H A Dinput_stream_set.cc109 bool InputStreamSet::ReadNonBlocking(void* buffer, function in class:brillo::InputStreamSet
120 if (!stream->ReadNonBlocking(buffer, size_to_read, size_read, &eos, error))
H A Dfake_stream.h97 bool ReadNonBlocking(void* buffer,
H A Dmemory_stream.h163 bool ReadNonBlocking(void* buffer,
H A Dmemory_stream_unittest.cc143 TEST_F(MemoryStreamTest, ReadNonBlocking) {
150 EXPECT_TRUE(stream_->ReadNonBlocking(test_read_buffer_, 10, &read, &eos,
159 EXPECT_TRUE(stream_->ReadNonBlocking(test_read_buffer_, 100, &read, &eos,
168 EXPECT_TRUE(stream_->ReadNonBlocking(test_read_buffer_, 10, &read, &eos,
H A Dtls_stream.cc83 bool ReadNonBlocking(void* buffer,
143 bool TlsStream::TlsStreamImpl::ReadNonBlocking(void* buffer, function in class:brillo::TlsStream::TlsStreamImpl
489 bool TlsStream::ReadNonBlocking(void* buffer, function in class:brillo::TlsStream
496 return impl_->ReadNonBlocking(buffer, size_to_read, size_read, end_of_stream,
H A Dfile_stream_unittest.cc395 TEST_F(FileStreamTest, ReadNonBlocking) {
400 EXPECT_TRUE(stream_->ReadNonBlocking(test_read_buffer_, 100, &size, &eos,
405 EXPECT_TRUE(stream_->ReadNonBlocking(test_read_buffer_, 0, &size, &eos,
411 EXPECT_TRUE(stream_->ReadNonBlocking(test_read_buffer_, 100, &size, &eos,
418 EXPECT_TRUE(stream_->ReadNonBlocking(test_read_buffer_, 100, &size, &eos,
429 EXPECT_FALSE(stream_->ReadNonBlocking(test_read_buffer_, 100, &size, nullptr,
959 EXPECT_TRUE(stream->ReadNonBlocking(buf, sizeof(buf), &read, &eos, nullptr));
965 EXPECT_TRUE(stream->ReadNonBlocking(buf, sizeof(buf), &read, &eos, nullptr));
970 EXPECT_TRUE(stream->ReadNonBlocking(buf, sizeof(buf), &read, &eos, nullptr));
976 EXPECT_TRUE(stream->ReadNonBlocking(bu
[all...]
H A Dstream.cc71 if (!ReadNonBlocking(buffer, size_to_read, size_read, &eos, error))
209 if (!ReadNonBlocking(buffer, size_to_read, &read, &eos, error))
H A Dmemory_stream.cc140 bool MemoryStream::ReadNonBlocking(void* buffer, function in class:brillo::MemoryStream
H A Dstream.h203 // Uses ReadNonBlocking() and MonitorDataAvailable().
215 // Uses ReadNonBlocking() and MonitorDataAvailable().
235 virtual bool ReadNonBlocking(void* buffer,
405 // Calls ReadNonBlocking and if there's no data available waits for it calling
408 // method. This method only calls WaitForData() if ReadNonBlocking() returns a
H A Dfake_stream.cc197 bool FakeStream::ReadNonBlocking(void* buffer, function in class:brillo::FakeStream
H A Dfake_stream_unittest.cc42 bool ok = stream_->ReadNonBlocking(data.data(), data.size(), &size_read,
H A Dfile_stream.cc442 bool FileStream::ReadNonBlocking(void* buffer, function in class:brillo::FileStream

Completed in 82 milliseconds