Lines Matching full:best
343 cricket::VideoFormat best; in TEST_F() local
344 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
345 EXPECT_EQ(640, best.width); in TEST_F()
346 EXPECT_EQ(480, best.height); in TEST_F()
347 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
350 EXPECT_FALSE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
353 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
360 cricket::VideoFormat best; in TEST_F() local
362 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
363 EXPECT_EQ(1280, best.width); in TEST_F()
364 EXPECT_EQ(720, best.height); in TEST_F()
365 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
370 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
371 EXPECT_EQ(320, best.width); in TEST_F()
372 EXPECT_EQ(240, best.height); in TEST_F()
373 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
378 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
379 EXPECT_EQ(640, best.width); in TEST_F()
380 EXPECT_EQ(480, best.height); in TEST_F()
381 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
386 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
387 EXPECT_EQ(320, best.width); in TEST_F()
388 EXPECT_EQ(240, best.height); in TEST_F()
389 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
394 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
395 EXPECT_EQ(160, best.width); in TEST_F()
396 EXPECT_EQ(120, best.height); in TEST_F()
397 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
418 cricket::VideoFormat best; in TEST_F() local
420 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
421 EXPECT_EQ(960, best.width); in TEST_F()
422 EXPECT_EQ(544, best.height); in TEST_F()
423 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(24), best.interval); in TEST_F()
429 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
430 EXPECT_EQ(960, best.width); in TEST_F()
431 EXPECT_EQ(544, best.height); in TEST_F()
432 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(24), best.interval); in TEST_F()
438 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
439 EXPECT_EQ(320, best.width); in TEST_F()
440 EXPECT_EQ(240, best.height); in TEST_F()
441 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
446 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
447 EXPECT_EQ(640, best.width); in TEST_F()
448 EXPECT_EQ(480, best.height); in TEST_F()
449 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
454 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
455 EXPECT_EQ(320, best.width); in TEST_F()
456 EXPECT_EQ(240, best.height); in TEST_F()
457 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
462 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
463 EXPECT_EQ(320, best.width); in TEST_F()
464 EXPECT_EQ(240, best.height); in TEST_F()
465 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
470 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
471 EXPECT_EQ(640, best.width); in TEST_F()
472 EXPECT_EQ(480, best.height); in TEST_F()
473 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
479 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
480 EXPECT_EQ(1280, best.width); in TEST_F()
481 EXPECT_EQ(720, best.height); in TEST_F()
482 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval); in TEST_F()
488 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best)); in TEST_F()
489 EXPECT_EQ(640, best.width); in TEST_F()
490 EXPECT_EQ(480, best.height); in TEST_F()
491 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
510 cricket::VideoFormat best; in TEST_F() local
512 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best)); in TEST_F()
513 EXPECT_EQ(320, best.width); in TEST_F()
514 EXPECT_EQ(240, best.height); in TEST_F()
525 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best)); in TEST_F()
526 EXPECT_EQ(320, best.width); in TEST_F()
527 EXPECT_EQ(240, best.height); in TEST_F()
548 cricket::VideoFormat best; in TEST_F() local
550 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best)); in TEST_F()
551 EXPECT_EQ(required_formats[i].width, best.width); in TEST_F()
552 EXPECT_EQ(required_formats[i].height, best.height); in TEST_F()
566 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best)); in TEST_F()
567 EXPECT_EQ(320, best.width); in TEST_F()
568 EXPECT_EQ(240, best.height); in TEST_F()
585 cricket::VideoFormat best; in TEST_F() local
587 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best)); in TEST_F()
588 EXPECT_EQ(320, best.width); in TEST_F()
589 EXPECT_EQ(240, best.height); in TEST_F()
590 EXPECT_EQ(required_formats[i].interval, best.interval); in TEST_F()
616 cricket::VideoFormat best; in TEST_F() local
619 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best)); in TEST_F()
620 EXPECT_EQ(640, best.width); in TEST_F()
621 EXPECT_EQ(400, best.height); in TEST_F()
622 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
625 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best)); in TEST_F()
626 EXPECT_EQ(640, best.width); in TEST_F()
627 EXPECT_EQ(400, best.height); in TEST_F()
628 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval); in TEST_F()
631 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best)); in TEST_F()
632 EXPECT_EQ(640, best.width); in TEST_F()
633 EXPECT_EQ(480, best.height); in TEST_F()
634 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval); in TEST_F()
636 // We have VGA 60 fps and 15 fps. Choose best fps. in TEST_F()
650 // Expect 30 fps to choose 60 fps format and will set best fps to 60. in TEST_F()
651 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best)); in TEST_F()
652 EXPECT_EQ(640, best.width); in TEST_F()
653 EXPECT_EQ(480, best.height); in TEST_F()
654 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(60), best.interval); in TEST_F()
656 // Expect 20 fps to choose 60 fps format, and will set best fps to 60. in TEST_F()
657 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best)); in TEST_F()
658 EXPECT_EQ(640, best.width); in TEST_F()
659 EXPECT_EQ(480, best.height); in TEST_F()
660 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(60), best.interval); in TEST_F()
663 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best)); in TEST_F()
664 EXPECT_EQ(640, best.width); in TEST_F()
665 EXPECT_EQ(480, best.height); in TEST_F()
666 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval); in TEST_F()
681 cricket::VideoFormat best; in TEST_F() local
684 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best)); in TEST_F()
685 EXPECT_EQ(required_formats[i].width, best.width); in TEST_F()
686 EXPECT_EQ(required_formats[i].height, best.height); in TEST_F()
703 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best)); in TEST_F()
704 EXPECT_EQ(required_formats[i].width, best.width); in TEST_F()
705 EXPECT_EQ(required_formats[i].height, best.height); in TEST_F()
722 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best)); in TEST_F()
723 EXPECT_EQ(required_formats[i].width, best.width); in TEST_F()
724 EXPECT_EQ(required_formats[i].height, best.height); in TEST_F()
728 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best)); in TEST_F()
729 EXPECT_EQ(640, best.width); in TEST_F()
730 EXPECT_EQ(360, best.height); in TEST_F()