/external/libbrillo/brillo/streams/ |
D | input_stream_set_unittest.cc | 79 EXPECT_FALSE(stream_->ReadBlocking(buffer, sizeof(buffer), &size, nullptr)); in TEST_F() 134 TEST_F(InputStreamSetTest, ReadBlocking) { in TEST_F() argument 142 EXPECT_TRUE(stream_->ReadBlocking(IntToPtr(1000), 100, &read, nullptr)); in TEST_F() 159 EXPECT_TRUE(stream_->ReadBlocking(IntToPtr(1000), 100, &read, nullptr)); in TEST_F() 166 EXPECT_TRUE(stream_->ReadBlocking(IntToPtr(1000), 100, &read, nullptr)); in TEST_F()
|
D | stream_unittest.cc | 302 TEST(Stream, ReadBlocking) { in TEST() argument 311 EXPECT_TRUE(stream_mock.ReadBlocking(buf, sizeof(buf), &read, nullptr)); in TEST() 318 EXPECT_TRUE(stream_mock.ReadBlocking(buf, sizeof(buf), &read, nullptr)); in TEST() 340 EXPECT_TRUE(stream_mock.ReadBlocking(buf, sizeof(buf), &read, nullptr)); in TEST() 352 EXPECT_FALSE(stream_mock.ReadBlocking(buf, sizeof(buf), &read, nullptr)); in TEST() 358 MOCK_METHOD4(ReadBlocking, bool(void*, size_t, size_t*, ErrorPtr*)); in TEST() 363 EXPECT_CALL(stream_mock, ReadBlocking(buf, 1024, _, _)) in TEST() 365 EXPECT_CALL(stream_mock, ReadBlocking(buf + 24, 1000, _, _)) in TEST() 370 EXPECT_CALL(stream_mock, ReadBlocking(buf, 1024, _, _)) in TEST() 372 EXPECT_CALL(stream_mock, ReadBlocking(buf + 24, 1000, _, _)) in TEST()
|
D | mock_stream.h | 43 MOCK_METHOD4(ReadBlocking, bool(void*, size_t, size_t*, ErrorPtr*));
|
D | stream.cc | 65 bool Stream::ReadBlocking(void* buffer, in ReadBlocking() function in brillo::Stream 90 if (!ReadBlocking(buffer, size_to_read, &size_read, error)) in ReadAllBlocking()
|
D | stream.h | 255 virtual bool ReadBlocking(void* buffer,
|
D | file_stream_unittest.cc | 441 TEST_F(FileStreamTest, ReadBlocking) { in TEST_F() argument 444 EXPECT_TRUE(stream_->ReadBlocking(test_read_buffer_, 100, &size, nullptr)); in TEST_F() 455 EXPECT_TRUE(stream_->ReadBlocking(test_read_buffer_, 80, &size, nullptr)); in TEST_F() 459 EXPECT_TRUE(stream_->ReadBlocking(test_read_buffer_, 50, &size, nullptr)); in TEST_F() 473 EXPECT_FALSE(stream_->ReadBlocking(test_read_buffer_, 80, &size, &error)); in TEST_F()
|
/external/libbrillo/brillo/http/ |
D | http_request_unittest.cc | 36 while (arg->ReadBlocking(buf, sizeof(buf), &read, nullptr) && read > 0) { 183 EXPECT_CALL(*mock_stream, ReadBlocking(_, _, _, _)) in TEST_F()
|
D | http_connection_curl.cc | 230 bool success = me->request_data_stream_->ReadBlocking(ptr, data_len, in read_callback()
|
D | http_transport_fake.cc | 164 CHECK(stream->ReadBlocking(buffer, sizeof(buffer), &size, nullptr)); in SetData()
|
D | http_request.cc | 336 while (src_stream->ReadBlocking(buffer, sizeof(buffer), &read, nullptr) && in ExtractData()
|