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

Unified Diff: ui/compositor/test/test_suite.cc

Issue 2860703002: Use TaskScheduler instead of WorkerPool in x11_hotplug_event_handler.cc. (Closed)
Patch Set: Add ScopedTaskEnvironment in SoftwareOutputDeviceOzoneTest Created 3 years, 7 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/compositor/test/test_suite.h ('k') | ui/events/platform/x11/x11_hotplug_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/test_suite.cc
diff --git a/ui/compositor/test/test_suite.cc b/ui/compositor/test/test_suite.cc
index c315a574f741d6d49256369dce06ae16a6c3ee42..b9ec38bcafe94222bbfea60a1979a65b84fdfa60 100644
--- a/ui/compositor/test/test_suite.cc
+++ b/ui/compositor/test/test_suite.cc
@@ -5,7 +5,8 @@
#include "ui/compositor/test/test_suite.h"
#include "base/command_line.h"
-#include "base/message_loop/message_loop.h"
+#include "base/memory/ptr_util.h"
+#include "base/test/scoped_task_environment.h"
#include "build/build_config.h"
#include "ui/compositor/compositor.h"
#include "ui/compositor/compositor_switches.h"
@@ -43,11 +44,13 @@ void CompositorTestSuite::Initialize() {
display::win::SetDefaultDeviceScaleFactor(1.0f);
#endif
- message_loop_.reset(new base::MessageLoopForUI);
+ scoped_task_environment_ =
+ base::MakeUnique<base::test::ScopedTaskEnvironment>(
+ base::test::ScopedTaskEnvironment::MainThreadType::UI);
}
void CompositorTestSuite::Shutdown() {
- message_loop_.reset();
+ scoped_task_environment_.reset();
base::TestSuite::Shutdown();
}
« no previous file with comments | « ui/compositor/test/test_suite.h ('k') | ui/events/platform/x11/x11_hotplug_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698