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

Unified Diff: remoting/base/protocol_decoder_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/base/protocol/chromotocol.proto ('k') | remoting/client/decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/protocol_decoder_unittest.cc
diff --git a/remoting/base/protocol_decoder_unittest.cc b/remoting/base/protocol_decoder_unittest.cc
index d1bd58416c6aca1d5f6f3d9405d55c35c6382041..c2473a80ed6f6ad7ec89c5cf5eb5291cd709053c 100644
--- a/remoting/base/protocol_decoder_unittest.cc
+++ b/remoting/base/protocol_decoder_unittest.cc
@@ -43,7 +43,10 @@ static void PrepareData(uint8** buffer, int* size) {
AppendMessage(msg, &encoded_data);
msg.Clear();
- msg.mutable_update_stream_packet()->set_data(kTestData);
+ msg.mutable_update_stream_packet()->mutable_rect_data()->
+ set_sequence_number(0);
+ msg.mutable_update_stream_packet()->mutable_rect_data()->
+ set_data(kTestData);
AppendMessage(msg, &encoded_data);
msg.Clear();
@@ -101,7 +104,8 @@ TEST(ProtocolDecoderTest, BasicOperations) {
} else if (type == 1) {
// Partial update stream.
EXPECT_TRUE(message_list[i]->has_update_stream_packet());
- EXPECT_EQ(kTestData, message_list[i]->update_stream_packet().data());
+ EXPECT_EQ(kTestData,
+ message_list[i]->update_stream_packet().rect_data().data());
} else if (type == 2) {
// End update stream.
EXPECT_TRUE(message_list[i]->has_end_update_stream());
« no previous file with comments | « remoting/base/protocol/chromotocol.proto ('k') | remoting/client/decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698