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

Unified Diff: remoting/test/me2me_browsertest.cc

Issue 24096025: Simulate a mouse click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser_tests_e2b
Patch Set: Fixing comments. Created 7 years, 3 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 | « no previous file | remoting/test/remote_desktop_browsertest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/me2me_browsertest.cc
diff --git a/remoting/test/me2me_browsertest.cc b/remoting/test/me2me_browsertest.cc
index 0c0e2caa11789c9f6a08bb545954a99ca7c0b652..63feb65ec51ff402611f1e63a8aad38caf87aef7 100644
--- a/remoting/test/me2me_browsertest.cc
+++ b/remoting/test/me2me_browsertest.cc
@@ -10,6 +10,7 @@ namespace remoting {
class Me2MeBrowserTest : public RemoteDesktopBrowserTest {
protected:
void TestKeyboardInput();
+ void TestMouseInput();
};
IN_PROC_BROWSER_TEST_F(Me2MeBrowserTest,
@@ -43,4 +44,13 @@ void Me2MeBrowserTest::TestKeyboardInput() {
ASSERT_TRUE(TimeoutWaiter(base::TimeDelta::FromSeconds(5)).Wait());
}
+void Me2MeBrowserTest::TestMouseInput() {
+ SimulateMouseLeftClickAt(10, 50);
+ // TODO: Verify programatically the mouse events are received by the host.
+ // This will be tricky as it depends on the host OS, window manager, desktop
+ // layout, and screen resolution. Until then we need to visually verify that
+ // "Dash Home" is clicked on a Unity window manager.
+ ASSERT_TRUE(TimeoutWaiter(base::TimeDelta::FromSeconds(5)).Wait());
+}
+
} // namespace remoting
« no previous file with comments | « no previous file | remoting/test/remote_desktop_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698