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

Unified Diff: remoting/protocol/connection_to_client_unittest.cc

Issue 1420273002: Add TransportSession interface to prepare for WebRTC-based transport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: remoting/protocol/connection_to_client_unittest.cc
diff --git a/remoting/protocol/connection_to_client_unittest.cc b/remoting/protocol/connection_to_client_unittest.cc
index 63c0abadcfda0f11b4ac4bc80f6634b3a42230f2..0dc9281e0b37b554f5e6f7172cc0220b673ae67a 100644
--- a/remoting/protocol/connection_to_client_unittest.cc
+++ b/remoting/protocol/connection_to_client_unittest.cc
@@ -74,10 +74,11 @@ TEST_F(ConnectionToClientTest, SendUpdateStream) {
// Verify that something has been written.
// TODO(sergeyu): Verify that the correct data has been written.
- ASSERT_TRUE(
- session_->fake_channel_factory().GetFakeChannel(kVideoChannelName));
- EXPECT_FALSE(session_->fake_channel_factory()
- .GetFakeChannel(kVideoChannelName)->written_data().empty());
+ FakeStreamSocket* channel = session_->GetTransportSession()
+ ->GetStreamChannelFactory()
+ ->GetFakeChannel(kVideoChannelName);
+ ASSERT_TRUE(channel);
+ EXPECT_FALSE(channel->written_data().empty());
// And then close the connection to ConnectionToClient.
viewer_->Disconnect();

Powered by Google App Engine
This is Rietveld 408576698