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

Use ScopedTaskEnvironment instead of MessageLoop

MessageLoop will go away, eventually.

ScopedTaskEnvironment will per default start a ThreadPool, which should
be fine in most of the cases. If you belive your test needs to make sure
that no ThreadPool runs let me know and I will update the patch.

BUG=891670
This CL was uploaded by git cl split.

R=proberge@chromium.org

Change-Id: I011b02c5bd19d68ad0392cc5a008a8396e7f3e69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635513Reviewed-by: default avatarproberge <proberge@chromium.org>
Commit-Queue: proberge <proberge@chromium.org>
Auto-Submit: Carlos Caballero <carlscab@google.com>
Cr-Commit-Position: refs/heads/master@{#664738}
parent 6d1598dc
......@@ -17,12 +17,12 @@
#include "base/callback_forward.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include "base/metrics/histogram_base.h"
#include "base/metrics/histogram_samples.h"
#include "base/metrics/statistics_recorder.h"
#include "base/run_loop.h"
#include "base/stl_util.h"
#include "base/test/scoped_task_environment.h"
#include "base/values.h"
#include "components/prefs/testing_pref_store.h"
#include "mojo/public/cpp/bindings/binding_set.h"
......@@ -634,7 +634,7 @@ class PrefHashFilterTest : public testing::TestWithParam<EnforcementLevel>,
reset_recorded_ = true;
}
base::MessageLoop message_loop_;
base::test::ScopedTaskEnvironment scoped_task_environment_;
MockValidationDelegate mock_validation_delegate_;
mojo::BindingSet<prefs::mojom::ResetOnLoadObserver>
reset_on_load_observer_bindings_;
......
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