Lines Matching refs:data2
44 const SkScalar data2[] = { 0, SK_Scalar1, -SK_Scalar1, SK_Scalar1/2 }; in DEF_TEST() local
45 const size_t bufsize = sizeof(data) > sizeof(data2) ? in DEF_TEST()
46 sizeof(data) : sizeof(data2); in DEF_TEST()
63 reader.setMemory(data2, sizeof(data2)); in DEF_TEST()
64 for (i = 0; i < SK_ARRAY_COUNT(data2); ++i) { in DEF_TEST()
65 REPORTER_ASSERT(reporter, sizeof(data2) == reader.size()); in DEF_TEST()
67 REPORTER_ASSERT(reporter, (const void*)data2 == reader.base()); in DEF_TEST()
68 REPORTER_ASSERT(reporter, (const void*)&data2[i] == reader.peek()); in DEF_TEST()
69 REPORTER_ASSERT(reporter, data2[i] == reader.readScalar()); in DEF_TEST()
74 reader.read(buffer, sizeof(data2)); in DEF_TEST()
75 REPORTER_ASSERT(reporter, !memcmp(data2, buffer, sizeof(data2))); in DEF_TEST()