• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:expectations

4  * Use of this source code is governed by a BSD-style license that can be
13 #include "tests/Test.h"
29 // Test queryYUBAInfo() in codec_yuv()
35 // SkYUVAInfo param is required to be non-null. in codec_yuv()
36 bool success = codec->queryYUVAInfo(kAllTypes, nullptr); in codec_yuv()
39 success = codec->queryYUVAInfo(kNoTypes, &yuvaPixmapInfo); in codec_yuv()
42 success = codec->queryYUVAInfo(kAllTypes, &yuvaPixmapInfo); in codec_yuv()
79 // Test getYUVAPlanes() in codec_yuv()
80 REPORTER_ASSERT(reporter, SkCodec::kSuccess == codec->getYUVAPlanes(pixmaps)); in codec_yuv()
94 SkYUVAInfo expectations = setExpectations({128, 128}, SkYUVAInfo::Subsampling::k420); in DEF_TEST() local
95 codec_yuv(r, "images/color_wheel.jpg", &expectations); in DEF_TEST()
98 expectations = setExpectations({512, 512}, SkYUVAInfo::Subsampling::k420); in DEF_TEST()
99 codec_yuv(r, "images/mandrill_512_q075.jpg", &expectations); in DEF_TEST()
102 expectations = setExpectations({512, 512}, SkYUVAInfo::Subsampling::k444); in DEF_TEST()
103 codec_yuv(r, "images/mandrill_h1v1.jpg", &expectations); in DEF_TEST()
106 expectations = setExpectations({512, 512}, SkYUVAInfo::Subsampling::k422); in DEF_TEST()
107 codec_yuv(r, "images/mandrill_h2v1.jpg", &expectations); in DEF_TEST()
109 // Non-power of two dimensions in DEF_TEST()
110 expectations = setExpectations({439, 154}, SkYUVAInfo::Subsampling::k420); in DEF_TEST()
111 codec_yuv(r, "images/cropped_mandrill.jpg", &expectations); in DEF_TEST()
113 expectations = setExpectations({8, 8}, SkYUVAInfo::Subsampling::k420); in DEF_TEST()
114 codec_yuv(r, "images/randPixels.jpg", &expectations); in DEF_TEST()
117 expectations = setExpectations({512, 512}, SkYUVAInfo::Subsampling::k444); in DEF_TEST()
118 codec_yuv(r, "images/brickwork-texture.jpg", &expectations); in DEF_TEST()
119 codec_yuv(r, "images/brickwork_normal-map.jpg", &expectations); in DEF_TEST()