diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 22:56:04 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 22:56:04 +0000 |
commit | e295ff0698eda75aa7e2b887362310df59ff559e (patch) | |
tree | 371a61e5da9e5c572ef40045937d6548fbcae6e3 /remoting/base/protocol_decoder_unittest.cc | |
parent | 0a33b90c45a0b1a139e3a655666ba337ecb600b0 (diff) | |
download | chromium_src-e295ff0698eda75aa7e2b887362310df59ff559e.zip chromium_src-e295ff0698eda75aa7e2b887362310df59ff559e.tar.gz chromium_src-e295ff0698eda75aa7e2b887362310df59ff559e.tar.bz2 |
Changing UpdateStreamPacket protobuf definition for chromoting
This code also changes the API for encoder and ClientConnection to eliminate
one less copy.
Review URL: http://codereview.chromium.org/2963003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52561 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base/protocol_decoder_unittest.cc')
-rw-r--r-- | remoting/base/protocol_decoder_unittest.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/remoting/base/protocol_decoder_unittest.cc b/remoting/base/protocol_decoder_unittest.cc index d1bd584..c2473a8 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()); |