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

Unified Diff: remoting/protocol/message_decoder_unittest.cc

Issue 10894050: Remove support for Windows-style keycodes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux EventExecutor typo. Created 8 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/input_event_tracker_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/message_decoder_unittest.cc
diff --git a/remoting/protocol/message_decoder_unittest.cc b/remoting/protocol/message_decoder_unittest.cc
index 27a40ad9dbc06172b4df18be8c84e130fac84307..24e89f46ce62ad71f7c79d223b01bb316379fd91 100644
--- a/remoting/protocol/message_decoder_unittest.cc
+++ b/remoting/protocol/message_decoder_unittest.cc
@@ -16,7 +16,7 @@
namespace remoting {
namespace protocol {
-static const int kTestKey = 142;
+static const unsigned int kTestKey = 142;
static void AppendMessage(const EventMessage& msg,
std::string* buffer) {
@@ -35,7 +35,7 @@ static void PrepareData(uint8** buffer, int* size) {
for (int i = 0; i < 10; ++i) {
EventMessage msg;
msg.set_sequence_number(i);
- msg.mutable_key_event()->set_keycode(kTestKey + i);
+ msg.mutable_key_event()->set_usb_keycode(kTestKey + i);
msg.mutable_key_event()->set_pressed((i % 2) != 0);
AppendMessage(msg, &encoded_data);
}
@@ -87,7 +87,7 @@ void SimulateReadSequence(const int read_sequence[], int sequence_size) {
// Then verify the decoded messages.
EXPECT_EQ(10u, message_list.size());
- int index = 0;
+ unsigned int index = 0;
for (std::list<EventMessage*>::iterator it =
message_list.begin();
it != message_list.end(); ++it) {
@@ -99,7 +99,7 @@ void SimulateReadSequence(const int read_sequence[], int sequence_size) {
// TODO(sergeyu): Don't use index here. Instead store the expected values
// in an array.
- EXPECT_EQ(kTestKey + index, message->key_event().keycode());
+ EXPECT_EQ(kTestKey + index, message->key_event().usb_keycode());
EXPECT_EQ((index % 2) != 0, message->key_event().pressed());
++index;
}
« no previous file with comments | « remoting/protocol/input_event_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698