summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/views/focus_manager_unittest.cc2
-rw-r--r--chrome/views/table_view_unittest.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/focus_manager_unittest.cc b/chrome/views/focus_manager_unittest.cc
index 8f0040f..78d02b4 100644
--- a/chrome/views/focus_manager_unittest.cc
+++ b/chrome/views/focus_manager_unittest.cc
@@ -514,6 +514,7 @@ TestViewWindow* FocusManagerTest::GetWindow() {
}
void FocusManagerTest::SetUp() {
+ OleInitialize(NULL);
test_window_ = new TestViewWindow(this);
test_window_->Init();
ShowWindow(test_window_->GetHWND(), SW_SHOW);
@@ -524,6 +525,7 @@ void FocusManagerTest::TearDown() {
// Flush the message loop to make Purify happy.
message_loop_.RunAllPending();
+ OleUninitialize();
}
////////////////////////////////////////////////////////////////////////////////
diff --git a/chrome/views/table_view_unittest.cc b/chrome/views/table_view_unittest.cc
index 2467f04..2e3ab7f 100644
--- a/chrome/views/table_view_unittest.cc
+++ b/chrome/views/table_view_unittest.cc
@@ -137,6 +137,7 @@ class TableViewTest : public testing::Test, ChromeViews::WindowDelegate {
};
void TableViewTest::SetUp() {
+ OleInitialize(NULL);
model_.reset(CreateModel());
std::vector<ChromeViews::TableColumn> columns;
columns.resize(2);
@@ -154,6 +155,7 @@ void TableViewTest::TearDown() {
window_->CloseNow();
// Temporary workaround to avoid leak of RootView::pending_paint_task_.
message_loop_.RunAllPending();
+ OleUninitialize();
}
void TableViewTest::VeriyViewOrder(int first, ...) {