Home | History | Annotate | Download | only in base

Lines Matching defs:best

201   cricket::VideoFormat best;
202 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
203 EXPECT_EQ(640, best.width);
204 EXPECT_EQ(480, best.height);
205 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
208 EXPECT_FALSE(capturer_.GetBestCaptureFormat(desired, &best));
211 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
218 cricket::VideoFormat best;
220 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
221 EXPECT_EQ(1280, best.width);
222 EXPECT_EQ(720, best.height);
223 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
228 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
229 EXPECT_EQ(320, best.width);
230 EXPECT_EQ(240, best.height);
231 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
236 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
237 EXPECT_EQ(640, best.width);
238 EXPECT_EQ(480, best.height);
239 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
244 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
245 EXPECT_EQ(320, best.width);
246 EXPECT_EQ(240, best.height);
247 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
252 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
253 EXPECT_EQ(160, best.width);
254 EXPECT_EQ(120, best.height);
255 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
276 cricket::VideoFormat best;
278 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
279 EXPECT_EQ(960, best.width);
280 EXPECT_EQ(544, best.height);
281 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(24), best.interval);
287 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
288 EXPECT_EQ(960, best.width);
289 EXPECT_EQ(544, best.height);
290 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(24), best.interval);
296 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
297 EXPECT_EQ(320, best.width);
298 EXPECT_EQ(240, best.height);
299 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
304 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
305 EXPECT_EQ(640, best.width);
306 EXPECT_EQ(480, best.height);
307 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
312 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
313 EXPECT_EQ(320, best.width);
314 EXPECT_EQ(240, best.height);
315 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
320 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
321 EXPECT_EQ(320, best.width);
322 EXPECT_EQ(240, best.height);
323 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
328 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
329 EXPECT_EQ(640, best.width);
330 EXPECT_EQ(480, best.height);
331 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
337 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
338 EXPECT_EQ(1280, best.width);
339 EXPECT_EQ(720, best.height);
340 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval);
346 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
347 EXPECT_EQ(640, best.width);
348 EXPECT_EQ(480, best.height);
349 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
368 cricket::VideoFormat best;
370 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
371 EXPECT_EQ(320, best.width);
372 EXPECT_EQ(240, best.height);
383 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
384 EXPECT_EQ(320, best.width);
385 EXPECT_EQ(240, best.height);
406 cricket::VideoFormat best;
408 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
409 EXPECT_EQ(required_formats[i].width, best.width);
410 EXPECT_EQ(required_formats[i].height, best.height);
424 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
425 EXPECT_EQ(320, best.width);
426 EXPECT_EQ(240, best.height);
443 cricket::VideoFormat best;
445 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
446 EXPECT_EQ(320, best.width);
447 EXPECT_EQ(240, best.height);
448 EXPECT_EQ(required_formats[i].interval, best.interval);
474 cricket::VideoFormat best;
477 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best));
478 EXPECT_EQ(640, best.width);
479 EXPECT_EQ(400, best.height);
480 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
483 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best));
484 EXPECT_EQ(640, best.width);
485 EXPECT_EQ(400, best.height);
486 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(20), best.interval);
489 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
490 EXPECT_EQ(640, best.width);
491 EXPECT_EQ(480, best.height);
492 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(10), best.interval);
494 // We have VGA 60 fps and 15 fps. Choose best fps.
508 // expect 30 fps to choose 60 fps format, but will set best fps to 30
509 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best));
510 EXPECT_EQ(640, best.width);
511 EXPECT_EQ(480, best.height);
512 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
514 // expect 20 fps to choose 60 fps format, but will set best fps to 20
515 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best));
516 EXPECT_EQ(640, best.width);
517 EXPECT_EQ(480, best.height);
518 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(20), best.interval);
521 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
522 EXPECT_EQ(640, best.width);
523 EXPECT_EQ(480, best.height);
524 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(10), best.interval);
539 cricket::VideoFormat best;
542 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
543 EXPECT_EQ(required_formats[i].width, best.width);
544 EXPECT_EQ(required_formats[i].height, best.height);
561 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
562 EXPECT_EQ(required_formats[i].width, best.width);
563 EXPECT_EQ(required_formats[i].height, best.height);
580 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
581 EXPECT_EQ(required_formats[i].width, best.width);
582 EXPECT_EQ(required_formats[i].height, best.height);
586 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
587 EXPECT_EQ(640, best.width);
588 EXPECT_EQ(360, best.height);