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

[scheduling] Use ScopedTaskEnvironment instead of MessageLoop in unified_consent

MessageLoop will go away, eventually.

BUG=891670

Change-Id: Icbd30eb1886bb00105cd8ae5a8b158ffa9a397ea
Reviewed-on: https://chromium-review.googlesource.com/c/1352427Reviewed-by: default avatarThomas Tangl <tangltom@chromium.org>
Commit-Queue: Carlos Caballero <carlscab@google.com>
Cr-Commit-Position: refs/heads/master@{#614374}
parent 43a377d1
......@@ -6,9 +6,10 @@
#include <map>
#include <memory>
#include "base/run_loop.h"
#include "base/message_loop/message_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_task_environment.h"
#include "build/build_config.h"
#include "components/autofill/core/common/autofill_prefs.h"
#include "components/sync/base/sync_prefs.h"
......@@ -183,7 +184,7 @@ class UnifiedConsentServiceTest : public testing::Test {
}
protected:
base::MessageLoop message_loop_;
base::test::ScopedTaskEnvironment task_environment_;
sync_preferences::TestingPrefServiceSyncable pref_service_;
identity::IdentityTestEnvironment identity_test_environment_;
TestSyncService sync_service_;
......
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