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

Unified Diff: webrtc/p2p/base/turnport_unittest.cc

Issue 1277263002: Add instrumentation to track the IceEndpointType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 4 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
Index: webrtc/p2p/base/turnport_unittest.cc
diff --git a/webrtc/p2p/base/turnport_unittest.cc b/webrtc/p2p/base/turnport_unittest.cc
index 3172ba252f2930156792fa57049d31c460f5c045..b03c0c24e6a2ea5ce4839f6b074da275189ce609 100644
--- a/webrtc/p2p/base/turnport_unittest.cc
+++ b/webrtc/p2p/base/turnport_unittest.cc
@@ -712,6 +712,8 @@ TEST_F(TurnPortTest, TestTurnSendDataTurnUdpToUdp) {
// Create ports and prepare addresses.
CreateTurnPort(kTurnUsername, kTurnPassword, kTurnUdpProtoAddr);
TestTurnSendData();
+ EXPECT_EQ(turn_port_->Candidates()[0].relay_protocol(),
+ cricket::UDP_PROTOCOL_NAME);
}
// Do a TURN allocation, establish a TCP connection, and send some data.
@@ -720,6 +722,8 @@ TEST_F(TurnPortTest, TestTurnSendDataTurnTcpToUdp) {
// Create ports and prepare addresses.
CreateTurnPort(kTurnUsername, kTurnPassword, kTurnTcpProtoAddr);
TestTurnSendData();
+ EXPECT_EQ(turn_port_->Candidates()[0].relay_protocol(),
+ cricket::TCP_PROTOCOL_NAME);
}
// Test TURN fails to make a connection from IPv6 address to a server which has

Powered by Google App Engine
This is Rietveld 408576698