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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.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
Index: ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
diff --git a/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc b/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
index 90fa7c20420cf43d131ecf4b99eeaab35ba400a9..f568752d19a4ee8129dcb681eec721bcbc00cfe1 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
+++ b/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
@@ -8,9 +8,9 @@
#undef None
#undef Bool
-#include "base/message_loop/message_loop.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/test/scoped_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/dragdrop/file_info.h"
#include "ui/events/platform/x11/x11_event_source_glib.h"
@@ -25,7 +25,10 @@ namespace ui {
class OSExchangeDataProviderAuraX11Test : public testing::Test {
public:
- OSExchangeDataProviderAuraX11Test() : event_source(gfx::GetXDisplay()) {}
+ OSExchangeDataProviderAuraX11Test()
+ : scoped_task_environment_(
+ base::test::ScopedTaskEnvironment::MainThreadType::UI),
+ event_source(gfx::GetXDisplay()) {}
void AddURLList(const std::string& list_contents) {
std::string contents_copy = list_contents;
@@ -38,7 +41,7 @@ class OSExchangeDataProviderAuraX11Test : public testing::Test {
}
protected:
- base::MessageLoopForUI message_loop;
+ base::test::ScopedTaskEnvironment scoped_task_environment_;
X11EventSourceGlib event_source;
ui::OSExchangeDataProviderAuraX11 provider;
};
« no previous file with comments | « content/browser/compositor/software_output_device_ozone_unittest.cc ('k') | ui/compositor/test/test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698