Lines Matching refs:write_stream
112 void TestWrite(StreamInterface* write_stream, StreamInterface* read_stream) { in TestWrite() argument
120 ASSERT_TRUE(write_stream->Seek(0)); in TestWrite()
121 ASSERT_TRUE(write_stream->Write(buf1.data(), buf1.size())); in TestWrite()
129 ASSERT_TRUE(write_stream->Seek(0)); in TestWrite()
131 ASSERT_TRUE(write_stream->Write(&buf2[idx], 1)); in TestWrite()
167 auto write_stream = MemoryStream::CreateForWrite(&buf); in TEST_F() local
168 TestWrite(write_stream.get(), read_stream.get()); in TEST_F()
169 TestWriteBoundary(write_stream.get()); in TEST_F()
170 TestSeek(write_stream.get(), false); in TEST_F()
173 TestClose(write_stream.get()); in TEST_F()
218 auto write_stream = PuffinStream::CreateForHuff( in TEST_F() local
222 ASSERT_TRUE(write_stream->Seek(0)); in TEST_F()
224 ASSERT_TRUE(write_stream->Write(&kPuffsSample1[idx], 1)); in TEST_F()
230 ASSERT_TRUE(write_stream->Seek(0)); in TEST_F()
231 ASSERT_TRUE(write_stream->Write(kPuffsSample1.data(), kPuffsSample1.size())); in TEST_F()
237 ASSERT_TRUE(write_stream->Seek(0)); in TEST_F()
239 ASSERT_TRUE(write_stream->Write(&byte, 1)); in TEST_F()
246 TestClose(write_stream.get()); in TEST_F()
269 auto write_stream = ExtentStream::CreateForWrite( in TEST_F() local
271 ASSERT_TRUE(write_stream->Seek(0)); in TEST_F()
272 ASSERT_TRUE(write_stream->Write(data.data(), data.size())); in TEST_F()
275 TestSeek(write_stream.get(), false); in TEST_F()
276 TestClose(write_stream.get()); in TEST_F()