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

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

Issue 2849423002: Use ScopedTaskEnvironment instead of MessageLoopForUI in ui/aura/test/. (Closed)
Patch Set: add-deps Created 3 years, 8 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 | « ui/snapshot/snapshot_aura_unittest.cc ('k') | ui/views/test/views_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7a8da8d3df52ef8c53406520adf11b710042272a..a69c9ede51c586b4aea208eaca2585ca97f70811 100644
--- a/ui/views/test/scoped_views_test_helper.cc
+++ b/ui/views/test/scoped_views_test_helper.cc
@@ -7,7 +7,6 @@
#include <utility>
#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"
@@ -33,9 +32,8 @@ ScopedViewsTestHelper::ScopedViewsTestHelper(
test_views_delegate_->set_context_factory(context_factory);
test_views_delegate_->set_context_factory_private(context_factory_private);
- test_helper_.reset(ViewsTestHelper::Create(base::MessageLoopForUI::current(),
- context_factory,
- context_factory_private));
+ test_helper_.reset(
+ ViewsTestHelper::Create(context_factory, context_factory_private));
platform_test_helper_->OnTestHelperCreated(test_helper_.get());
test_helper_->SetUp();
« no previous file with comments | « ui/snapshot/snapshot_aura_unittest.cc ('k') | ui/views/test/views_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698