Lines Matching defs:stream

36 // Test that hasLength() returns the correct value, based on the stream
37 // being wrapped. A length can only be known if the wrapped stream has a
55 // Tests reading the stream across boundaries of what has been buffered so far and what
59 // wrapped stream, but that's okay because we know the wrapping stream has not been
80 // reading directly from the stream.
85 // This test assumes that the stream is larger than the buffer; otherwise the
133 // A custom class whose isAtEnd behaves the way Android's stream does - since it is an adaptor to a
159 // This test ensures that buffering the exact length of the stream and attempting to read beyond it
162 // Use a stream that behaves like Android's stream.
166 // Create a buffer that matches the length of the stream.
179 // Mock stream that optionally has a length and/or position. Tests that FrontBufferedStream's
180 // length depends on the stream it's buffering having a length and position.
209 // Test all possible combinations of the wrapped stream having a length and a position.
213 LengthOptionalStream* stream =
216 std::unique_ptr<SkStream>(stream), bufferSize);
217 test_hasLength(reporter, *buffered, *stream);
222 // Test using a stream with an initial offset.
227 // the stream it wraps.
240 // Read the stream in chunks. After each read, the position must match currentPosition,
241 // which sums the amount attempted to read, unless the end of the stream has been reached.
270 // Test that a FrontBufferedStream does not allow reading after the end of a stream.
295 auto stream = android::skia::FrontBufferedStream::Make(
299 // won't read past the end of the stream.
300 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromStream(std::move(stream)));