Home
last modified time | relevance | path

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

/third_party/skia/tests/
DStreamTest.cpp216 const size_t bytesPeeked = stream->peek(peekPtr, bytesToPeek); in compare_peek_to_read() local
225 REPORTER_ASSERT(reporter, !memcmp(peekPtr, readPtr, bytesPeeked)); in compare_peek_to_read()
228 REPORTER_ASSERT(reporter, bytesRead >= bytesPeeked); in compare_peek_to_read()
230 return bytesRead - bytesPeeked; in compare_peek_to_read()
277 const size_t bytesPeeked = bufferedStream->peek(peekStorage.get(), bytesToPeek); in test_peeking_front_buffered_stream() local
278 if (0 == bytesPeeked) { in test_peeking_front_buffered_stream()
285 const size_t bytesRead = bufferedStream->read(readStorage.get(), bytesPeeked); in test_peeking_front_buffered_stream()
286 REPORTER_ASSERT(r, bytesRead == bytesPeeked); in test_peeking_front_buffered_stream()
287 REPORTER_ASSERT(r, !memcmp(peekStorage.get(), readStorage.get(), bytesPeeked)); in test_peeking_front_buffered_stream()