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

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: 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
Index: remoting/test/me2me_browsertest.cc
diff --git a/remoting/test/me2me_browsertest.cc b/remoting/test/me2me_browsertest.cc
index 0c0e2caa11789c9f6a08bb545954a99ca7c0b652..a8a0eb44aae9bc2c06d63550c8f8612e33e1d0b8 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() {
+ // Visually verifies that "Dash Home" is clicked on a Unity window manager.
garykac 2013/09/19 21:37:26 Should it be "Visually verify..."? The code below
weitao 2013/09/19 22:04:56 Done.
weitao 2013/09/19 22:04:56 Done.
+ SimulateMouseClickAt(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.
+ 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') | remoting/test/remote_desktop_browsertest.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698