OLD | NEW |
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 Loading... |
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); |
1202 DestroyChannels(); | 1203 DestroyChannels(); |
1203 } | 1204 } |
1204 | 1205 |
1205 // Tests that UMAs are recorded when ICE restarts while the channel | 1206 // Tests that UMAs are recorded when ICE restarts while the channel |
1206 // is disconnected. | 1207 // is disconnected. |
1207 TEST_F(P2PTransportChannelTest, TestUMAIceRestartWhileDisconnected) { | 1208 TEST_F(P2PTransportChannelTest, TestUMAIceRestartWhileDisconnected) { |
1208 rtc::ScopedFakeClock clock; | 1209 rtc::ScopedFakeClock clock; |
1209 ConfigureEndpoints(OPEN, OPEN, kOnlyLocalPorts, kOnlyLocalPorts); | 1210 ConfigureEndpoints(OPEN, OPEN, kOnlyLocalPorts, kOnlyLocalPorts); |
1210 | 1211 |
1211 CreateChannels(); | 1212 CreateChannels(); |
(...skipping 3175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4387 | 4388 |
4388 // TCP Relay/Relay is the next. | 4389 // TCP Relay/Relay is the next. |
4389 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, | 4390 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, |
4390 TCP_PROTOCOL_NAME); | 4391 TCP_PROTOCOL_NAME); |
4391 | 4392 |
4392 // Finally, Local/Relay will be pinged. | 4393 // Finally, Local/Relay will be pinged. |
4393 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); | 4394 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); |
4394 } | 4395 } |
4395 | 4396 |
4396 } // namespace cricket { | 4397 } // namespace cricket { |
OLD | NEW |