Refactoring on QUIC related classes.
Merge with the latest webrtc native code. Remove deprecated function Connect() in QuicTransportChannel. Fix the compiling issue and broken unit tests by adding the network thread to QUIC related classes. Review-Url: https://codereview.webrtc.org/2089553002 Cr-Commit-Position: refs/heads/master@{#13472}
This commit is contained in:
@ -64,7 +64,9 @@ class FakeObserver : public DataChannelObserver {
|
||||
class QuicDataTransportPeer {
|
||||
public:
|
||||
QuicDataTransportPeer()
|
||||
: quic_data_transport_(rtc::Thread::Current(), rtc::Thread::Current()),
|
||||
: quic_data_transport_(rtc::Thread::Current(),
|
||||
rtc::Thread::Current(),
|
||||
rtc::Thread::Current()),
|
||||
ice_transport_channel_(new FakeTransportChannel("data", 0)),
|
||||
quic_transport_channel_(ice_transport_channel_) {
|
||||
ice_transport_channel_->SetAsync(true);
|
||||
@ -80,8 +82,6 @@ class QuicDataTransportPeer {
|
||||
|
||||
// Connects |ice_transport_channel_| to that of the other peer.
|
||||
void Connect(QuicDataTransportPeer* other_peer) {
|
||||
ice_transport_channel_->Connect();
|
||||
other_peer->ice_transport_channel_->Connect();
|
||||
ice_transport_channel_->SetDestination(other_peer->ice_transport_channel_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user