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

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

Issue 2670113002: Pick the DTLS handshake timeout based on the ICE RTT estimate (Closed)
Patch Set: Rename InitialHandshakeRetransmissionTimeout -> InitialRetransmissionTimeout. Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.cc ('k') | webrtc/p2p/base/port.cc » ('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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 } 1192 }
1193 ASSERT_TRUE(best_conn_info != nullptr); 1193 ASSERT_TRUE(best_conn_info != nullptr);
1194 EXPECT_TRUE(best_conn_info->new_connection); 1194 EXPECT_TRUE(best_conn_info->new_connection);
1195 EXPECT_TRUE(best_conn_info->receiving); 1195 EXPECT_TRUE(best_conn_info->receiving);
1196 EXPECT_TRUE(best_conn_info->writable); 1196 EXPECT_TRUE(best_conn_info->writable);
1197 EXPECT_FALSE(best_conn_info->timeout); 1197 EXPECT_FALSE(best_conn_info->timeout);
1198 EXPECT_EQ(10U, best_conn_info->sent_total_packets); 1198 EXPECT_EQ(10U, best_conn_info->sent_total_packets);
1199 EXPECT_EQ(0U, best_conn_info->sent_discarded_packets); 1199 EXPECT_EQ(0U, best_conn_info->sent_discarded_packets);
1200 EXPECT_EQ(10 * 36U, best_conn_info->sent_total_bytes); 1200 EXPECT_EQ(10 * 36U, best_conn_info->sent_total_bytes);
1201 EXPECT_EQ(10 * 36U, best_conn_info->recv_total_bytes); 1201 EXPECT_EQ(10 * 36U, best_conn_info->recv_total_bytes);
1202 EXPECT_GT(best_conn_info->rtt, 0U);
1203 DestroyChannels(); 1202 DestroyChannels();
1204 } 1203 }
1205 1204
1206 // Tests that UMAs are recorded when ICE restarts while the channel 1205 // Tests that UMAs are recorded when ICE restarts while the channel
1207 // is disconnected. 1206 // is disconnected.
1208 TEST_F(P2PTransportChannelTest, TestUMAIceRestartWhileDisconnected) { 1207 TEST_F(P2PTransportChannelTest, TestUMAIceRestartWhileDisconnected) {
1209 rtc::ScopedFakeClock clock; 1208 rtc::ScopedFakeClock clock;
1210 ConfigureEndpoints(OPEN, OPEN, kOnlyLocalPorts, kOnlyLocalPorts); 1209 ConfigureEndpoints(OPEN, OPEN, kOnlyLocalPorts, kOnlyLocalPorts);
1211 1210
1212 CreateChannels(); 1211 CreateChannels();
(...skipping 3175 matching lines...) Expand 10 before | Expand all | Expand 10 after
4388 4387
4389 // TCP Relay/Relay is the next. 4388 // TCP Relay/Relay is the next.
4390 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, 4389 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE,
4391 TCP_PROTOCOL_NAME); 4390 TCP_PROTOCOL_NAME);
4392 4391
4393 // Finally, Local/Relay will be pinged. 4392 // Finally, Local/Relay will be pinged.
4394 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); 4393 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE);
4395 } 4394 }
4396 4395
4397 } // namespace cricket { 4396 } // namespace cricket {
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.cc ('k') | webrtc/p2p/base/port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698