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

Unified Diff: content/browser/renderer_host/text_input_client_mac_unittest.mm

Issue 2840593002: Remove usage of ScopedTaskScheduler. (Closed)
Patch Set: revert_client_cert_resolver_and_auto_connect_handler 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698