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

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 00a62fa70b444b4148ca583151a5ee7ca6621e08..b5fdfc1f44713d24f7076eb0555d5b2112deda8b 100644
--- a/webrtc/p2p/base/turnport_unittest.cc
+++ b/webrtc/p2p/base/turnport_unittest.cc
@@ -734,6 +734,8 @@ TEST_F(TurnPortTest, TestTurnSendDataTurnUdpToUdp) {
// Create ports and prepare addresses.
CreateTurnPort(kTurnUsername, kTurnPassword, kTurnUdpProtoAddr);
TestTurnSendData();
+ EXPECT_EQ(turn_port_->Candidates()[0].relay_protocol(),
juberti1 2015/08/20 23:14:25 expected value comes first in EXPECT_EQ (here and
+ cricket::UDP_PROTOCOL_NAME);
}
// Do a TURN allocation, establish a TCP connection, and send some data.
@@ -742,6 +744,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