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

Unified Diff: remoting/client/key_event_mapper_unittest.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 5 years 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/client/key_event_mapper.cc ('k') | remoting/client/normalizing_input_filter_cros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/key_event_mapper_unittest.cc
diff --git a/remoting/client/key_event_mapper_unittest.cc b/remoting/client/key_event_mapper_unittest.cc
index b19403817bdbe48efa6c7fb93738fda3bc27696c..26715f5afabbece50c67461133464e40ffcdfb83 100644
--- a/remoting/client/key_event_mapper_unittest.cc
+++ b/remoting/client/key_event_mapper_unittest.cc
@@ -4,6 +4,8 @@
#include "remoting/client/key_event_mapper.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "remoting/proto/event.pb.h"
#include "remoting/protocol/protocol_mock_objects.h"
@@ -22,9 +24,9 @@ using protocol::KeyEvent;
using protocol::MockInputStub;
using protocol::test::EqualsKeyEventWithCapsLock;
-static KeyEvent NewUsbEvent(uint32 usb_keycode,
+static KeyEvent NewUsbEvent(uint32_t usb_keycode,
bool pressed,
- uint32 lock_states) {
+ uint32_t lock_states) {
KeyEvent event;
event.set_usb_keycode(usb_keycode);
event.set_pressed(pressed);
@@ -33,7 +35,7 @@ static KeyEvent NewUsbEvent(uint32 usb_keycode,
return event;
}
-static void PressAndReleaseUsb(InputStub* input_stub, uint32 usb_keycode) {
+static void PressAndReleaseUsb(InputStub* input_stub, uint32_t usb_keycode) {
input_stub->InjectKeyEvent(
NewUsbEvent(usb_keycode, true, KeyEvent::LOCK_STATES_CAPSLOCK));
input_stub->InjectKeyEvent(
« no previous file with comments | « remoting/client/key_event_mapper.cc ('k') | remoting/client/normalizing_input_filter_cros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698