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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel_unittest.cc

Issue 2517883002: Refactoring that removes P2PTransport and DtlsTransport classes. (Closed)
Patch Set: Adding stub transport.h file for backwards compat. Created 4 years 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 unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.cc ('k') | webrtc/p2p/base/port.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 4183 matching lines...) Expand 10 before | Expand all | Expand 10 after
4194 CreateBasicPortAllocator(&network_manager_, ServerAddresses(), 4194 CreateBasicPortAllocator(&network_manager_, ServerAddresses(),
4195 kTurnUdpIntAddr, rtc::SocketAddress())); 4195 kTurnUdpIntAddr, rtc::SocketAddress()));
4196 allocator_->set_flags(allocator_->flags() | PORTALLOCATOR_DISABLE_STUN | 4196 allocator_->set_flags(allocator_->flags() | PORTALLOCATOR_DISABLE_STUN |
4197 PORTALLOCATOR_DISABLE_TCP); 4197 PORTALLOCATOR_DISABLE_TCP);
4198 allocator_->set_step_delay(kMinimumStepDelay); 4198 allocator_->set_step_delay(kMinimumStepDelay);
4199 } 4199 }
4200 4200
4201 P2PTransportChannel& StartTransportChannel( 4201 P2PTransportChannel& StartTransportChannel(
4202 bool prioritize_most_likely_to_work, 4202 bool prioritize_most_likely_to_work,
4203 int stable_writable_connection_ping_interval) { 4203 int stable_writable_connection_ping_interval) {
4204 channel_.reset(new P2PTransportChannel("checks", 1, nullptr, allocator())); 4204 channel_.reset(new P2PTransportChannel("checks", 1, allocator()));
4205 IceConfig config = channel_->config(); 4205 IceConfig config = channel_->config();
4206 config.prioritize_most_likely_candidate_pairs = 4206 config.prioritize_most_likely_candidate_pairs =
4207 prioritize_most_likely_to_work; 4207 prioritize_most_likely_to_work;
4208 config.stable_writable_connection_ping_interval = 4208 config.stable_writable_connection_ping_interval =
4209 stable_writable_connection_ping_interval; 4209 stable_writable_connection_ping_interval;
4210 channel_->SetIceConfig(config); 4210 channel_->SetIceConfig(config);
4211 PrepareChannel(channel_.get()); 4211 PrepareChannel(channel_.get());
4212 channel_->MaybeStartGathering(); 4212 channel_->MaybeStartGathering();
4213 return *channel_.get(); 4213 return *channel_.get();
4214 } 4214 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
4385 4385
4386 // TCP Relay/Relay is the next. 4386 // TCP Relay/Relay is the next.
4387 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, 4387 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE,
4388 TCP_PROTOCOL_NAME); 4388 TCP_PROTOCOL_NAME);
4389 4389
4390 // Finally, Local/Relay will be pinged. 4390 // Finally, Local/Relay will be pinged.
4391 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); 4391 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE);
4392 } 4392 }
4393 4393
4394 } // namespace cricket { 4394 } // namespace cricket {
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.cc ('k') | webrtc/p2p/base/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698