/external/libbrillo/brillo/streams/ |
H A D | input_stream_set_unittest.cc | 74 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 D | openssl_stream_bio_unittests.cc | 41 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 D | stream_unittest.cc | 51 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 D | mock_stream.h | 42 MOCK_METHOD5(ReadNonBlocking, bool(void*, size_t, size_t*, bool*, ErrorPtr*));
|
H A D | input_stream_set.h | 80 bool ReadNonBlocking(void* buffer,
|
H A D | openssl_stream_bio.cc | 37 if (!stream->ReadNonBlocking(buf, size, &read, &eos, nullptr))
|
H A D | tls_stream.h | 52 bool ReadNonBlocking(void* buffer,
|
H A D | file_stream.h | 115 bool ReadNonBlocking(void* buffer,
|
H A D | input_stream_set.cc | 109 bool InputStreamSet::ReadNonBlocking(void* buffer, function in class:brillo::InputStreamSet 120 if (!stream->ReadNonBlocking(buffer, size_to_read, size_read, &eos, error))
|
H A D | fake_stream.h | 97 bool ReadNonBlocking(void* buffer,
|
H A D | memory_stream.h | 163 bool ReadNonBlocking(void* buffer,
|
H A D | memory_stream_unittest.cc | 143 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 D | tls_stream.cc | 83 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 D | file_stream_unittest.cc | 395 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 D | stream.cc | 71 if (!ReadNonBlocking(buffer, size_to_read, size_read, &eos, error)) 209 if (!ReadNonBlocking(buffer, size_to_read, &read, &eos, error))
|
H A D | memory_stream.cc | 140 bool MemoryStream::ReadNonBlocking(void* buffer, function in class:brillo::MemoryStream
|
H A D | stream.h | 203 // 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 D | fake_stream.cc | 197 bool FakeStream::ReadNonBlocking(void* buffer, function in class:brillo::FakeStream
|
H A D | fake_stream_unittest.cc | 42 bool ok = stream_->ReadNonBlocking(data.data(), data.size(), &size_read,
|
H A D | file_stream.cc | 442 bool FileStream::ReadNonBlocking(void* buffer, function in class:brillo::FileStream
|