Lines Matching refs:pc_
130 pc_ = pc;
132 state_ = pc_->signaling_state();
138 EXPECT_EQ(pc_->signaling_state(), new_state);
143 if (pc_.get() == NULL)
151 EXPECT_EQ(pc_->signaling_state(), state_);
176 EXPECT_EQ(pc_->ice_connection_state(), new_state);
180 EXPECT_EQ(pc_->ice_gathering_state(), new_state);
184 pc_->ice_gathering_state());
200 pc_->ice_gathering_state());
216 scoped_refptr<PeerConnectionInterface> pc_;
273 pc_ = pc_factory_->CreatePeerConnection(servers, constraints,
277 ASSERT_TRUE(pc_.get() != NULL);
278 observer_.SetPeerConnectionInterface(pc_.get());
315 pc_ = NULL;
328 EXPECT_TRUE(pc_->AddStream(stream, NULL));
340 EXPECT_TRUE(pc_->AddStream(stream, NULL));
358 EXPECT_TRUE(pc_->AddStream(stream, NULL));
368 pc_->CreateOffer(observer, NULL);
370 pc_->CreateAnswer(observer, NULL);
390 pc_->SetLocalDescription(observer, desc);
392 pc_->SetRemoteDescription(observer, desc);
412 if (!pc_->GetStats(
430 pc_->remote_description()->description());
435 pc_->remote_description()->description());
488 EXPECT_TRUE(pc_->local_description()->ToString(&sdp));
553 EXPECT_TRUE(pc_->local_description()->ToString(&sdp));
560 scoped_refptr<PeerConnectionInterface> pc_;
573 ASSERT_EQ(2u, pc_->local_streams()->count());
582 EXPECT_TRUE(pc_->AddStream(stream, NULL));
583 EXPECT_EQ(3u, pc_->local_streams()->count());
586 pc_->RemoveStream(pc_->local_streams()->at(2));
587 EXPECT_EQ(2u, pc_->local_streams()->count());
590 pc_->RemoveStream(pc_->local_streams()->at(1));
591 EXPECT_EQ(1u, pc_->local_streams()->count());
594 pc_->RemoveStream(pc_->local_streams()->at(0));
595 EXPECT_EQ(0u, pc_->local_streams()->count());
601 ASSERT_EQ(1u, pc_->local_streams()->count());
602 pc_->RemoveStream(pc_->local_streams()->at(0));
603 EXPECT_EQ(0u, pc_->local_streams()->count());
617 EXPECT_TRUE(pc_->local_description()->ToString(&offer));
645 ASSERT_EQ(1u, pc_->remote_streams()->count());
646 pc_->RemoveStream(pc_->local_streams()->at(0));
648 EXPECT_EQ(0u, pc_->remote_streams()->count());
661 ASSERT_EQ(1u, pc_->remote_streams()->count());
662 pc_->RemoveStream(pc_->local_streams()->at(0));
664 EXPECT_EQ(0u, pc_->remote_streams()->count());
671 EXPECT_FALSE(pc_->AddIceCandidate(observer_.last_candidate_.get()));
686 EXPECT_TRUE(pc_->AddIceCandidate(observer_.last_candidate_.get()));
745 ASSERT_LT(0u, pc_->remote_streams()->count());
746 ASSERT_LT(0u, pc_->remote_streams()->at(0)->GetAudioTracks().size());
748 pc_->remote_streams()->at(0)->GetAudioTracks()[0];
753 pc_->RemoveStream(pc_->local_streams()->at(0));
757 ASSERT_EQ(0u, pc_->remote_streams()->count());
767 ASSERT_LT(0u, pc_->remote_streams()->count());
768 ASSERT_LT(0u, pc_->remote_streams()->at(0)->GetVideoTracks().size());
770 pc_->remote_streams()->at(0)->GetVideoTracks()[0];
791 pc_->CreateDataChannel("test1", NULL);
793 pc_->CreateDataChannel("test2", NULL);
838 pc_->CreateDataChannel("test1", NULL);
840 pc_->CreateDataChannel("test2", NULL);
868 pc_->CreateDataChannel("test1", NULL);
892 pc_->CreateDataChannel(offer_label, NULL);
899 EXPECT_TRUE(pc_->local_description()->ToString(&sdp));
935 pc_->CreateDataChannel(label, &config);
949 pc_->CreateDataChannel("1", &config);
956 channel = pc_->CreateDataChannel("2", &config);
963 channel = pc_->CreateDataChannel("3", &config);
970 channel = pc_->CreateDataChannel("4", &config);
990 pc_->CreateDataChannel(label, &config);
1006 channel = pc_->CreateDataChannel("1", &config);
1010 channel = pc_->CreateDataChannel("x", &config);
1014 channel = pc_->CreateDataChannel("max", &config);
1019 channel = pc_->CreateDataChannel("x", &config);
1031 pc_->CreateDataChannel("test1", NULL);
1036 pc_->CreateDataChannel("test2", NULL);
1047 pc_->CreateDataChannel("test1", NULL);
1049 pc_->CreateDataChannel("test2", NULL);
1072 pc_->CreateDataChannel("offer_channel", NULL));
1078 EXPECT_TRUE(pc_->local_description()->ToString(&sdp));
1105 ASSERT_TRUE(pc_->local_description() != NULL);
1106 ASSERT_TRUE(pc_->remote_description() != NULL);
1109 cricket::GetFirstAudioContent(pc_->local_description()->description());
1114 cricket::GetFirstVideoContent(pc_->local_description()->description());
1119 cricket::GetFirstDataContent(pc_->local_description()->description());
1151 ASSERT_EQ(1u, pc_->local_streams()->count());
1152 ASSERT_EQ(1u, pc_->remote_streams()->count());
1154 pc_->Close();
1156 EXPECT_EQ(PeerConnectionInterface::kClosed, pc_->signaling_state());
1158 pc_->ice_connection_state());
1160 pc_->ice_gathering_state());
1162 EXPECT_EQ(1u, pc_->local_streams()->count());
1163 EXPECT_EQ(1u, pc_->remote_streams()->count());
1166 pc_->remote_streams()->at(0);
1181 ASSERT_EQ(1u, pc_->local_streams()->count());
1183 pc_->local_streams()->at(0);
1185 pc_->Close();
1187 pc_->RemoveStream(local_stream);
1188 EXPECT_FALSE(pc_->AddStream(local_stream, NULL));
1192 pc_->CreateDtmfSender(local_stream->GetAudioTracks()[0]));
1195 EXPECT_TRUE(pc_->CreateDataChannel("test", NULL) == NULL);
1197 EXPECT_TRUE(pc_->local_description() != NULL);
1198 EXPECT_TRUE(pc_->remote_description() != NULL);
1206 ASSERT_TRUE(pc_->remote_description()->ToString(&sdp));
1212 ASSERT_TRUE(pc_->local_description()->ToString(&sdp));
1222 pc_->Close();