diff options
Diffstat (limited to 'chrome/test/browser_with_test_window_test.cc')
-rw-r--r-- | chrome/test/browser_with_test_window_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/browser_with_test_window_test.cc b/chrome/test/browser_with_test_window_test.cc index fe52160..8dede7c 100644 --- a/chrome/test/browser_with_test_window_test.cc +++ b/chrome/test/browser_with_test_window_test.cc @@ -12,6 +12,9 @@ BrowserWithTestWindowTest::BrowserWithTestWindowTest() : rph_factory_(), rvh_factory_(&rph_factory_) { +#if defined(OS_WIN) + OleInitialize(NULL); +#endif } void BrowserWithTestWindowTest::SetUp() { @@ -36,6 +39,10 @@ BrowserWithTestWindowTest::~BrowserWithTestWindowTest() { MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask); MessageLoop::current()->Run(); + +#if defined(OS_WIN) + OleUninitialize(); +#endif } TestRenderViewHost* BrowserWithTestWindowTest::TestRenderViewHostForTab( |