Commit 877cd811 authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

[scheduling] Use ScopedTaskEnvironment instead of MessageLoop in safe_search_api

MessageLoop will go away, eventually.

BUG=891670

Change-Id: Icd3016627e9c59f8e16e7f8031131b17b3d44eaa
Reviewed-on: https://chromium-review.googlesource.com/c/1352765Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Commit-Queue: Carlos Caballero <carlscab@google.com>
Cr-Commit-Position: refs/heads/master@{#611707}
parent e3a05a1d
...@@ -12,9 +12,10 @@ ...@@ -12,9 +12,10 @@
#include "base/callback.h" #include "base/callback.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/message_loop/message_loop.h" #include "base/run_loop.h"
#include "base/stl_util.h" #include "base/stl_util.h"
#include "base/test/scoped_feature_list.h" #include "base/test/scoped_feature_list.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/safe_search_api/stub_url_checker.h" #include "components/safe_search_api/stub_url_checker.h"
#include "net/base/net_errors.h" #include "net/base/net_errors.h"
...@@ -81,7 +82,7 @@ class SafeSearchURLCheckerTest : public testing::Test { ...@@ -81,7 +82,7 @@ class SafeSearchURLCheckerTest : public testing::Test {
} }
size_t next_url_; size_t next_url_;
base::MessageLoop message_loop_; base::test::ScopedTaskEnvironment task_environment_;
StubURLChecker stub_url_checker_; StubURLChecker stub_url_checker_;
std::unique_ptr<URLChecker> checker_; std::unique_ptr<URLChecker> checker_;
}; };
......
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