Lines Matching refs:SkData
131 static void assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) { in assert_len()
135 static void assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, in assert_data()
145 sk_sp<SkData> r0(SkData::MakeWithCopy(str, len + 1)); in test_cstring()
146 sk_sp<SkData> r1(SkData::MakeWithCString(str)); in test_cstring()
150 sk_sp<SkData> r2(SkData::MakeWithCString(nullptr)); in test_cstring()
174 sk_sp<SkData> r1(SkData::MakeFromFILE(file)); in test_files()
180 sk_sp<SkData> r2(SkData::MakeFromFD(fd)); in test_files()
190 sk_sp<SkData> r0(SkData::MakeEmpty()); in DEF_TEST()
191 sk_sp<SkData> r1(SkData::MakeWithCopy(str, strlen(str))); in DEF_TEST()
192 sk_sp<SkData> r2(SkData::MakeWithProc(new int[N], N*sizeof(int), delete_int_proc, gGlobal)); in DEF_TEST()
193 sk_sp<SkData> r3(SkData::MakeSubset(r1.get(), 7, 6)); in DEF_TEST()
203 sk_sp<SkData> tmp(SkData::MakeSubset(r1.get(), strlen(str), 10)); in DEF_TEST()
205 tmp = SkData::MakeSubset(r1.get(), 0, 0); in DEF_TEST()