summaryrefslogtreecommitdiffstats
path: root/chrome/test/browser_with_test_window_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/browser_with_test_window_test.cc')
-rw-r--r--chrome/test/browser_with_test_window_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/browser_with_test_window_test.cc b/chrome/test/browser_with_test_window_test.cc
index 3e3fb93..8dede7c 100644
--- a/chrome/test/browser_with_test_window_test.cc
+++ b/chrome/test/browser_with_test_window_test.cc
@@ -12,7 +12,9 @@
BrowserWithTestWindowTest::BrowserWithTestWindowTest()
: rph_factory_(),
rvh_factory_(&rph_factory_) {
+#if defined(OS_WIN)
OleInitialize(NULL);
+#endif
}
void BrowserWithTestWindowTest::SetUp() {
@@ -38,7 +40,9 @@ BrowserWithTestWindowTest::~BrowserWithTestWindowTest() {
MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask);
MessageLoop::current()->Run();
+#if defined(OS_WIN)
OleUninitialize();
+#endif
}
TestRenderViewHost* BrowserWithTestWindowTest::TestRenderViewHostForTab(