Lines Matching defs:channel_

874   EXPECT_TRUE(channel_->SetCapturer(kSsrc, NULL));
875 EXPECT_TRUE(channel_->SetRenderer(kDefaultReceiveSsrc, &renderer_));
876 channel_->UpdateAspectRatio(1280, 720);
882 EXPECT_TRUE(channel_->SetCapturer(kSsrc, video_capturer_.get()));
903 channel_.reset(
908 ASSERT_TRUE(channel_->SetSendParameters(send_parameters_));
918 EXPECT_TRUE(channel_->AddSendStream(sp));
935 EXPECT_TRUE(channel_->AddRecvStream(sp));
954 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
971 EXPECT_TRUE(channel_->SetSendParameters(parameters));
980 EXPECT_TRUE(channel_->SetSendParameters(parameters));
988 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
995 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1009 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
1019 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
1028 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
1035 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
1053 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1074 channel_->SetSendParameters(params);
1099 rtc::scoped_ptr<VideoMediaChannel> channel_;
1111 EXPECT_TRUE(channel_->AddRecvStream(sp));
1122 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1123 EXPECT_TRUE(channel_->SetSend(true));
1125 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1253 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
1264 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
1270 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
1286 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
1297 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
1303 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
1317 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
1337 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
1353 EXPECT_FALSE(channel_->SetSendParameters(send_parameters_))
1363 EXPECT_FALSE(channel_->SetRecvParameters(recv_parameters_))
1374 EXPECT_FALSE(channel_->SetSendParameters(send_parameters_));
1381 EXPECT_FALSE(channel_->SetSendParameters(send_parameters_));
1390 EXPECT_FALSE(channel_->SetRecvParameters(recv_parameters_));
1397 EXPECT_FALSE(channel_->SetRecvParameters(recv_parameters_));
1413 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1)));
1440 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1447 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1461 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1468 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1478 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1479 EXPECT_TRUE(channel_->SetSend(true));
1507 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1516 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1562 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1568 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, &capturer));
1575 EXPECT_TRUE(channel_->SetSend(true));
1608 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL));
1616 channel_->SetSendParameters(send_parameters_);
1622 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, &capturer));
1627 EXPECT_TRUE(channel_->SetSend(true));
1644 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL));
1664 channel_->SetSendParameters(send_parameters_);
1671 channel_->SetSendParameters(send_parameters_);
1687 ASSERT_TRUE(channel_->SetSendParameters(parameters));
1698 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, &capturer));
1699 channel_->SetSend(true);
1722 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL));
1724 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, &capturer));
1725 channel_->SetSend(true);
1753 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL));
1772 // before channel_ and engine_.
1773 ASSERT_TRUE(channel_->SetSendParameters(send_parameters_));
1782 ASSERT_TRUE(channel_->SetSendParameters(parameters));
1790 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, &capturer));
1791 channel_->SetSend(true);
1829 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL));
1860 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1866 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, &capturer));
1870 EXPECT_TRUE(channel_->SetSend(true));
1900 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL));
1908 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
1912 EXPECT_TRUE(channel_->SetRenderer(last_ssrc_, &renderer));
1934 ASSERT_TRUE(channel_->GetStats(&info));
1940 ASSERT_TRUE(channel_->SetSendParameters(send_parameters_));
1943 EXPECT_TRUE(channel_->GetSendCodec(&codec));
1967 ASSERT_TRUE(channel_->SetSendParameters(parameters));
1981 EXPECT_FALSE(channel_->SetSendParameters(parameters))
1992 ASSERT_TRUE(channel_->SetSendParameters(parameters));
1998 EXPECT_FALSE(channel_->SetSendParameters(parameters))
2006 ASSERT_TRUE(channel_->SetSendParameters(parameters));
2014 ASSERT_TRUE(channel_->SetSendParameters(parameters));
2025 ASSERT_TRUE(channel_->SetSendParameters(parameters));
2026 channel_->SetSend(true);
2031 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, &capturer));
2042 ASSERT_TRUE(channel_->SetSendParameters(parameters));
2046 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL));
2074 EXPECT_FALSE(channel_->SetSendParameters(send_parameters_));
2082 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2092 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2096 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2104 ASSERT_TRUE(channel_->SetSendParameters(parameters));
2105 channel_->SetSend(true);
2114 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2123 ASSERT_TRUE(channel_->SetSendParameters(parameters));
2124 channel_->SetSend(true);
2131 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], &capturer));
2143 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2148 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], nullptr));
2156 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2161 EXPECT_TRUE(channel_->GetSendCodec(&codec));
2170 EXPECT_FALSE(channel_->SetSendParameters(parameters))
2175 EXPECT_FALSE(channel_->SetSendParameters(parameters))
2186 EXPECT_FALSE(channel_->SetSendParameters(parameters))
2196 EXPECT_TRUE(channel_->SetSendParameters(parameters))
2204 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
2213 EXPECT_FALSE(channel_->SetRecvParameters(parameters))
2217 EXPECT_FALSE(channel_->SetRecvParameters(parameters))
2221 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
2227 EXPECT_FALSE(channel_->SetRecvParameters(parameters)) <<
2236 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
2242 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
2254 EXPECT_FALSE(channel_->SetRecvParameters(parameters));
2263 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
2271 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
2279 ASSERT_TRUE(channel_->SetSendParameters(send_parameters));
2288 ASSERT_TRUE(channel_->SetRecvParameters(recv_parameters));
2301 EXPECT_FALSE(channel_->SetRecvParameters(parameters));
2309 EXPECT_FALSE(channel_->SetRecvParameters(parameters));
2318 EXPECT_TRUE(channel_->SetRecvParameters(parameters));
2328 EXPECT_TRUE(channel_->SetRecvParameters(parameters1));
2337 EXPECT_TRUE(channel_->SetRecvParameters(parameters2));
2354 EXPECT_TRUE(channel_->SetSend(true));
2357 EXPECT_TRUE(channel_->SetSend(true));
2360 EXPECT_TRUE(channel_->SetSend(false));
2363 EXPECT_TRUE(channel_->SetSend(false));
2366 EXPECT_TRUE(channel_->SetSend(true));
2376 channel_->SetInterface(network_interface.get());
2378 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2381 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2385 EXPECT_TRUE(channel_->SetSendParameters(parameters1));
2388 EXPECT_TRUE(channel_->SetSendParameters(parameters1));
2390 channel_->SetInterface(NULL);
2402 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2420 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
2432 channel_->OnReadyToSend(false);
2435 channel_->OnReadyToSend(true);
2442 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2447 ASSERT_TRUE(channel_->GetStats(&info));
2458 ASSERT_TRUE(channel_->GetStats(&info));
2471 ASSERT_TRUE(channel_->GetStats(&info));
2488 ASSERT_TRUE(channel_->GetStats(&info));
2503 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], &video_capturer_vga));
2509 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2510 EXPECT_TRUE(channel_->SetSend(true));
2514 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2526 EXPECT_TRUE(channel_->GetStats(&info));
2536 EXPECT_TRUE(channel_->GetStats(&info));
2543 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], NULL));
2545 EXPECT_TRUE(channel_->GetStats(&info));
2555 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], &video_capturer_hd));
2562 EXPECT_TRUE(channel_->GetStats(&info));
2568 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], NULL));
2580 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], &video_capturer_vga));
2586 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2587 EXPECT_TRUE(channel_->SetSend(true));
2591 EXPECT_TRUE(channel_->SetSendParameters(parameters));
2601 EXPECT_TRUE(channel_->GetStats(&info));
2611 EXPECT_TRUE(channel_->GetStats(&info));
2621 EXPECT_TRUE(channel_->GetStats(&info));
2630 EXPECT_TRUE(channel_->GetStats(&info));
2635 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], NULL));
2646 EXPECT_TRUE(channel_->GetStats(&info));
2667 ASSERT_TRUE(channel_->GetStats(&info));
2683 ASSERT_TRUE(channel_->GetStats(&info));
2706 ASSERT_TRUE(channel_->GetStats(&info));
2730 ASSERT_TRUE(channel_->GetStats(&info));
2750 ASSERT_TRUE(channel_->GetStats(&info));
2778 ASSERT_TRUE(channel_->GetStats(&info));
2795 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2807 channel_->OnPacketReceived(&packet, packet_time);
2815 EXPECT_TRUE(channel_->AddRecvStream(
2826 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2835 EXPECT_FALSE(channel_->AddSendStream(sp));
2836 EXPECT_FALSE(channel_->AddRecvStream(sp));
2840 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2848 EXPECT_TRUE(channel_->AddSendStream(sp));
2849 EXPECT_TRUE(channel_->AddRecvStream(sp));
2853 EXPECT_FALSE(channel_->AddSendStream(sp));
2854 EXPECT_FALSE(channel_->AddRecvStream(sp));
2858 EXPECT_TRUE(channel_->RemoveSendStream(ssrcs[0]));
2859 EXPECT_TRUE(channel_->RemoveRecvStream(ssrcs[0]));
2860 EXPECT_TRUE(channel_->AddSendStream(sp));
2861 EXPECT_TRUE(channel_->AddRecvStream(sp));
2868 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2873 EXPECT_TRUE(channel_->AddSendStream(sp));
2874 EXPECT_TRUE(channel_->AddRecvStream(sp));
2879 EXPECT_FALSE(channel_->AddSendStream(sp));
2880 EXPECT_FALSE(channel_->AddRecvStream(sp));
2884 EXPECT_TRUE(channel_->RemoveSendStream(kFirstStreamSsrcs[0]));
2885 EXPECT_TRUE(channel_->RemoveRecvStream(kFirstStreamSsrcs[0]));
2886 EXPECT_TRUE(channel_->AddSendStream(sp));
2887 EXPECT_TRUE(channel_->AddRecvStream(sp));
2891 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2899 EXPECT_TRUE(channel_->AddSendStream(sender_sp));
2906 EXPECT_TRUE(channel_->AddRecvStream(receiver_sp));
2909 ASSERT_TRUE(channel_->GetStats(&info));
2926 ASSERT_TRUE(channel_->GetStats(&info));
2932 ASSERT_TRUE(channel_->GetStats(&info));
2938 ASSERT_TRUE(channel_->GetStats(&info));
2949 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
2960 channel_->OnPacketReceived(&packet, packet_time);
2995 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
3022 ASSERT_TRUE(channel_->RemoveSendStream(kSenderSsrc));
3029 ASSERT_TRUE(channel_->RemoveSendStream(kSecondSenderSsrc));
3198 channel_.reset(engine_.CreateChannel(&fake_call_, VideoOptions()));
3208 ASSERT_TRUE(channel_->SetSendParameters(parameters));
3219 EXPECT_TRUE(channel_->SetCapturer(ssrcs.front(), &capturer));
3224 channel_->SetSend(true);
3272 ASSERT_TRUE(channel_->GetStats(&info));
3276 EXPECT_TRUE(channel_->SetCapturer(ssrcs.front(), NULL));
3286 EXPECT_TRUE(channel_->AddSendStream(sp));
3304 EXPECT_TRUE(channel_->AddRecvStream(sp));
3313 rtc::scoped_ptr<VideoMediaChannel> channel_;