Home | History | Annotate | Download | only in webrtc

Lines Matching refs:channel_

108         channel_(NULL), soundclip_(NULL) {
115 channel_ = engine_.CreateChannel();
116 result = (channel_ != NULL);
119 result = channel_->AddSendStream(
131 EXPECT_TRUE(channel_->RemoveSendStream(default_send_ssrc));
138 channel_->OnPacketReceived(&packet);
142 delete channel_;
150 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
151 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
152 EXPECT_FALSE(channel_->CanInsertDtmf());
153 EXPECT_FALSE(channel_->InsertDtmf(ssrc, 1, 111, cricket::DF_SEND));
155 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
156 EXPECT_TRUE(channel_->CanInsertDtmf());
158 EXPECT_FALSE(channel_->InsertDtmf(-1, 1, 111, cricket::DF_SEND));
162 EXPECT_TRUE(channel_->InsertDtmf(ssrc, 2, 123, cricket::DF_SEND));
167 EXPECT_TRUE(channel_->InsertDtmf(ssrc, 3, 134, cricket::DF_PLAY));
173 EXPECT_TRUE(channel_->InsertDtmf(ssrc, 4, 145,
194 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
200 bool result = channel_->SetSendBandwidth(auto_bitrate, desired_bitrate);
233 EXPECT_TRUE(channel_->SetSendRtpHeaderExtensions(extensions));
239 EXPECT_TRUE(channel_->SetSendRtpHeaderExtensions(extensions));
247 EXPECT_TRUE(channel_->SetSendRtpHeaderExtensions(extensions));
255 EXPECT_TRUE(channel_->SetSendRtpHeaderExtensions(extensions));
265 cricket::VoiceMediaChannel* channel_;
287 channel_ = engine_.CreateChannel();
288 EXPECT_TRUE(channel_ != NULL);
295 channel_ = engine_.CreateChannel();
296 EXPECT_TRUE(channel_ == NULL);
361 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
383 EXPECT_FALSE(channel_->SetRecvCodecs(codecs));
393 EXPECT_FALSE(channel_->SetRecvCodecs(codecs));
399 EXPECT_TRUE(channel_->SetOptions(options_conference_));
404 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
405 EXPECT_TRUE(channel_->AddRecvStream(
422 EXPECT_TRUE(channel_->SetOptions(options_conference_));
428 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
429 EXPECT_TRUE(channel_->AddRecvStream(
446 EXPECT_TRUE(channel_->SetOptions(options_conference_));
452 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
453 EXPECT_TRUE(channel_->AddRecvStream(
469 EXPECT_TRUE(channel_->SetOptions(options_conference_));
476 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
477 EXPECT_TRUE(channel_->AddRecvStream(
498 EXPECT_TRUE(channel_->SetOptions(options_conference_));
503 EXPECT_TRUE(channel_->AddRecvStream(
505 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
524 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
525 EXPECT_TRUE(channel_->SetPlayout(true));
526 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
530 EXPECT_FALSE(channel_->SetRecvCodecs(codecs));
541 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
542 EXPECT_TRUE(channel_->SetPlayout(true));
545 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
554 EXPECT_TRUE(channel_->SetSendCodecs(engine_.codecs()));
574 EXPECT_TRUE(channel_->SetSendCodecs(engine_.codecs()));
594 EXPECT_TRUE(channel_->SetSendCodecs(engine_.codecs()));
602 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
605 EXPECT_TRUE(channel_->SetSendBandwidth(false, 128000));
608 EXPECT_FALSE(channel_->SetSendBandwidth(false, 128));
623 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
646 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
660 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
675 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
689 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
704 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
719 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
733 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
750 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
771 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
778 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
794 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
815 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
822 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
837 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
856 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
872 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
889 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
910 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
916 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
921 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
935 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
942 EXPECT_TRUE(channel_->SetOptions(options_conference_));
944 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
952 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
965 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
970 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
977 EXPECT_TRUE(channel_->SetOptions(options_conference_));
979 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
985 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
991 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
999 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1006 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1009 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1012 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(3)));
1028 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1037 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1051 EXPECT_TRUE(channel_->SetSendCodecs(celt_codecs));
1061 EXPECT_TRUE(channel_->SetSendCodecs(isac_codecs));
1066 EXPECT_TRUE(channel_->SetSendCodecs(celt_codecs));
1078 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1086 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1093 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1100 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1107 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1115 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1127 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1154 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1176 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1184 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1190 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1197 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1218 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1241 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1260 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1280 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1299 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1318 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1337 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1356 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1373 EXPECT_TRUE(channel_->SetRecvRtpHeaderExtensions(extensions));
1381 EXPECT_TRUE(channel_->SetRecvRtpHeaderExtensions(extensions));
1401 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1402 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
1404 EXPECT_TRUE(channel_->SetPlayout(true));
1406 EXPECT_TRUE(channel_->SetSend(cricket::SEND_NOTHING));
1408 EXPECT_TRUE(channel_->SetPlayout(false));
1419 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
1422 EXPECT_TRUE(channel_->AddSendStream(
1432 EXPECT_TRUE(channel_->RemoveSendStream(kSsrcs4[0]));
1434 EXPECT_FALSE(channel_->RemoveSendStream(kSsrcs4[0]));
1440 EXPECT_TRUE(channel_->RemoveSendStream(kSsrcs4[i]));
1442 EXPECT_FALSE(channel_->RemoveSendStream(kSsrcs4[i]));
1454 EXPECT_TRUE(channel_->AddSendStream(
1463 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1477 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1493 EXPECT_TRUE(channel_->AddSendStream(
1500 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
1508 EXPECT_TRUE(channel_->SetSend(cricket::SEND_NOTHING));
1523 EXPECT_TRUE(channel_->AddSendStream(
1530 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1533 EXPECT_EQ(true, channel_->GetStats(&info));
1561 EXPECT_TRUE(channel_->AddSendStream(
1579 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1580 EXPECT_TRUE(channel_->SetPlayout(true));
1584 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1588 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1589 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
1598 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(3)));
1606 EXPECT_TRUE(channel_->SetSend(cricket::SEND_NOTHING));
1612 EXPECT_TRUE(channel_->SetPlayout(false));
1618 EXPECT_TRUE(channel_->SetPlayout(true));
1625 EXPECT_TRUE(channel_->RemoveRecvStream(3));
1626 EXPECT_TRUE(channel_->RemoveRecvStream(2));
1637 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1649 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
1650 EXPECT_TRUE(channel_->SetPlayout(true));
1691 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1707 EXPECT_FALSE(channel_->SetSend(cricket::SEND_MICROPHONE));
1708 EXPECT_FALSE(channel_->SetPlayout(true));
1729 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1732 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1733 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
1745 EXPECT_TRUE(channel_->SetOptions(options_adjust_agc_));
1748 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1749 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
1753 EXPECT_TRUE(channel_->SetPlayout(true));
1755 EXPECT_TRUE(channel_->SetSend(cricket::SEND_NOTHING));
1759 EXPECT_TRUE(channel_->SetPlayout(false));
1780 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
1783 EXPECT_EQ(true, channel_->GetStats(&info));
1811 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1817 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1827 channel_ = engine_.CreateChannel();
1828 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1830 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1)));
1832 EXPECT_TRUE(channel_->AddSendStream(
1856 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1857 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1)));
1859 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1861 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(3)));
1891 EXPECT_TRUE(channel_->RemoveRecvStream(3));
1892 EXPECT_TRUE(channel_->RemoveRecvStream(2));
1893 EXPECT_TRUE(channel_->RemoveRecvStream(1));
1900 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1901 EXPECT_FALSE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1906 EXPECT_TRUE(channel_->SetOptions(options_no_conference_));
1907 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1914 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1)));
1922 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1926 EXPECT_TRUE(channel_->SetRecvCodecs(codecs));
1927 EXPECT_TRUE(channel_->AddRecvStream(
1941 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1942 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1)));
1943 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1945 delete channel_;
1946 channel_ = NULL;
1970 EXPECT_FALSE(channel_->PlayRingbackTone(0, true, true));
1973 EXPECT_TRUE(channel_->SetRingbackTone(kRingbackTone, strlen(kRingbackTone)));
1974 EXPECT_TRUE(channel_->PlayRingbackTone(0, true, true));
1977 EXPECT_TRUE(channel_->PlayRingbackTone(0, false, false));
1980 EXPECT_TRUE(channel_->PlayRingbackTone(0, true, true));
1989 EXPECT_TRUE(channel_->SetOptions(options_conference_));
1990 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1)));
1991 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1995 EXPECT_FALSE(channel_->PlayRingbackTone(2, true, true));
1998 EXPECT_TRUE(channel_->SetRingbackTone(kRingbackTone, strlen(kRingbackTone)));
1999 EXPECT_FALSE(channel_->PlayRingbackTone(77, true, true));
2000 EXPECT_TRUE(channel_->PlayRingbackTone(2, true, true));
2003 EXPECT_TRUE(channel_->PlayRingbackTone(2, false, false));
2006 EXPECT_TRUE(channel_->PlayRingbackTone(2, true, true));
2048 EXPECT_TRUE(channel_->SetOptions(options_conference_));
2049 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
2051 media_channel = static_cast<cricket::WebRtcVoiceMediaChannel*>(channel_);
2052 listener.reset(new ChannelErrorListener(channel_));
2070 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(
2088 EXPECT_TRUE(channel_->SetOptions(options_conference_));
2091 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
2092 EXPECT_TRUE(channel_->SetSend(cricket::SEND_MICROPHONE));
2093 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
2094 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(3)));
2095 EXPECT_TRUE(channel_->SetPlayout(true));
2097 EXPECT_TRUE(channel_->SetPlayout(false));
2098 EXPECT_FALSE(channel_->SetPlayout(true));
2105 EXPECT_TRUE(channel_->SetOptions(options_conference_));
2106 EXPECT_TRUE(channel_->AddRecvStream(
2149 EXPECT_TRUE(channel_->RemoveRecvStream(kSsrc2));
2169 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1)));
2179 EXPECT_TRUE(channel_->RemoveRecvStream(1));
2597 static_cast<cricket::WebRtcVoiceMediaChannel*>(channel_);
2603 EXPECT_TRUE(channel_->AddRecvStream(stream));
2612 EXPECT_TRUE(channel_->SetOptions(options_conference_));
2615 EXPECT_TRUE(channel_->AddRecvStream(stream));
2617 static_cast<cricket::WebRtcVoiceMediaChannel*>(channel_);
2625 EXPECT_TRUE(channel_->SetOutputScaling(0, 1, 2));
2626 EXPECT_TRUE(channel_->GetOutputScaling(0, &left, &right));
2630 EXPECT_FALSE(channel_->SetOutputScaling(kSsrc2, 1, 2));
2633 EXPECT_TRUE(channel_->AddRecvStream(stream));
2635 EXPECT_TRUE(channel_->SetOutputScaling(kSsrc2, 2, 1));
2636 EXPECT_TRUE(channel_->GetOutputScaling(kSsrc2, &left, &right));