diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-25 20:30:20 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-25 20:30:20 +0000 |
commit | 2f40848979624555b28ea3d3794fc078456dcd18 (patch) | |
tree | 55d1acacf8c33bb534d0c4c1360affb70596f544 /remoting/host/client_session_unittest.cc | |
parent | ca1d44d9aa94ada374ec5dd2cbe09914fdc6c337 (diff) | |
download | chromium_src-2f40848979624555b28ea3d3794fc078456dcd18.zip chromium_src-2f40848979624555b28ea3d3794fc078456dcd18.tar.gz chromium_src-2f40848979624555b28ea3d3794fc078456dcd18.tar.bz2 |
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
Diffstat (limited to 'remoting/host/client_session_unittest.cc')
-rw-r--r-- | remoting/host/client_session_unittest.cc | 9 |
1 files changed, 7 insertions, 2 deletions
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!) |