Commit d4d88901 authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

[scheduling] Use ScopedTaskEnvironment instead of MessageLoop in search_engines

MessageLoop will go away, eventually.

BUG=891670

Change-Id: Ifdf986c9fa4b0fd1b6de3c7f907aae9a3672894b
Reviewed-on: https://chromium-review.googlesource.com/c/1352425Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Commit-Queue: Carlos Caballero <carlscab@google.com>
Cr-Commit-Position: refs/heads/master@{#612452}
parent 5c7b5b41
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
#include "base/bind_helpers.h" #include "base/bind_helpers.h"
#include "base/callback.h" #include "base/callback.h"
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "base/single_thread_task_runner.h" #include "base/single_thread_task_runner.h"
#include "base/test/scoped_task_environment.h"
#include "base/threading/thread_task_runner_handle.h" #include "base/threading/thread_task_runner_handle.h"
#include "components/search_engines/template_url_service.h" #include "components/search_engines/template_url_service.h"
#include "components/sync/driver/configure_context.h" #include "components/sync/driver/configure_context.h"
...@@ -80,7 +80,7 @@ class SyncSearchEngineDataTypeControllerTest : public testing::Test, ...@@ -80,7 +80,7 @@ class SyncSearchEngineDataTypeControllerTest : public testing::Test,
base::RunLoop().RunUntilIdle(); base::RunLoop().RunUntilIdle();
} }
base::MessageLoop message_loop_; base::test::ScopedTaskEnvironment task_environment_;
TemplateURLService template_url_service_; TemplateURLService template_url_service_;
SearchEngineDataTypeController search_engine_dtc_; SearchEngineDataTypeController search_engine_dtc_;
syncer::SyncApiComponentFactoryMock profile_sync_factory_; syncer::SyncApiComponentFactoryMock profile_sync_factory_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment