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

Unified Diff: remoting/host/client_connection_unittest.cc

Issue 2963003: Changing UpdateStreamPacket protobuf definition for chromoting (Closed)
Patch Set: fixed comments Created 10 years, 5 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/host/client_connection.cc ('k') | remoting/host/encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_connection_unittest.cc
diff --git a/remoting/host/client_connection_unittest.cc b/remoting/host/client_connection_unittest.cc
index b7cb10cb574f201ae809a1acb9396d40f1fee2ea..9c3bcb35bd246dd74dba0b43f04ba1bb37023b7a 100644
--- a/remoting/host/client_connection_unittest.cc
+++ b/remoting/host/client_connection_unittest.cc
@@ -55,14 +55,8 @@ TEST_F(ClientConnectionTest, SendUpdateStream) {
// Then send the actual data.
EXPECT_CALL(*channel_, Write(_));
- scoped_ptr<UpdateStreamPacketHeader> header(new UpdateStreamPacketHeader);
- header->set_x(0);
- header->set_y(0);
- header->set_width(640);
- header->set_height(480);
-
scoped_refptr<media::DataBuffer> data = new media::DataBuffer(10);
- viewer_->SendUpdateStreamPacketMessage(header.get(), data);
+ viewer_->SendUpdateStreamPacketMessage(data);
// Send the end of update message.
EXPECT_CALL(*channel_, Write(_));
@@ -105,15 +99,8 @@ TEST_F(ClientConnectionTest, Close) {
EXPECT_CALL(*channel_, Close());
viewer_->Disconnect();
- viewer_->SendBeginUpdateStreamMessage();
- scoped_ptr<UpdateStreamPacketHeader> header(new UpdateStreamPacketHeader);
- header->set_x(0);
- header->set_y(0);
- header->set_width(640);
- header->set_height(480);
-
scoped_refptr<media::DataBuffer> data = new media::DataBuffer(10);
- viewer_->SendUpdateStreamPacketMessage(header.get(), data);
+ viewer_->SendUpdateStreamPacketMessage(data);
viewer_->SendEndUpdateStreamMessage();
viewer_->Disconnect();
}
« no previous file with comments | « remoting/host/client_connection.cc ('k') | remoting/host/encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698