Lines Matching refs:SkData
152 static void assert_len(skiatest::Reporter* reporter, SkData* ref, size_t len) { in assert_len()
156 static void assert_data(skiatest::Reporter* reporter, SkData* ref, in assert_data()
166 SkAutoTUnref<SkData> r0(SkData::NewWithCopy(str, len + 1)); in test_cstring()
167 SkAutoTUnref<SkData> r1(SkData::NewWithCString(str)); in test_cstring()
171 SkAutoTUnref<SkData> r2(SkData::NewWithCString(nullptr)); in test_cstring()
195 SkAutoTUnref<SkData> r1(SkData::NewFromFILE(file)); in test_files()
201 SkAutoTUnref<SkData> r2(SkData::NewFromFD(fd)); in test_files()
211 SkAutoTUnref<SkData> r0(SkData::NewEmpty()); in DEF_TEST()
212 SkAutoTUnref<SkData> r1(SkData::NewWithCopy(str, strlen(str))); in DEF_TEST()
213 SkAutoTUnref<SkData> r2(SkData::NewWithProc(new int[N], N*sizeof(int), in DEF_TEST()
215 SkAutoTUnref<SkData> r3(SkData::NewSubset(r1, 7, 6)); in DEF_TEST()
225 SkData* tmp = SkData::NewSubset(r1, strlen(str), 10); in DEF_TEST()
228 tmp = SkData::NewSubset(r1, 0, 0); in DEF_TEST()