Searched refs:test_write_buffer_ (Results 1 – 3 of 3) sorted by relevance
/external/libbrillo/brillo/streams/ |
D | memory_containers_unittest.cc | 56 const void* const test_write_buffer_ = IntToConstPtr(67890); member in brillo::MemoryContainerTest 131 CopyMemoryBlock(buffer_, test_write_buffer_, 50)).Times(1); in TEST_F() 135 EXPECT_TRUE(container_.Write(test_write_buffer_, 50, 10, &written, &error)); in TEST_F() 148 CopyMemoryBlock(buffer_, test_write_buffer_, 50)).Times(1); in TEST_F() 151 EXPECT_TRUE(container_.Write(test_write_buffer_, 50, 80, &written, nullptr)); in TEST_F() 163 CopyMemoryBlock(buffer_, test_write_buffer_, 50)).Times(1); in TEST_F() 166 EXPECT_TRUE(container_.Write(test_write_buffer_, 50, 110, &written, nullptr)); in TEST_F() 183 EXPECT_FALSE(container_.Write(test_write_buffer_, 50, 110, &written, &error)); in TEST_F() 205 EXPECT_FALSE(container_.Write(test_write_buffer_, 50, 110, &written, &error)); in TEST_F()
|
D | file_stream_unittest.cc | 189 const char* const test_write_buffer_ = IntToConstPtr(67890); member in brillo::FileStreamTest 517 EXPECT_CALL(fd_mock(), Write(test_write_buffer_, 100)) in TEST_F() 521 EXPECT_TRUE(stream_->WriteAsync(test_write_buffer_, 100, in TEST_F() 528 EXPECT_CALL(fd_mock(), Write(test_write_buffer_, 100)).WillOnce(Return(87)); in TEST_F() 536 EXPECT_CALL(fd_mock(), Write(test_write_buffer_, _)) in TEST_F() 538 EXPECT_TRUE(stream_->WriteNonBlocking(test_write_buffer_, 100, &size, in TEST_F() 542 EXPECT_TRUE(stream_->WriteNonBlocking(test_write_buffer_, 0, &size, nullptr)); in TEST_F() 545 EXPECT_CALL(fd_mock(), Write(test_write_buffer_, _)).WillOnce(Return(0)); in TEST_F() 546 EXPECT_TRUE(stream_->WriteNonBlocking(test_write_buffer_, 100, &size, in TEST_F() 550 EXPECT_CALL(fd_mock(), Write(test_write_buffer_, _)) in TEST_F() [all …]
|
D | memory_stream_unittest.cc | 70 const void* const test_write_buffer_ = IntToConstPtr(67890); member in brillo::MemoryStreamTest 178 EXPECT_CALL(container_mock(), Write(test_write_buffer_, 10, 0, _, nullptr)) in TEST_F() 181 EXPECT_TRUE(stream_->WriteNonBlocking(test_write_buffer_, 10, &written, in TEST_F() 186 EXPECT_CALL(container_mock(), Write(test_write_buffer_, 100, 5, _, nullptr)) in TEST_F() 189 EXPECT_TRUE(stream_->WriteNonBlocking(test_write_buffer_, 100, &written, in TEST_F() 194 EXPECT_CALL(container_mock(), Write(test_write_buffer_, 10, 105, _, nullptr)) in TEST_F() 197 EXPECT_TRUE(stream_->WriteNonBlocking(test_write_buffer_, 10, &written, in TEST_F()
|