PeerConnection::RemoveStream now removes the local stream even when it's closed. Updated the unit test accordingly.
RISK=P3 TESTED=PeerConnectionInterfaceTest.CloseAndTestMethods TBR=fischman_webrtc Review URL: https://webrtc-codereview.appspot.com/2018005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4535 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
32001ef124
commit
6603736038
@ -1193,7 +1193,7 @@ TEST_F(PeerConnectionInterfaceTest, CloseAndTestMethods) {
|
||||
ASSERT_FALSE(local_stream->GetAudioTracks().empty());
|
||||
talk_base::scoped_refptr<webrtc::DtmfSenderInterface> dtmf_sender(
|
||||
pc_->CreateDtmfSender(local_stream->GetAudioTracks()[0]));
|
||||
EXPECT_FALSE(dtmf_sender->CanInsertDtmf());
|
||||
EXPECT_TRUE(NULL == dtmf_sender); // local stream has been removed.
|
||||
|
||||
EXPECT_TRUE(pc_->CreateDataChannel("test", NULL) == NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user