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

Unified Diff: remoting/host/ipc_desktop_environment_unittest.cc

Issue 985863002: Move all protocol event matchers to test_event_matchers.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
Index: remoting/host/ipc_desktop_environment_unittest.cc
diff --git a/remoting/host/ipc_desktop_environment_unittest.cc b/remoting/host/ipc_desktop_environment_unittest.cc
index f1fee31b5523eee5196d701a5863f52aea4acfa4..4cd01674294fc08f4ff2070ba959f6904850dc3c 100644
--- a/remoting/host/ipc_desktop_environment_unittest.cc
+++ b/remoting/host/ipc_desktop_environment_unittest.cc
@@ -48,6 +48,9 @@ using testing::ReturnRef;
namespace remoting {
+using protocol::EqualsTouchEvent;
+using protocol::EqualsTouchEventTypeAndId;
+
namespace {
// Receives messages sent from the network process to the daemon.
@@ -674,9 +677,10 @@ TEST_F(IpcDesktopEnvironmentTest, InjectTouchEvent) {
// Expect that the event gets propagated to remote_input_injector_.
// And one more call for ReleaseAll().
EXPECT_CALL(*remote_input_injector_,
- InjectTouchEvent(protocol::TouchEventEqual(event)));
+ InjectTouchEvent(EqualsTouchEvent(event)));
EXPECT_CALL(*remote_input_injector_,
- InjectTouchEvent(protocol::IsTouchCancelEvent()));
+ InjectTouchEvent(EqualsTouchEventTypeAndId(
+ protocol::TouchEvent::TOUCH_POINT_CANCEL, 0u)));
// Send the touch event.
input_injector_->InjectTouchEvent(event);

Powered by Google App Engine
This is Rietveld 408576698