Lines Matching refs:success

56     bool success = GetResourceAsBitmap("images/mandrill_128.png", &bitmap);  in test_encode()  local
57 if (!success) { in test_encode()
62 success = bitmap.peekPixels(&src); in test_encode()
63 REPORTER_ASSERT(r, success); in test_encode()
64 if (!success) { in test_encode()
69 success = encode(format, &dst0, src); in test_encode()
70 REPORTER_ASSERT(r, success); in test_encode()
74 success = encoder1->encodeRows(1); in test_encode()
75 REPORTER_ASSERT(r, success); in test_encode()
80 success = encoder2->encodeRows(3); in test_encode()
81 REPORTER_ASSERT(r, success); in test_encode()
85 success = encoder3->encodeRows(200); in test_encode()
86 REPORTER_ASSERT(r, success); in test_encode()
141 bool success = GetResourceAsBitmap("images/mandrill_128.png", &bitmap); in DEF_TEST() local
142 if (!success) { in DEF_TEST()
147 success = bitmap.peekPixels(&src); in DEF_TEST()
148 REPORTER_ASSERT(r, success); in DEF_TEST()
149 if (!success) { in DEF_TEST()
155 success = SkJpegEncoder::Encode(&dst0, src, options); in DEF_TEST()
156 REPORTER_ASSERT(r, success); in DEF_TEST()
159 success = SkJpegEncoder::Encode(&dst1, src, options); in DEF_TEST()
160 REPORTER_ASSERT(r, success); in DEF_TEST()
163 success = SkJpegEncoder::Encode(&dst2, src, options); in DEF_TEST()
164 REPORTER_ASSERT(r, success); in DEF_TEST()
214 bool success = SkPngEncoder::Encode(&dst, src, options); in testPngComments() local
215 REPORTER_ASSERT(r, success); in testPngComments()
253 bool success = GetResourceAsBitmap("images/mandrill_128.png", &bitmap); in DEF_TEST() local
254 if (!success) { in DEF_TEST()
259 success = bitmap.peekPixels(&src); in DEF_TEST()
260 REPORTER_ASSERT(r, success); in DEF_TEST()
261 if (!success) { in DEF_TEST()
267 success = SkPngEncoder::Encode(&dst0, src, options); in DEF_TEST()
268 REPORTER_ASSERT(r, success); in DEF_TEST()
271 success = SkPngEncoder::Encode(&dst1, src, options); in DEF_TEST()
272 REPORTER_ASSERT(r, success); in DEF_TEST()
275 success = SkPngEncoder::Encode(&dst2, src, options); in DEF_TEST()
276 REPORTER_ASSERT(r, success); in DEF_TEST()
344 bool success = GetResourceAsBitmap("images/google_chrome.ico", &bitmap); in DEF_TEST() local
345 if (!success) { in DEF_TEST()
350 success = bitmap.peekPixels(&src); in DEF_TEST()
351 REPORTER_ASSERT(r, success); in DEF_TEST()
352 if (!success) { in DEF_TEST()
360 success = SkWebpEncoder::Encode(&dst0, src, options); in DEF_TEST()
361 REPORTER_ASSERT(r, success); in DEF_TEST()
364 success = SkWebpEncoder::Encode(&dst1, src, options); in DEF_TEST()
365 REPORTER_ASSERT(r, success); in DEF_TEST()
369 success = SkWebpEncoder::Encode(&dst2, src, options); in DEF_TEST()
370 REPORTER_ASSERT(r, success); in DEF_TEST()
374 success = SkWebpEncoder::Encode(&dst3, src, options); in DEF_TEST()
375 REPORTER_ASSERT(r, success); in DEF_TEST()