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

Unified Diff: remoting/test/app_remoting_latency_test_fixture.h

Issue 1403583003: Use standard DOM code definitions instead of custom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer feedback. Created 5 years, 2 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/test/DEPS ('k') | remoting/test/app_remoting_latency_test_fixture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/app_remoting_latency_test_fixture.h
diff --git a/remoting/test/app_remoting_latency_test_fixture.h b/remoting/test/app_remoting_latency_test_fixture.h
index b6254c8a994124917ae07bbacaff3b377a07336e..643260d1bd344620c11636ed57b0059375cd224a 100644
--- a/remoting/test/app_remoting_latency_test_fixture.h
+++ b/remoting/test/app_remoting_latency_test_fixture.h
@@ -13,6 +13,7 @@
#include "remoting/test/remote_connection_observer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
+#include "ui/events/keycodes/dom/dom_code.h"
namespace base {
class RunLoop;
@@ -64,10 +65,11 @@ class AppRemotingLatencyTestFixture : public testing::Test,
void SaveFrameDataToDisk(bool save_frame_data_to_disk);
// Inject press & release key event.
- void PressAndReleaseKey(uint32_t usb_keycode);
+ void PressAndReleaseKey(ui::DomCode usb_keycode);
// Inject press & release a combination of key events.
- void PressAndReleaseKeyCombination(const std::vector<uint32_t>& usb_keycodes);
+ void PressAndReleaseKeyCombination(
+ const std::vector<ui::DomCode>& usb_keycodes);
// Setter for |host_message_received_callback_|.
void SetHostMessageReceivedCallback(
@@ -97,7 +99,7 @@ class AppRemotingLatencyTestFixture : public testing::Test,
void HostMessageReceived(const protocol::ExtensionMessage& message) override;
// Inject press key event.
- void PressKey(uint32_t usb_keycode, bool pressed);
+ void PressKey(ui::DomCode usb_keycode, bool pressed);
// Waits for an image pattern matched reply up to |max_wait_time|. Returns
// true if we received a response within the maximum time limit.
« no previous file with comments | « remoting/test/DEPS ('k') | remoting/test/app_remoting_latency_test_fixture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698