Searched refs:stream_mock (Results 1 – 1 of 1) sorted by relevance
/external/libbrillo/brillo/streams/ |
D | stream_unittest.cc | 75 MockStreamImpl stream_mock; in TEST() local 76 EXPECT_CALL(stream_mock, GetPosition()).WillOnce(Return(123)); in TEST() 77 EXPECT_CALL(stream_mock, SetSizeBlocking(123, _)).WillOnce(Return(true)); in TEST() 78 EXPECT_TRUE(stream_mock.TruncateBlocking(nullptr)); in TEST() 82 MockStreamImpl stream_mock; in TEST() local 83 EXPECT_CALL(stream_mock, Seek(12345, Whence::FROM_BEGIN, _, _)) in TEST() 85 EXPECT_TRUE(stream_mock.SetPosition(12345, nullptr)); in TEST() 90 EXPECT_CALL(stream_mock, Seek(max_offset, _, _, _)) in TEST() 92 EXPECT_TRUE(stream_mock.SetPosition(max_offset, nullptr)); in TEST() 94 EXPECT_FALSE(stream_mock.SetPosition(max_offset + 1, &error)); in TEST() [all …]
|