Lines Matching refs:ASSERT_TRUE
29 ASSERT_TRUE(stream->Seek(0)); in TestRead()
30 ASSERT_TRUE(stream->Read(buf.data(), buf.size())); in TestRead()
38 ASSERT_TRUE(stream->GetSize(&size)); in TestRead()
39 ASSERT_TRUE(stream->Seek(size)); in TestRead()
40 ASSERT_TRUE(stream->Read(tmp.data(), 0)); in TestRead()
46 ASSERT_TRUE(stream->Seek(size - 1)); in TestRead()
47 ASSERT_TRUE(stream->Read(tmp.data(), 0)); in TestRead()
48 ASSERT_TRUE(stream->Read(tmp.data(), 1)); in TestRead()
50 ASSERT_TRUE(stream->Seek(size - 1)); in TestRead()
56 ASSERT_TRUE(stream->Seek(0)); in TestRead()
59 ASSERT_TRUE(stream->Read(&u, 1)); in TestRead()
66 ASSERT_TRUE(stream->Seek(idx)); in TestRead()
67 ASSERT_TRUE(stream->Read(&u, 1)); in TestRead()
80 ASSERT_TRUE(stream->Seek(start)); in TestRead()
81 ASSERT_TRUE(stream->Read(tmp.data(), size)); in TestRead()
92 ASSERT_TRUE(stream->GetSize(&size)); in TestWriteBoundary()
93 ASSERT_TRUE(stream->Seek(size)); in TestWriteBoundary()
94 ASSERT_TRUE(stream->Write(buf.data(), 0)); in TestWriteBoundary()
95 ASSERT_TRUE(stream->Write(buf.data(), 1)); in TestWriteBoundary()
96 ASSERT_TRUE(stream->Write(buf.data(), 2)); in TestWriteBoundary()
97 ASSERT_TRUE(stream->Write(buf.data(), 3)); in TestWriteBoundary()
98 ASSERT_TRUE(stream->Write(buf.data(), 10)); in TestWriteBoundary()
100 ASSERT_TRUE(stream->GetSize(&size)); in TestWriteBoundary()
101 ASSERT_TRUE(stream->Seek(size - 1)); in TestWriteBoundary()
102 ASSERT_TRUE(stream->Write(buf.data(), 0)); in TestWriteBoundary()
103 ASSERT_TRUE(stream->Write(buf.data(), 1)); in TestWriteBoundary()
105 ASSERT_TRUE(stream->GetSize(&size)); in TestWriteBoundary()
106 ASSERT_TRUE(stream->Seek(size - 1)); in TestWriteBoundary()
107 ASSERT_TRUE(stream->Write(buf.data(), 2)); in TestWriteBoundary()
108 ASSERT_TRUE(stream->Write(buf.data(), 3)); in TestWriteBoundary()
109 ASSERT_TRUE(stream->Write(buf.data(), 10)); in TestWriteBoundary()
114 ASSERT_TRUE(read_stream->GetSize(&size)); in TestWrite()
120 ASSERT_TRUE(write_stream->Seek(0)); in TestWrite()
121 ASSERT_TRUE(write_stream->Write(buf1.data(), buf1.size())); in TestWrite()
122 ASSERT_TRUE(read_stream->Seek(0)); in TestWrite()
123 ASSERT_TRUE(read_stream->Read(buf2.data(), buf2.size())); in TestWrite()
129 ASSERT_TRUE(write_stream->Seek(0)); in TestWrite()
131 ASSERT_TRUE(write_stream->Write(&buf2[idx], 1)); in TestWrite()
134 ASSERT_TRUE(read_stream->Seek(0)); in TestWrite()
135 ASSERT_TRUE(read_stream->Read(buf1.data(), buf1.size())); in TestWrite()
142 ASSERT_TRUE(stream->GetSize(&size)); in TestSeek()
143 ASSERT_TRUE(stream->Seek(size)); in TestSeek()
144 ASSERT_TRUE(stream->GetOffset(&offset)); in TestSeek()
146 ASSERT_TRUE(stream->Seek(10)); in TestSeek()
147 ASSERT_TRUE(stream->GetOffset(&offset)); in TestSeek()
149 ASSERT_TRUE(stream->Seek(0)); in TestSeek()
150 ASSERT_TRUE(stream->GetOffset(&offset)); in TestSeek()
156 void TestClose(StreamInterface* stream) { ASSERT_TRUE(stream->Close()); } in TestClose()
178 ASSERT_TRUE(MakeTempFile(&filepath, nullptr)); in TEST_F()
183 ASSERT_TRUE(stream.get() != nullptr); in TEST_F()
188 ASSERT_TRUE(stream->Write(buf.data(), buf.size())); in TEST_F()
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()
271 ASSERT_TRUE(write_stream->Seek(0)); in TEST_F()
272 ASSERT_TRUE(write_stream->Write(data.data(), data.size())); in TEST_F()