Lines Matching refs:SkData
129 static void assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) { in assert_len()
133 static void assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, in assert_data()
143 sk_sp<SkData> r0(SkData::MakeWithCopy(str, len + 1)); in test_cstring()
144 sk_sp<SkData> r1(SkData::MakeWithCString(str)); in test_cstring()
148 sk_sp<SkData> r2(SkData::MakeWithCString(nullptr)); in test_cstring()
172 sk_sp<SkData> r1(SkData::MakeFromFILE(file)); in test_files()
178 sk_sp<SkData> r2(SkData::MakeFromFD(fd)); in test_files()
188 sk_sp<SkData> r0(SkData::MakeEmpty()); in DEF_TEST()
189 sk_sp<SkData> r1(SkData::MakeWithCopy(str, strlen(str))); in DEF_TEST()
190 sk_sp<SkData> r2(SkData::MakeWithProc(new int[N], N*sizeof(int), delete_int_proc, gGlobal)); in DEF_TEST()
191 sk_sp<SkData> r3(SkData::MakeSubset(r1.get(), 7, 6)); in DEF_TEST()
201 sk_sp<SkData> tmp(SkData::MakeSubset(r1.get(), strlen(str), 10)); in DEF_TEST()
203 tmp = SkData::MakeSubset(r1.get(), 0, 0); in DEF_TEST()
211 sk_sp<SkData> array[] = { in DEF_TEST()
212 SkData::MakeEmpty(), in DEF_TEST()
213 SkData::MakeUninitialized(0), in DEF_TEST()
214 SkData::MakeFromMalloc(sk_malloc_throw(0), 0), in DEF_TEST()
215 SkData::MakeWithCopy("", 0), in DEF_TEST()
216 SkData::MakeWithProc(nullptr, 0, [](const void*, void*){}, nullptr), in DEF_TEST()
217 SkData::MakeWithoutCopy(nullptr, 0), in DEF_TEST()