Lines Matching refs:asset
316 SkStreamAsset* asset, in stream_peek_test() argument
318 if (asset->getLength() != expected->size()) { in stream_peek_test()
325 for (size_t i = 0; i < asset->getLength(); ++i) { in stream_peek_test()
327 SkToU32(SkTMin(sizeof(buffer), asset->getLength() - i)); in stream_peek_test()
331 SkASSERT(size + i <= asset->getLength()); in stream_peek_test()
332 if (asset->peek(buffer, size) < size) { in stream_peek_test()
341 REPORTER_ASSERT(rep, 1 == asset->read(&value, 1)); in stream_peek_test()
363 SkAutoTDelete<SkStreamAsset> asset(dynamicMemoryWStream.detachAsStream()); in DEF_TEST() local
364 SkAutoTUnref<SkData> expected(SkData::NewUninitialized(asset->getLength())); in DEF_TEST()
370 for (size_t i = 0; i < asset->getLength(); ++i) { in DEF_TEST()
373 stream_peek_test(rep, asset, expected); in DEF_TEST()
434 SkAutoTDelete<SkStreamAsset> asset(tmp.detachAsStream()); in DEF_TEST() local
435 REPORTER_ASSERT(r, nullptr == asset->getMemoryBase()); in DEF_TEST()