Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: ui/views/test/views_test_base.cc

Issue 10911233: Now that unit_tests are clean, fix views_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/views_test_base.cc
diff --git a/ui/views/test/views_test_base.cc b/ui/views/test/views_test_base.cc
index 67c49c44ed534e81a5c4ce3bc5b8005d14824c45..3d3fe6482413544159d1b522ad8745c3217c2848 100644
--- a/ui/views/test/views_test_base.cc
+++ b/ui/views/test/views_test_base.cc
@@ -5,6 +5,7 @@
#include "ui/views/test/views_test_base.h"
#include "base/run_loop.h"
+#include "ui/base/clipboard/clipboard.h"
#if defined(USE_AURA)
#include "ui/aura/env.h"
@@ -37,6 +38,8 @@ void ViewsTestBase::SetUp() {
}
void ViewsTestBase::TearDown() {
+ ui::Clipboard::DestroyClipboardForCurrentThread();
+
// Flush the message loop because we have pending release tasks
// and these tasks if un-executed would upset Valgrind.
RunPendingMessages();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698