Index: webrtc/api/quicdatachannel_unittest.cc |
diff --git a/webrtc/api/quicdatachannel_unittest.cc b/webrtc/api/quicdatachannel_unittest.cc |
index 7245ccfa2177b54eb381c9da2b61dc6399602253..e701c29b4f31146a9436ac56096027e7b4eb0cba 100644 |
--- a/webrtc/api/quicdatachannel_unittest.cc |
+++ b/webrtc/api/quicdatachannel_unittest.cc |
@@ -120,9 +120,8 @@ |
DataChannelInit config; |
config.id = id; |
config.protocol = protocol; |
- rtc::scoped_refptr<QuicDataChannel> data_channel( |
- new QuicDataChannel(rtc::Thread::Current(), rtc::Thread::Current(), |
- rtc::Thread::Current(), label, config)); |
+ rtc::scoped_refptr<QuicDataChannel> data_channel(new QuicDataChannel( |
+ rtc::Thread::Current(), rtc::Thread::Current(), label, config)); |
data_channel_by_id_[id] = data_channel; |
return data_channel; |
} |
@@ -202,6 +201,8 @@ |
// Connects |ice_transport_channel_| to that of the other peer. |
void Connect(QuicDataChannelPeer* other_peer) { |
+ ice_transport_channel_->Connect(); |
+ other_peer->ice_transport_channel_->Connect(); |
ice_transport_channel_->SetDestination(other_peer->ice_transport_channel_); |
} |