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

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

Issue 2499303003: Views:: Use TestClipboard in ScopedViewsTestHelper. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: ui/views/test/scoped_views_test_helper.cc
diff --git a/ui/views/test/scoped_views_test_helper.cc b/ui/views/test/scoped_views_test_helper.cc
index 1d2e2c2144c21c160e78c9f9a3946b5fc23c47fa..1cfaabe7839040b50563e03d1054fd49a500e7c1 100644
--- a/ui/views/test/scoped_views_test_helper.cc
+++ b/ui/views/test/scoped_views_test_helper.cc
@@ -8,7 +8,9 @@
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "ui/base/clipboard/clipboard.h"
#include "ui/base/ime/input_method_initializer.h"
+#include "ui/base/test/test_clipboard.h"
#include "ui/compositor/test/context_factories_for_test.h"
#include "ui/views/test/platform_test_helper.h"
#include "ui/views/test/test_views_delegate.h"
@@ -58,9 +60,11 @@ ScopedViewsTestHelper::ScopedViewsTestHelper(
#endif
ui::InitializeInputMethodForTesting();
+ ui::TestClipboard::CreateForCurrentThread();
karandeepb 2016/11/16 04:16:15 sky@: Should this go in ViewsTestBase or is this f
}
ScopedViewsTestHelper::~ScopedViewsTestHelper() {
+ ui::Clipboard::DestroyClipboardForCurrentThread();
ui::ShutdownInputMethodForTesting();
test_helper_->TearDown();
test_helper_.reset();

Powered by Google App Engine
This is Rietveld 408576698