Lines Matching refs:bytesWritten

157     size_t bytesWritten = writer.bytesWritten();  in TestObjectSerializationNoAlign()  local
158 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
166 SkValidatingReadBuffer buffer(dataWritten, bytesWritten - 4); in TestObjectSerializationNoAlign()
172 SkValidatingReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign()
181 REPORTER_ASSERT(reporter, offsetAfter - offsetBefore == bytesWritten); in TestObjectSerializationNoAlign()
195 size_t bytesWritten = writer.bytesWritten(); in TestFlattenableSerialization() local
196 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
198 SkASSERT(bytesWritten <= 4096); in TestFlattenableSerialization()
203 SkValidatingReadBuffer buffer(dataWritten, bytesWritten - 4); in TestFlattenableSerialization()
210 SkValidatingReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization()
218 REPORTER_ASSERT(reporter, static_cast<size_t>(peekAfter - peekBefore) == bytesWritten); in TestFlattenableSerialization()
233 size_t bytesWritten = writer.bytesWritten(); in TestArraySerialization() local
235 REPORTER_ASSERT(reporter, (4 + kArraySize * sizeof(T)) == bytesWritten); in TestArraySerialization()
241 SkValidatingReadBuffer buffer(dataWritten, bytesWritten); in TestArraySerialization()
248 SkValidatingReadBuffer buffer2(dataWritten, bytesWritten); in TestArraySerialization()
562 size_t size = writer.bytesWritten(); in DEF_TEST()