Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1911)

Unified Diff: webrtc/api/quicdatachannel_unittest.cc

Issue 2146133002: Revert of Modify PeerConnection for end-to-end QuicDataChannel usage (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/quicdatachannel.cc ('k') | webrtc/api/quicdatatransport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
}
« no previous file with comments | « webrtc/api/quicdatachannel.cc ('k') | webrtc/api/quicdatatransport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698