summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/run_all_unittests.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 21:46:21 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 21:46:21 +0000
commitcb4b1e0d5f1e80938a19fbe837b5a1535cd80b60 (patch)
treef4b556d31ef4d6625370b30e29e99dcb724d319a /chrome_frame/test/run_all_unittests.cc
parent3782951259d8a3ab02c379754e6c55b622d2bc8e (diff)
downloadchromium_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/run_all_unittests.cc')
-rw-r--r--chrome_frame/test/run_all_unittests.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome_frame/test/run_all_unittests.cc b/chrome_frame/test/run_all_unittests.cc
index 6c2abe9..f5f479d 100644
--- a/chrome_frame/test/run_all_unittests.cc
+++ b/chrome_frame/test/run_all_unittests.cc
@@ -18,6 +18,10 @@
// To enable ATL-based code to run in this module
class ChromeFrameUnittestsModule
: public CAtlExeModuleT<ChromeFrameUnittestsModule> {
+ public:
+ static HRESULT InitializeCom() {
+ return CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
+ }
};
ChromeFrameUnittestsModule _AtlModule;