Chromium Code Reviews

Unified Diff: webrtc/pc/channelmanager_unittest.cc

Issue 2564333002: Reland of: Separating SCTP code from BaseChannel/MediaChannel. (Closed)
Patch Set: Another attempt. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« webrtc/media/sctp/sctptransportinternal.h ('K') | « webrtc/pc/channelmanager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/channelmanager_unittest.cc
diff --git a/webrtc/pc/channelmanager_unittest.cc b/webrtc/pc/channelmanager_unittest.cc
index df3e9e5ba36d23fba07569a41e264146a87b3617..30d2fe5879e1e93d05c73be30897d0201f410448 100644
--- a/webrtc/pc/channelmanager_unittest.cc
+++ b/webrtc/pc/channelmanager_unittest.cc
@@ -110,13 +110,13 @@ TEST_F(ChannelManagerTest, CreateDestroyChannels) {
&fake_mc_, transport_controller_, cricket::CN_VIDEO, nullptr,
kDefaultRtcpEnabled, kDefaultSrtpRequired, VideoOptions());
EXPECT_TRUE(video_channel != nullptr);
- cricket::DataChannel* data_channel = cm_->CreateDataChannel(
+ cricket::RtpDataChannel* rtp_data_channel = cm_->CreateRtpDataChannel(
&fake_mc_, transport_controller_, cricket::CN_DATA, nullptr,
- kDefaultRtcpEnabled, kDefaultSrtpRequired, cricket::DCT_RTP);
- EXPECT_TRUE(data_channel != nullptr);
+ kDefaultRtcpEnabled, kDefaultSrtpRequired);
+ EXPECT_TRUE(rtp_data_channel != nullptr);
cm_->DestroyVideoChannel(video_channel);
cm_->DestroyVoiceChannel(voice_channel);
- cm_->DestroyDataChannel(data_channel);
+ cm_->DestroyRtpDataChannel(rtp_data_channel);
cm_->Terminate();
}
@@ -138,13 +138,13 @@ TEST_F(ChannelManagerTest, CreateDestroyChannelsOnThread) {
&fake_mc_, transport_controller_, cricket::CN_VIDEO, nullptr,
kDefaultRtcpEnabled, kDefaultSrtpRequired, VideoOptions());
EXPECT_TRUE(video_channel != nullptr);
- cricket::DataChannel* data_channel = cm_->CreateDataChannel(
+ cricket::RtpDataChannel* rtp_data_channel = cm_->CreateRtpDataChannel(
&fake_mc_, transport_controller_, cricket::CN_DATA, nullptr,
- kDefaultRtcpEnabled, kDefaultSrtpRequired, cricket::DCT_RTP);
- EXPECT_TRUE(data_channel != nullptr);
+ kDefaultRtcpEnabled, kDefaultSrtpRequired);
+ EXPECT_TRUE(rtp_data_channel != nullptr);
cm_->DestroyVideoChannel(video_channel);
cm_->DestroyVoiceChannel(voice_channel);
- cm_->DestroyDataChannel(data_channel);
+ cm_->DestroyRtpDataChannel(rtp_data_channel);
cm_->Terminate();
}
« webrtc/media/sctp/sctptransportinternal.h ('K') | « webrtc/pc/channelmanager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine