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

Unified Diff: remoting/protocol/jingle_messages_unittest.cc

Issue 2577333003: Update SignalingAddress to normalize all JIDs. (Closed)
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/jingle_messages.cc ('k') | remoting/protocol/jingle_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_messages_unittest.cc
diff --git a/remoting/protocol/jingle_messages_unittest.cc b/remoting/protocol/jingle_messages_unittest.cc
index e10e935dcc525ed00a67af19ee2b7089511251c6..38d4844aeae4d595d51a0eccaed8ba6ac3eb06b2 100644
--- a/remoting/protocol/jingle_messages_unittest.cc
+++ b/remoting/protocol/jingle_messages_unittest.cc
@@ -419,14 +419,14 @@ TEST(JingleMessageTest, ParseAddress) {
JingleMessage message;
ParseFormatAndCompare(kTestSessionInfoMessage, &message);
- EXPECT_EQ(message.from.jid, "remoting@bot.talk.google.com");
- EXPECT_EQ(message.from.channel, SignalingAddress::Channel::LCS);
- EXPECT_EQ(message.from.endpoint_id, "user@gmail.com/xBrnereror=");
+ EXPECT_EQ(message.from.jid(), "remoting@bot.talk.google.com");
+ EXPECT_EQ(message.from.channel(), SignalingAddress::Channel::LCS);
+ EXPECT_EQ(message.from.endpoint_id(), "user@gmail.com/xBrnereror=");
EXPECT_EQ(message.from.id(), "user@gmail.com/xBrnereror=");
- EXPECT_EQ(message.to.jid, "user@gmail.com/chromiumsy5C6A652D");
- EXPECT_EQ(message.to.channel, SignalingAddress::Channel::XMPP);
- EXPECT_EQ(message.to.endpoint_id, "");
+ EXPECT_EQ(message.to.jid(), "user@gmail.com/chromiumsy5C6A652D");
+ EXPECT_EQ(message.to.channel(), SignalingAddress::Channel::XMPP);
+ EXPECT_EQ(message.to.endpoint_id(), "");
EXPECT_EQ(message.to.id(), "user@gmail.com/chromiumsy5C6A652D");
EXPECT_EQ(message.action, JingleMessage::SESSION_INFO);
« no previous file with comments | « remoting/protocol/jingle_messages.cc ('k') | remoting/protocol/jingle_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698