• Home
  • Raw
  • Download

Lines Matching refs:gcodec

486   webrtc::CodecInst gcodec;  in TEST_F()  local
487 rtc::strcpyn(gcodec.plname, arraysize(gcodec.plname), "ISAC"); in TEST_F()
488 gcodec.plfreq = 16000; in TEST_F()
489 gcodec.channels = 1; in TEST_F()
490 EXPECT_EQ(0, voe_.GetRecPayloadType(channel_num, gcodec)); in TEST_F()
491 EXPECT_EQ(106, gcodec.pltype); in TEST_F()
492 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
493 rtc::strcpyn(gcodec.plname, arraysize(gcodec.plname), "telephone-event"); in TEST_F()
494 gcodec.plfreq = 8000; in TEST_F()
495 EXPECT_EQ(0, voe_.GetRecPayloadType(channel_num, gcodec)); in TEST_F()
496 EXPECT_EQ(126, gcodec.pltype); in TEST_F()
497 EXPECT_STREQ("telephone-event", gcodec.plname); in TEST_F()
599 webrtc::CodecInst gcodec; in TEST_F() local
600 rtc::strcpyn(gcodec.plname, arraysize(gcodec.plname), "ISAC"); in TEST_F()
601 gcodec.plfreq = 16000; in TEST_F()
602 gcodec.channels = 1; in TEST_F()
603 EXPECT_EQ(0, voe_.GetRecPayloadType(channel_num2, gcodec)); in TEST_F()
604 EXPECT_EQ(106, gcodec.pltype); in TEST_F()
605 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
606 rtc::strcpyn(gcodec.plname, arraysize(gcodec.plname), "telephone-event"); in TEST_F()
607 gcodec.plfreq = 8000; in TEST_F()
608 gcodec.channels = 1; in TEST_F()
609 EXPECT_EQ(0, voe_.GetRecPayloadType(channel_num2, gcodec)); in TEST_F()
610 EXPECT_EQ(126, gcodec.pltype); in TEST_F()
611 EXPECT_STREQ("telephone-event", gcodec.plname); in TEST_F()
622 webrtc::CodecInst gcodec; in TEST_F() local
623 rtc::strcpyn(gcodec.plname, arraysize(gcodec.plname), "ISAC"); in TEST_F()
624 gcodec.plfreq = 16000; in TEST_F()
625 gcodec.channels = 1; in TEST_F()
626 EXPECT_EQ(0, voe_.GetRecPayloadType(channel_num2, gcodec)); in TEST_F()
627 EXPECT_EQ(106, gcodec.pltype); in TEST_F()
628 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
661 webrtc::CodecInst gcodec; in TEST_F() local
662 EXPECT_TRUE(cricket::WebRtcVoiceEngine::ToCodecInst(kOpusCodec, &gcodec)); in TEST_F()
663 EXPECT_EQ(kOpusCodec.id, gcodec.pltype); in TEST_F()
766 webrtc::CodecInst gcodec; in TEST_F() local
767 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
768 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
769 EXPECT_EQ(48000, gcodec.rate); in TEST_F()
770 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
803 webrtc::CodecInst gcodec; in TEST_F() local
804 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
805 EXPECT_STREQ("G722", gcodec.plname); in TEST_F()
806 EXPECT_EQ(1, gcodec.channels); in TEST_F()
807 EXPECT_EQ(16000, gcodec.plfreq); in TEST_F()
882 webrtc::CodecInst gcodec; in TEST_F() local
883 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
884 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
885 EXPECT_EQ(1, gcodec.channels); in TEST_F()
886 EXPECT_EQ(32000, gcodec.rate); in TEST_F()
899 webrtc::CodecInst gcodec; in TEST_F() local
900 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
901 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
902 EXPECT_EQ(1, gcodec.channels); in TEST_F()
903 EXPECT_EQ(32000, gcodec.rate); in TEST_F()
914 webrtc::CodecInst gcodec; in TEST_F() local
919 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
920 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
921 EXPECT_EQ(1, gcodec.channels); in TEST_F()
922 EXPECT_EQ(6000, gcodec.rate); in TEST_F()
926 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
927 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
928 EXPECT_EQ(1, gcodec.channels); in TEST_F()
929 EXPECT_EQ(510000, gcodec.rate); in TEST_F()
942 webrtc::CodecInst gcodec; in TEST_F() local
943 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
944 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
945 EXPECT_EQ(2, gcodec.channels); in TEST_F()
946 EXPECT_EQ(64000, gcodec.rate); in TEST_F()
957 webrtc::CodecInst gcodec; in TEST_F() local
962 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
963 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
964 EXPECT_EQ(2, gcodec.channels); in TEST_F()
965 EXPECT_EQ(6000, gcodec.rate); in TEST_F()
969 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
970 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
971 EXPECT_EQ(2, gcodec.channels); in TEST_F()
972 EXPECT_EQ(510000, gcodec.rate); in TEST_F()
984 webrtc::CodecInst gcodec; in TEST_F() local
985 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
986 EXPECT_EQ(111, gcodec.pltype); in TEST_F()
987 EXPECT_EQ(96000, gcodec.rate); in TEST_F()
988 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
989 EXPECT_EQ(1, gcodec.channels); in TEST_F()
990 EXPECT_EQ(48000, gcodec.plfreq); in TEST_F()
1003 webrtc::CodecInst gcodec; in TEST_F() local
1004 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1005 EXPECT_EQ(1, gcodec.channels); in TEST_F()
1006 EXPECT_EQ(30000, gcodec.rate); in TEST_F()
1007 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1019 webrtc::CodecInst gcodec; in TEST_F() local
1020 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1021 EXPECT_EQ(1, gcodec.channels); in TEST_F()
1022 EXPECT_EQ(30000, gcodec.rate); in TEST_F()
1023 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1036 webrtc::CodecInst gcodec; in TEST_F() local
1037 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1038 EXPECT_EQ(2, gcodec.channels); in TEST_F()
1039 EXPECT_EQ(30000, gcodec.rate); in TEST_F()
1040 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1052 webrtc::CodecInst gcodec; in TEST_F() local
1057 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1058 EXPECT_EQ(6000, gcodec.rate); in TEST_F()
1063 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1064 EXPECT_EQ(510000, gcodec.rate); in TEST_F()
1068 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1069 EXPECT_EQ(200000, gcodec.rate); in TEST_F()
1203 webrtc::CodecInst gcodec; in TEST_F() local
1204 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1205 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1206 EXPECT_EQ(1, gcodec.channels); in TEST_F()
1207 EXPECT_EQ(32000, gcodec.rate); in TEST_F()
1220 webrtc::CodecInst gcodec; in TEST_F() local
1221 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1222 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1223 EXPECT_EQ(1, gcodec.channels); in TEST_F()
1224 EXPECT_EQ(32000, gcodec.rate); in TEST_F()
1238 webrtc::CodecInst gcodec; in TEST_F() local
1239 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1240 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1241 EXPECT_EQ(2, gcodec.channels); in TEST_F()
1242 EXPECT_EQ(64000, gcodec.rate); in TEST_F()
1290 webrtc::CodecInst gcodec; in TEST_F() local
1291 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1292 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1294 EXPECT_EQ(12000, gcodec.rate); in TEST_F()
1297 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1298 EXPECT_EQ(24000, gcodec.rate); in TEST_F()
1312 webrtc::CodecInst gcodec; in TEST_F() local
1313 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1314 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1316 EXPECT_EQ(20000, gcodec.rate); in TEST_F()
1319 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1320 EXPECT_EQ(40000, gcodec.rate); in TEST_F()
1334 webrtc::CodecInst gcodec; in TEST_F() local
1335 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1336 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1338 EXPECT_EQ(20000, gcodec.rate); in TEST_F()
1341 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1342 EXPECT_EQ(40000, gcodec.rate); in TEST_F()
1356 webrtc::CodecInst gcodec; in TEST_F() local
1357 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1358 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1360 EXPECT_EQ(32000, gcodec.rate); in TEST_F()
1363 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1364 EXPECT_EQ(64000, gcodec.rate); in TEST_F()
1378 webrtc::CodecInst gcodec; in TEST_F() local
1379 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1380 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1382 EXPECT_EQ(32000, gcodec.rate); in TEST_F()
1385 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1386 EXPECT_EQ(64000, gcodec.rate); in TEST_F()
1488 webrtc::CodecInst gcodec; in TEST_F() local
1489 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1490 EXPECT_EQ(111, gcodec.pltype); in TEST_F()
1491 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1498 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1499 EXPECT_EQ(103, gcodec.pltype); in TEST_F()
1500 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1503 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1504 EXPECT_EQ(111, gcodec.pltype); in TEST_F()
1505 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1515 webrtc::CodecInst gcodec; in TEST_F() local
1516 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1517 EXPECT_EQ(103, gcodec.pltype); in TEST_F()
1518 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1519 EXPECT_EQ(32000, gcodec.rate); in TEST_F()
1523 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1524 EXPECT_EQ(103, gcodec.pltype); in TEST_F()
1525 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1526 EXPECT_EQ(-1, gcodec.rate); in TEST_F()
1530 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1531 EXPECT_EQ(103, gcodec.pltype); in TEST_F()
1532 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1533 EXPECT_EQ(28000, gcodec.rate); in TEST_F()
1537 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1538 EXPECT_EQ(0, gcodec.pltype); in TEST_F()
1539 EXPECT_STREQ("PCMU", gcodec.plname); in TEST_F()
1540 EXPECT_EQ(64000, gcodec.rate); in TEST_F()
1544 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1545 EXPECT_EQ(0, gcodec.pltype); in TEST_F()
1546 EXPECT_STREQ("PCMU", gcodec.plname); in TEST_F()
1547 EXPECT_EQ(64000, gcodec.rate); in TEST_F()
1552 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1553 EXPECT_EQ(111, gcodec.pltype); in TEST_F()
1554 EXPECT_STREQ("opus", gcodec.plname); in TEST_F()
1555 EXPECT_EQ(32000, gcodec.rate); in TEST_F()
1566 webrtc::CodecInst gcodec; in TEST_F() local
1567 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1568 EXPECT_EQ(1920, gcodec.pacsize); // Opus gets 40ms. in TEST_F()
1572 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1573 EXPECT_EQ(480, gcodec.pacsize); // Opus gets 10ms. in TEST_F()
1577 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1578 EXPECT_EQ(2880, gcodec.pacsize); // Opus gets 60ms. in TEST_F()
1583 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1584 EXPECT_EQ(480, gcodec.pacsize); // Isac gets 30ms as the next smallest value. in TEST_F()
1589 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1590 EXPECT_EQ(640, gcodec.pacsize); // G722 gets 40ms @16kHz as defined in VoE. in TEST_F()
1612 webrtc::CodecInst gcodec; in TEST_F() local
1613 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1614 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1615 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1631 webrtc::CodecInst gcodec; in TEST_F() local
1632 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1633 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1634 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1654 webrtc::CodecInst gcodec; in TEST_F() local
1655 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1656 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1657 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1687 webrtc::CodecInst gcodec; in TEST_F() local
1688 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1689 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1690 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1709 webrtc::CodecInst gcodec; in TEST_F() local
1710 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1711 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1717 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1718 EXPECT_STREQ("PCMU", gcodec.plname); in TEST_F()
1723 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1724 EXPECT_STREQ("PCMU", gcodec.plname); in TEST_F()
1730 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1731 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1751 webrtc::CodecInst gcodec; in TEST_F() local
1752 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1753 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1754 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1774 webrtc::CodecInst gcodec; in TEST_F() local
1775 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1776 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1777 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1799 webrtc::CodecInst gcodec; in TEST_F() local
1800 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1801 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1802 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1818 webrtc::CodecInst gcodec; in TEST_F() local
1819 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1820 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1821 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1838 webrtc::CodecInst gcodec; in TEST_F() local
1839 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1840 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1841 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1857 webrtc::CodecInst gcodec; in TEST_F() local
1858 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1859 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1860 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1876 webrtc::CodecInst gcodec; in TEST_F() local
1877 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1878 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1879 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1895 webrtc::CodecInst gcodec; in TEST_F() local
1896 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1897 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1898 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
1914 webrtc::CodecInst gcodec; in TEST_F() local
1915 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
1916 EXPECT_EQ(96, gcodec.pltype); in TEST_F()
1917 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
2001 webrtc::CodecInst gcodec; in TEST_F() local
2004 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
2005 EXPECT_STREQ("ISAC", gcodec.plname); in TEST_F()
2015 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); in TEST_F()
2016 EXPECT_STREQ("PCMU", gcodec.plname); in TEST_F()
2450 webrtc::CodecInst gcodec; in TEST_F() local
2451 rtc::strcpyn(gcodec.plname, arraysize(gcodec.plname), "opus"); in TEST_F()
2452 gcodec.plfreq = 48000; in TEST_F()
2453 gcodec.channels = 2; in TEST_F()
2454 EXPECT_EQ(-1, voe_.GetRecPayloadType(channel_num2, gcodec)); in TEST_F()