From 2f40848979624555b28ea3d3794fc078456dcd18 Mon Sep 17 00:00:00 2001 From: "alexeypa@chromium.org" Date: Mon, 25 Feb 2013 20:30:20 +0000 Subject: Do not suppress local echo in RemoteInputFilter on Windows. Injected input events are filtered out by the local input monitor (LocalInputMonitorWin) on Windows. RemoteInputFilter should not try to filter then out the second time. BUG=177132 Review URL: https://chromiumcodereview.appspot.com/12294052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184468 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/client_session_unittest.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'remoting/host/client_session_unittest.cc') diff --git a/remoting/host/client_session_unittest.cc b/remoting/host/client_session_unittest.cc index abe7eee..9eb6348 100644 --- a/remoting/host/client_session_unittest.cc +++ b/remoting/host/client_session_unittest.cc @@ -369,11 +369,16 @@ TEST_F(ClientSessionTest, LocalInputTest) { .WillOnce(DoAll( // This event should get through to the input stub. InjectMouseEvent(connection_, mouse_event1), - // This one should too because the local event echoes the remote one. +#if !defined(OS_WIN) + // The OS echoes the injected event back. LocalMouseMoved(client_session_.get(), mouse_event1), +#endif // !defined(OS_WIN) + // This one should get throught as well. InjectMouseEvent(connection_, mouse_event2), - // This one should not. + // Now this is a genuine local event. LocalMouseMoved(client_session_.get(), mouse_event1), + // This one should be blocked because of the previous local input + // event. InjectMouseEvent(connection_, mouse_event3), // TODO(jamiewalch): Verify that remote inputs are re-enabled // eventually (via dependency injection, not sleep!) -- cgit v1.1