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

Unified Diff: remoting/protocol/ice_connection_to_client_unittest.cc

Issue 1472873005: Add VideoStream interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_video_pump
Patch Set: Created 5 years, 1 month 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/ice_connection_to_client.cc ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/ice_connection_to_client_unittest.cc
diff --git a/remoting/protocol/ice_connection_to_client_unittest.cc b/remoting/protocol/ice_connection_to_client_unittest.cc
index 5daecee6a12f16b406d94fe24828f60421e31b76..b6a860b352cb8fcbd161ab1c43178b689a762cbb 100644
--- a/remoting/protocol/ice_connection_to_client_unittest.cc
+++ b/remoting/protocol/ice_connection_to_client_unittest.cc
@@ -29,7 +29,8 @@ class IpcConnectionToClientTest : public testing::Test {
session_ = new FakeSession();
// Allocate a ClientConnection object with the mock objects.
- viewer_.reset(new IceConnectionToClient(make_scoped_ptr(session_)));
+ viewer_.reset(new IceConnectionToClient(make_scoped_ptr(session_),
+ message_loop_.task_runner()));
viewer_->SetEventHandler(&handler_);
EXPECT_CALL(handler_, OnConnectionAuthenticated(viewer_.get()))
.WillOnce(
@@ -65,8 +66,8 @@ class IpcConnectionToClientTest : public testing::Test {
};
TEST_F(IpcConnectionToClientTest, SendUpdateStream) {
- scoped_ptr<VideoPacket> packet(new VideoPacket());
- viewer_->video_stub()->ProcessVideoPacket(packet.Pass(), base::Closure());
+ Capabilities capabilities;
+ viewer_->client_stub()->SetCapabilities(capabilities);
base::RunLoop().RunUntilIdle();
@@ -74,7 +75,7 @@ TEST_F(IpcConnectionToClientTest, SendUpdateStream) {
// TODO(sergeyu): Verify that the correct data has been written.
FakeStreamSocket* channel =
session_->GetTransport()->GetStreamChannelFactory()->GetFakeChannel(
- kVideoChannelName);
+ kControlChannelName);
ASSERT_TRUE(channel);
EXPECT_FALSE(channel->written_data().empty());
@@ -85,8 +86,8 @@ TEST_F(IpcConnectionToClientTest, SendUpdateStream) {
}
TEST_F(IpcConnectionToClientTest, NoWriteAfterDisconnect) {
- scoped_ptr<VideoPacket> packet(new VideoPacket());
- viewer_->video_stub()->ProcessVideoPacket(packet.Pass(), base::Closure());
+ Capabilities capabilities;
+ viewer_->client_stub()->SetCapabilities(capabilities);
// And then close the connection to ConnectionToClient.
viewer_->Disconnect(protocol::OK);
« no previous file with comments | « remoting/protocol/ice_connection_to_client.cc ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698