summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/chrome_frame_test_utils.h
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 17:46:40 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 17:46:40 +0000
commit24a20e0d58bfc9c176930f90b4ea3245fa742815 (patch)
tree747dc184de34af34e394d80b7b04bb12531aba28 /chrome_frame/test/chrome_frame_test_utils.h
parentdd807ba64f2a3c276757010fcb488f5dc3b5722e (diff)
downloadchromium_src-24a20e0d58bfc9c176930f90b4ea3245fa742815.zip
chromium_src-24a20e0d58bfc9c176930f90b4ea3245fa742815.tar.gz
chromium_src-24a20e0d58bfc9c176930f90b4ea3245fa742815.tar.bz2
Added a regression test which validates that keystrokes are received correctly in ChromeFrame. We specifically
test for uppercase characters generated in combination with the Shift key. Added a helper function to explicitly give focus to a passed in HWND. This is done by sending the mouse move/mouse down and mouse up events to the window. We also use this in the AboutChromeFrame test, which was flaky at times. Bug=27173,26549 Review URL: http://codereview.chromium.org/389029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/chrome_frame_test_utils.h')
-rw-r--r--chrome_frame/test/chrome_frame_test_utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome_frame/test/chrome_frame_test_utils.h b/chrome_frame/test/chrome_frame_test_utils.h
index 900f532..26da481 100644
--- a/chrome_frame/test/chrome_frame_test_utils.h
+++ b/chrome_frame/test/chrome_frame_test_utils.h
@@ -69,6 +69,14 @@ void SelectAboutChromeFrame();
// Returns NULL on failure.
HWND GetChromeRendererWindow();
+// Sends the specified input to the window passed in.
+void SendInputToWindow(HWND window, const std::string& input_string);
+
+// Helper function to set keyboard focus to a window. This is achieved by
+// sending a mouse move followed by a mouse down/mouse up combination to the
+// window.
+void SetKeyboardFocusToWindow(HWND window, int x, int y);
+
} // namespace chrome_frame_test
#endif // CHROME_FRAME_CHROMETAB_UNITTESTS_CF_TEST_UTILS_H_