diff options
Diffstat (limited to 'views/test/views_test_base.h')
-rw-r--r-- | views/test/views_test_base.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/views/test/views_test_base.h b/views/test/views_test_base.h index d66a1d8..7c45c2e 100644 --- a/views/test/views_test_base.h +++ b/views/test/views_test_base.h @@ -10,33 +10,17 @@ #include "base/message_loop.h" -#if defined(OS_WIN) -#include <ole2.h> -#endif - namespace views { // A base class for views unit test. It creates a message loop necessary // to drive UI events and takes care of OLE initialization for windows. class ViewsTestBase : public testing::Test { public: - ViewsTestBase() { -#if defined(OS_WIN) - OleInitialize(NULL); -#endif - } + ViewsTestBase(); + virtual ~ViewsTestBase(); - virtual ~ViewsTestBase() { -#if defined(OS_WIN) - OleUninitialize(); -#endif - } - - virtual void TearDown() { - // Flush the message loop because we have pending release tasks - // and these tasks if un-executed would upset Valgrind. - RunPendingMessages(); - } + // testing::Test: + virtual void TearDown(); void RunPendingMessages() { message_loop_.RunAllPending(); |