diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 21:46:21 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 21:46:21 +0000 |
commit | cb4b1e0d5f1e80938a19fbe837b5a1535cd80b60 (patch) | |
tree | f4b556d31ef4d6625370b30e29e99dcb724d319a /chrome_frame/test/chrome_frame_test_utils.h | |
parent | 3782951259d8a3ab02c379754e6c55b622d2bc8e (diff) | |
download | chromium_src-cb4b1e0d5f1e80938a19fbe837b5a1535cd80b60.zip chromium_src-cb4b1e0d5f1e80938a19fbe837b5a1535cd80b60.tar.gz chromium_src-cb4b1e0d5f1e80938a19fbe837b5a1535cd80b60.tar.bz2 |
Added unit tests for ChromeFrame IE full tab mode. These test the following cases:-
1. A window.open call issued from a page within ChromeFrame in IE full tab mode makes it back
to IE before being shunted into Chrome.
2. Brings up the chrome frame context menu in full tab mode and invokes the About Chrome frame
option.
While I was working on these tests based on a lot of help from Stoyan, we had these tests use gmock
and I also changed the disallowed URL test to use gmock.
The other changes are to always run the chrome frame tests in the STA apartment as the newly added
full tab mode tests cannot handle calls coming in from background RPC worker threads.
Bug=26066,26172
Review URL: http://codereview.chromium.org/340029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30520 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.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome_frame/test/chrome_frame_test_utils.h b/chrome_frame/test/chrome_frame_test_utils.h index 95e0c9b..a9e1b3a 100644 --- a/chrome_frame/test/chrome_frame_test_utils.h +++ b/chrome_frame/test/chrome_frame_test_utils.h @@ -56,6 +56,18 @@ extern const wchar_t kOperaImageName[]; extern const wchar_t kSafariImageName[]; extern const wchar_t kChromeImageName[]; +// Displays the chrome frame context menu by posting mouse move messages to +// Chrome +void ShowChromeFrameContextMenu(); + +// Sends keyboard messages to the chrome frame context menu to select the About +// Chrome frame option. +void SelectAboutChromeFrame(); + +// Returns a handle to the chrome frame render widget child window. +// Returns NULL on failure. +HWND GetChromeRendererWindow(); + } // namespace chrome_frame_test #endif // CHROME_FRAME_CHROMETAB_UNITTESTS_CF_TEST_UTILS_H_ |