Home
last modified time | relevance | path

Searched refs:bufferedStream (Results 1 – 7 of 7) sorted by relevance

/external/skia/tests/
DFrontBufferedStreamTest.cpp16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read() argument
21 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read()
22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
27 SkStream* bufferedStream, bool shouldSucceed) { in test_rewind() argument
28 const bool success = bufferedStream->rewind(); in test_rewind()
37 const SkStream& bufferedStream, in test_hasLength() argument
40 REPORTER_ASSERT(reporter, bufferedStream.hasLength()); in test_hasLength()
42 REPORTER_ASSERT(reporter, !bufferedStream.hasLength()); in test_hasLength()
59 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_incremental_buffering() local
61 test_hasLength(reporter, *bufferedStream, *memStream); in test_incremental_buffering()
[all …]
DStreamTest.cpp239 auto bufferedStream = SkFrontBufferedStream::Make(std::move(dupe), bufferSize); in test_peeking_front_buffered_stream() local
240 REPORTER_ASSERT(r, bufferedStream != nullptr); in test_peeking_front_buffered_stream()
243 for (size_t i = 1; !bufferedStream->isAtEnd(); i++) { in test_peeking_front_buffered_stream()
244 const size_t unpeekableBytes = compare_peek_to_read(r, bufferedStream.get(), i); in test_peeking_front_buffered_stream()
259 bufferedStream = SkFrontBufferedStream::Make(original.duplicate(), bufferSize); in test_peeking_front_buffered_stream()
260 REPORTER_ASSERT(r, bufferedStream != nullptr); in test_peeking_front_buffered_stream()
268 REPORTER_ASSERT(r, bufferedStream->skip(start) == start); in test_peeking_front_buffered_stream()
270 const size_t bytesPeeked = bufferedStream->peek(peekStorage.get(), bytesToPeek); in test_peeking_front_buffered_stream()
278 const size_t bytesRead = bufferedStream->read(readStorage.get(), bytesPeeked); in test_peeking_front_buffered_stream()
283 REPORTER_ASSERT(r, bufferedStream->rewind()); in test_peeking_front_buffered_stream()
DCodecTest.cpp460 auto bufferedStream = SkFrontBufferedStream::Make( in check() local
462 REPORTER_ASSERT(r, bufferedStream); in check()
463 codec = SkCodec::MakeFromStream(std::move(bufferedStream)); in check()
/external/skqp/tests/
DFrontBufferedStreamTest.cpp16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read() argument
21 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read()
22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
27 SkStream* bufferedStream, bool shouldSucceed) { in test_rewind() argument
28 const bool success = bufferedStream->rewind(); in test_rewind()
37 const SkStream& bufferedStream, in test_hasLength() argument
40 REPORTER_ASSERT(reporter, bufferedStream.hasLength()); in test_hasLength()
42 REPORTER_ASSERT(reporter, !bufferedStream.hasLength()); in test_hasLength()
59 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_incremental_buffering() local
61 test_hasLength(reporter, *bufferedStream, *memStream); in test_incremental_buffering()
[all …]
DStreamTest.cpp239 auto bufferedStream = SkFrontBufferedStream::Make(std::move(dupe), bufferSize); in test_peeking_front_buffered_stream() local
240 REPORTER_ASSERT(r, bufferedStream != nullptr); in test_peeking_front_buffered_stream()
243 for (size_t i = 1; !bufferedStream->isAtEnd(); i++) { in test_peeking_front_buffered_stream()
244 const size_t unpeekableBytes = compare_peek_to_read(r, bufferedStream.get(), i); in test_peeking_front_buffered_stream()
259 bufferedStream = SkFrontBufferedStream::Make(original.duplicate(), bufferSize); in test_peeking_front_buffered_stream()
260 REPORTER_ASSERT(r, bufferedStream != nullptr); in test_peeking_front_buffered_stream()
268 REPORTER_ASSERT(r, bufferedStream->skip(start) == start); in test_peeking_front_buffered_stream()
270 const size_t bytesPeeked = bufferedStream->peek(peekStorage.get(), bytesToPeek); in test_peeking_front_buffered_stream()
278 const size_t bytesRead = bufferedStream->read(readStorage.get(), bytesPeeked); in test_peeking_front_buffered_stream()
283 REPORTER_ASSERT(r, bufferedStream->rewind()); in test_peeking_front_buffered_stream()
DCodecTest.cpp460 auto bufferedStream = SkFrontBufferedStream::Make( in check() local
462 REPORTER_ASSERT(r, bufferedStream); in check()
463 codec = SkCodec::MakeFromStream(std::move(bufferedStream)); in check()
/external/jacoco/org.jacoco.core/src/org/jacoco/core/tools/
DExecFileLoader.java114 final OutputStream bufferedStream = new BufferedOutputStream(fileStream); in save() local
116 save(bufferedStream); in save()
118 bufferedStream.close(); in save()