| 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;
|
| };
|
|
|