diff options
author | sergeyu <sergeyu@chromium.org> | 2015-10-28 11:24:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-28 18:26:05 +0000 |
commit | 7a5351f4c6e407e456978f6599d475616a69fc0b (patch) | |
tree | 17e1e125e72d1f00237238d9648424434178ad65 /remoting/protocol/jingle_messages_unittest.cc | |
parent | e0dc711510c1ae7c4cab8bce156878298db87fdb (diff) | |
download | chromium_src-7a5351f4c6e407e456978f6599d475616a69fc0b.zip chromium_src-7a5351f4c6e407e456978f6599d475616a69fc0b.tar.gz chromium_src-7a5351f4c6e407e456978f6599d475616a69fc0b.tar.bz2 |
Add TransportSession interface to prepare for WebRTC-based transport.
Previosly JingleSession was responsible to establishing connection
with the peer and managing list of channels. Now the new
IceTransportSession class (that implements TransportSession interface)
is responsible for managing list of channels and so it will be possible
to add support for WebRTC-based transport by adding another
TransportSession implementation.
There are no functional changes in this CL.
BUG=547158
Review URL: https://codereview.chromium.org/1420273002
Cr-Commit-Position: refs/heads/master@{#356588}
Diffstat (limited to 'remoting/protocol/jingle_messages_unittest.cc')
-rw-r--r-- | remoting/protocol/jingle_messages_unittest.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/remoting/protocol/jingle_messages_unittest.cc b/remoting/protocol/jingle_messages_unittest.cc index 90b40ca..7d075d4 100644 --- a/remoting/protocol/jingle_messages_unittest.cc +++ b/remoting/protocol/jingle_messages_unittest.cc @@ -251,7 +251,11 @@ TEST(JingleMessageTest, IceTransportInfo) { EXPECT_TRUE(message.ParseXml(source_message.get(), &error)) << error; EXPECT_EQ(message.action, JingleMessage::TRANSPORT_INFO); - EXPECT_EQ(message.candidates.size(), 2U); + + IceTransportInfo transport_info; + EXPECT_TRUE(transport_info.ParseXml(message.transport_info.get())); + EXPECT_EQ(transport_info.ice_credentials.size(), 2U); + EXPECT_EQ(transport_info.candidates.size(), 2U); scoped_ptr<XmlElement> formatted_message(message.ToXml()); ASSERT_TRUE(formatted_message.get()); |