Lines Matching refs:reporter

32 DEF_TEST(ParseConfigs_Gpu, reporter) {
39 REPORTER_ASSERT(reporter, configs.count() == 1);
40 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gl"));
41 REPORTER_ASSERT(reporter, configs[0]->getViaParts().count() == 0);
43 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
44 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getContextType()
46 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR() == false);
47 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseInstanced() == false);
48 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseDIText() == false);
49 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 0);
50 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getColorType() == kRGBA_8888_SkColorType);
51 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getColorSpace() == nullptr);
55 DEF_TEST(ParseConfigs_OutParam, reporter) {
60 REPORTER_ASSERT(reporter, configs.count() == 1);
61 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gles"));
65 REPORTER_ASSERT(reporter, configs.count() == 1);
66 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("8888"));
70 REPORTER_ASSERT(reporter, configs.count() == 1);
71 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gl"));
74 DEF_TEST(ParseConfigs_DefaultConfigs, reporter) {
91 REPORTER_ASSERT(reporter, configs.count() == config1.count());
93 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
94 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() == 0);
97 REPORTER_ASSERT(reporter, !configs[0]->asConfigGpu());
98 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu());
99 REPORTER_ASSERT(reporter, configs[2]->asConfigGpu());
100 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu());
101 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getUseDIText());
102 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu());
103 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getSamples() == 8);
104 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getSamples() == 4);
105 REPORTER_ASSERT(reporter, !configs[8]->asConfigGpu());
106 REPORTER_ASSERT(reporter, configs[9]->asConfigGpu());
107 REPORTER_ASSERT(reporter, configs[10]->asConfigGpu());
108 REPORTER_ASSERT(reporter, configs[11]->asConfigGpu()->getSamples() == 8);
109 REPORTER_ASSERT(reporter, configs[11]->asConfigGpu()->getUseNVPR());
110 REPORTER_ASSERT(reporter, !configs[11]->asConfigGpu()->getUseDIText());
111 REPORTER_ASSERT(reporter, configs[12]->asConfigGpu()->getSamples() == 4);
112 REPORTER_ASSERT(reporter, configs[12]->asConfigGpu()->getUseNVPR());
113 REPORTER_ASSERT(reporter, !configs[12]->asConfigGpu()->getUseDIText());
114 REPORTER_ASSERT(reporter, configs[13]->asConfigGpu()->getSamples() == 8);
115 REPORTER_ASSERT(reporter, configs[13]->asConfigGpu()->getUseNVPR());
116 REPORTER_ASSERT(reporter, configs[13]->asConfigGpu()->getUseDIText());
117 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getSamples() == 4);
118 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getUseNVPR());
119 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getUseDIText());
120 REPORTER_ASSERT(reporter, !configs[15]->asConfigGpu());
121 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu());
122 REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu());
123 REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu());
124 REPORTER_ASSERT(reporter, !configs[23]->asConfigGpu());
125 REPORTER_ASSERT(reporter, configs[24]->asConfigGpu()->getColorType() == kRGBA_F16_SkColorType);
126 REPORTER_ASSERT(reporter, configs[24]->asConfigGpu()->getColorSpace());
127 REPORTER_ASSERT(reporter, configs[24]->asConfigGpu()->getColorSpace()->gammaIsLinear());
133 REPORTER_ASSERT(reporter, *config25XYZ == *srgbXYZ);
134 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGBA_8888_SkColorType);
135 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace() == srgbColorSpace.get());
136 REPORTER_ASSERT(reporter, configs[40]->asConfigGpu()->getColorType() == kRGBA_F16_SkColorType);
137 REPORTER_ASSERT(reporter, configs[40]->asConfigGpu()->getColorSpace());
138 REPORTER_ASSERT(reporter, configs[40]->asConfigGpu()->getColorSpace()->gammaIsLinear());
142 REPORTER_ASSERT(reporter, *config41XYZ != *srgbXYZ);
143 REPORTER_ASSERT(reporter, configs[32]->asConfigGpu()->getContextType() ==
145 REPORTER_ASSERT(reporter, configs[41]->asConfigGpu()->getColorType() == kRGBA_F16_SkColorType);
146 REPORTER_ASSERT(reporter, configs[41]->asConfigGpu()->getColorSpace());
147 REPORTER_ASSERT(reporter, configs[41]->asConfigGpu()->getColorSpace()->gammaIsLinear());
148 REPORTER_ASSERT(reporter, *as_CSB(configs[41]->asConfigGpu()->getColorSpace())->toXYZD50() !=
150 REPORTER_ASSERT(reporter, configs[32]->asConfigGpu()->getUseInstanced());
151 REPORTER_ASSERT(reporter, configs[33]->asConfigGpu()->getContextType() ==
153 REPORTER_ASSERT(reporter, configs[33]->asConfigGpu()->getUseInstanced());
154 REPORTER_ASSERT(reporter, configs[33]->asConfigGpu()->getSamples() == 4);
155 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getContextType() ==
157 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getUseInstanced());
158 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getUseDIText());
159 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getSamples() == 4);
160 REPORTER_ASSERT(reporter, configs[35]->asConfigGpu()->getContextType() ==
162 REPORTER_ASSERT(reporter, configs[35]->asConfigGpu()->getUseInstanced());
163 REPORTER_ASSERT(reporter, configs[35]->asConfigGpu()->getSamples() == 8);
164 REPORTER_ASSERT(reporter, configs[36]->asConfigGpu()->getContextType() ==
166 REPORTER_ASSERT(reporter, configs[36]->asConfigGpu()->getUseInstanced());
167 REPORTER_ASSERT(reporter, configs[36]->asConfigGpu()->getUseDIText());
168 REPORTER_ASSERT(reporter, configs[36]->asConfigGpu()->getSamples() == 8);
169 REPORTER_ASSERT(reporter, configs[37]->asConfigGpu()->getContextType() ==
171 REPORTER_ASSERT(reporter, configs[37]->asConfigGpu()->getUseInstanced());
172 REPORTER_ASSERT(reporter, configs[38]->asConfigGpu()->getContextType() ==
174 REPORTER_ASSERT(reporter, configs[38]->asConfigGpu()->getUseInstanced());
175 REPORTER_ASSERT(reporter, configs[38]->asConfigGpu()->getSamples() == 4);
176 REPORTER_ASSERT(reporter, configs[39]->asConfigGpu()->getContextType() ==
178 REPORTER_ASSERT(reporter, configs[39]->asConfigGpu()->getUseInstanced());
179 REPORTER_ASSERT(reporter, configs[39]->asConfigGpu()->getUseDIText());
180 REPORTER_ASSERT(reporter, configs[39]->asConfigGpu()->getSamples() == 4);
181 REPORTER_ASSERT(reporter, configs[19]->asConfigGpu());
182 REPORTER_ASSERT(reporter, configs[20]->asConfigGpu());
183 REPORTER_ASSERT(reporter, configs[21]->asConfigGpu());
185 REPORTER_ASSERT(reporter, configs[23]->asConfigGpu());
187 REPORTER_ASSERT(reporter, !configs[22]->asConfigGpu());
189 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu());
190 REPORTER_ASSERT(reporter, configs[27]->asConfigGpu());
191 REPORTER_ASSERT(reporter, configs[27]->asConfigGpu()->getSamples() == 4);
192 REPORTER_ASSERT(reporter, configs[27]->asConfigGpu()->getUseNVPR());
193 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu());
194 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getSamples() == 4);
195 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getUseNVPR());
196 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getUseDIText());
197 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu());
198 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()->getColorType() == kRGBA_8888_SkColorType);
199 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()->getColorSpace() == srgbColorSpace.get());
200 REPORTER_ASSERT(reporter, configs[30]->asConfigGpu());
201 REPORTER_ASSERT(reporter, configs[30]->asConfigGpu()->getSamples() == 4);
203 REPORTER_ASSERT(reporter, configs[31]->asConfigGpu());
208 DEF_TEST(ParseConfigs_ExtendedGpuConfigsCorrect, reporter) {
222 REPORTER_ASSERT(reporter, configs.count() == config1.count());
224 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
227 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getContextType() ==
229 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR());
230 REPORTER_ASSERT(reporter, !configs[0]->asConfigGpu()->getUseDIText());
231 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 0);
232 REPORTER_ASSERT(reporter, configs[1]->asConfigGpu()->getContextType() ==
234 REPORTER_ASSERT(reporter, configs[1]->asConfigGpu());
235 REPORTER_ASSERT(reporter, configs[2]->asConfigGpu()->getContextType() ==
237 REPORTER_ASSERT(reporter, configs[2]->asConfigGpu());
239 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu()->getContextType() ==
242 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu());
244 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() ==
246 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() ==
248 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR());
249 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText());
250 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 0);
251 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() ==
253 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseNVPR());
254 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseDIText());
255 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getSamples() == 0);
257 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getContextType() ==
259 REPORTER_ASSERT(reporter, !configs[7]->asConfigGpu()->getUseNVPR());
260 REPORTER_ASSERT(reporter, !configs[7]->asConfigGpu()->getUseDIText());
261 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getSamples() == 0);
266 DEF_TEST(ParseConfigs_ExtendedGpuConfigsIncorrect, reporter) {
286 REPORTER_ASSERT(reporter, configs.count() == config1.count());
288 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
289 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(config1[i]));
291 REPORTER_ASSERT(reporter, !configs[i]->asConfigGpu());
296 DEF_TEST(ParseConfigs_ExtendedGpuConfigsSurprises, reporter) {
306 REPORTER_ASSERT(reporter, configs.count() == config1.count());
308 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
310 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals("gpu"));
311 REPORTER_ASSERT(reporter, configs[i]->asConfigGpu());
313 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(config1[i]));
317 DEF_TEST(ParseConfigs_ViaParsing, reporter) {
335 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
336 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(expectedConfigs[i].backend));
339 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() == j);
342 REPORTER_ASSERT(reporter,
348 DEF_TEST(ParseConfigs_ViaParsingExtendedForm, reporter) {
376 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
377 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(expectedConfigs[i].backend));
380 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() ==
384 REPORTER_ASSERT(reporter,
389 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
390 REPORTER_ASSERT(reporter, configs[1]->asConfigGpu());
391 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu());
392 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu());