diff options
-rw-r--r-- | views/view_unittest.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/view_unittest.cc b/views/view_unittest.cc index 617d25c..ec9790a 100644 --- a/views/view_unittest.cc +++ b/views/view_unittest.cc @@ -52,6 +52,12 @@ class ViewTest : public testing::Test { #endif } + virtual void TearDown() { + // Flush the message loop because we have pending release tasks + // and these tasks if un-executed would upset Valgrind. + RunPendingMessages(); + } + Widget* CreateWidget() { #if defined(OS_WIN) return new WidgetWin(); |