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

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

Issue 2840593002: Remove usage of ScopedTaskScheduler. (Closed)
Patch Set: rebase Created 3 years, 8 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..c79e972fa06ed49e0f71339453775aa62a8bdbb5 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,8 +46,7 @@ class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate {
class TextInputClientMacTest : public testing::Test {
public:
TextInputClientMacTest()
- : task_scheduler_(&message_loop_),
- browser_context_(),
+ : browser_context_(),
process_factory_(),
delegate_(),
thread_("TextInputClientMacTestThread") {
@@ -94,10 +92,8 @@ class TextInputClientMacTest : public testing::Test {
private:
friend class ScopedTestingThread;
- base::MessageLoopForUI message_loop_;
gab 2017/05/01 19:05:04 ForUI?
fdoray 2017/05/03 17:38:14 Done.
-
// 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