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

Unified Diff: remoting/protocol/connection_to_client_unittest.cc

Issue 580243003: Cleanup Fake* classes in remoting/protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sctp
Patch Set: Created 6 years, 3 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
« no previous file with comments | « remoting/protocol/channel_multiplexer_unittest.cc ('k') | remoting/protocol/fake_datagram_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c6dd90cf9c78e44cfd8b29c2d7dda82ee420187f..e2855928a84baba349222c3d2b0bf2e9530e8193 100644
--- a/remoting/protocol/connection_to_client_unittest.cc
+++ b/remoting/protocol/connection_to_client_unittest.cc
@@ -69,9 +69,10 @@ TEST_F(ConnectionToClientTest, SendUpdateStream) {
// Verify that something has been written.
// TODO(sergeyu): Verify that the correct data has been written.
- ASSERT_TRUE(session_->GetStreamChannel(kVideoChannelName));
- EXPECT_GT(session_->GetStreamChannel(kVideoChannelName)->
- written_data().size(), 0u);
+ ASSERT_TRUE(
+ session_->fake_channel_factory().GetFakeChannel(kVideoChannelName));
+ EXPECT_FALSE(session_->fake_channel_factory()
+ .GetFakeChannel(kVideoChannelName)->written_data().empty());
// And then close the connection to ConnectionToClient.
viewer_->Disconnect();
« no previous file with comments | « remoting/protocol/channel_multiplexer_unittest.cc ('k') | remoting/protocol/fake_datagram_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698