Lines Matching refs:memStream
61 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_incremental_buffering() local
64 std::unique_ptr<SkStream>(memStream), bufferSize); in test_incremental_buffering()
66 test_hasLength(reporter, *bufferedStream, *memStream); in test_incremental_buffering()
91 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_perfectly_sized_buffer() local
93 std::unique_ptr<SkStream>(memStream), bufferSize); in test_perfectly_sized_buffer()
94 test_hasLength(reporter, *bufferedStream, *memStream); in test_perfectly_sized_buffer()
106 test_read(reporter, bufferedStream.get(), gAbcs + memStream->getPosition(), 1); in test_perfectly_sized_buffer()
111 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_skipping() local
113 std::unique_ptr<SkStream>(memStream), bufferSize); in test_skipping()
114 test_hasLength(reporter, *bufferedStream, *memStream); in test_skipping()
127 test_read(reporter, bufferedStream.get(), gAbcs + memStream->getPosition(), bufferSize / 4); in test_skipping()
163 AndroidLikeMemoryStream* memStream = in test_read_beyond_buffer() local
168 std::unique_ptr<SkStream>(memStream), bufferSize); in test_read_beyond_buffer()
169 test_hasLength(reporter, *bufferedStream, *memStream); in test_read_beyond_buffer()
224 SkMemoryStream* memStream = new SkMemoryStream(gAbcs, strlen(gAbcs), false); in test_initial_offset() local
229 memStream->skip(arbitraryOffset); in test_initial_offset()
231 std::unique_ptr<SkStream>(memStream), bufferSize); in test_initial_offset()
248 REPORTER_ASSERT(reporter, memStream->getPosition() - arbitraryOffset == currentPosition); in test_initial_offset()