| Index: content/browser/renderer_host/text_input_client_mac_unittest.mm
|
| diff --git a/content/browser/renderer_host/text_input_client_mac_unittest.mm b/content/browser/renderer_host/text_input_client_mac_unittest.mm
|
| index 3bb9df5cab2da2191b84628a2e2ea52a471c1697..8b9fb97a8c572e89ba3c2ff843ec76b8ec7a2664 100644
|
| --- a/content/browser/renderer_host/text_input_client_mac_unittest.mm
|
| +++ b/content/browser/renderer_host/text_input_client_mac_unittest.mm
|
| @@ -8,10 +8,9 @@
|
| #include <stdint.h>
|
|
|
| #include "base/bind.h"
|
| -#include "base/message_loop/message_loop.h"
|
| #include "base/run_loop.h"
|
| #include "base/single_thread_task_runner.h"
|
| -#include "base/test/scoped_task_scheduler.h"
|
| +#include "base/test/scoped_task_environment.h"
|
| #include "base/threading/thread.h"
|
| #include "content/browser/renderer_host/render_process_host_impl.h"
|
| #include "content/browser/renderer_host/render_widget_host_delegate.h"
|
| @@ -47,7 +46,8 @@ class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate {
|
| class TextInputClientMacTest : public testing::Test {
|
| public:
|
| TextInputClientMacTest()
|
| - : task_scheduler_(&message_loop_),
|
| + : scoped_task_environment_(
|
| + base::test::ScopedTaskEnvironment::MainThreadType::UI),
|
| browser_context_(),
|
| process_factory_(),
|
| delegate_(),
|
| @@ -94,10 +94,8 @@ class TextInputClientMacTest : public testing::Test {
|
| private:
|
| friend class ScopedTestingThread;
|
|
|
| - base::MessageLoopForUI message_loop_;
|
| -
|
| // TaskScheduler is used by RenderWidgetHostImpl constructor.
|
| - base::test::ScopedTaskScheduler task_scheduler_;
|
| + base::test::ScopedTaskEnvironment scoped_task_environment_;
|
|
|
| TestBrowserContext browser_context_;
|
|
|
|
|