Commit 42257ea3 authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

[scheduling] Use ScopedTaskEnvironment instead of MessageLoop in blacklist

MessageLoop will go away, eventually.

BUG=891670

Change-Id: Ic37cec536c71197401e3fcf479b2b810ed9fff39
Reviewed-on: https://chromium-review.googlesource.com/c/1352323Reviewed-by: default avatarSami Kyöstilä <skyostil@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Carlos Caballero <carlscab@google.com>
Cr-Commit-Position: refs/heads/master@{#612140}
parent 93568e3a
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
#include "base/bind.h" #include "base/bind.h"
#include "base/bind_helpers.h" #include "base/bind_helpers.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/stl_util.h" #include "base/stl_util.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "base/test/metrics/histogram_tester.h" #include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_task_environment.h"
#include "base/test/simple_test_clock.h" #include "base/test/simple_test_clock.h"
#include "base/threading/thread_task_runner_handle.h" #include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h" #include "base/time/time.h"
...@@ -271,7 +271,7 @@ class OptOutBlacklistTest : public testing::Test { ...@@ -271,7 +271,7 @@ class OptOutBlacklistTest : public testing::Test {
} }
protected: protected:
base::MessageLoop loop_; base::test::ScopedTaskEnvironment task_environment_;
// Observer to |black_list_|. // Observer to |black_list_|.
TestOptOutBlacklistDelegate blacklist_delegate_; TestOptOutBlacklistDelegate blacklist_delegate_;
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/files/file_util.h" #include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h" #include "base/files/scoped_temp_dir.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "base/test/metrics/histogram_tester.h" #include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_task_environment.h"
#include "base/test/simple_test_clock.h" #include "base/test/simple_test_clock.h"
#include "base/threading/thread_task_runner_handle.h" #include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h" #include "base/time/time.h"
...@@ -93,7 +93,7 @@ class OptOutStoreSQLTest : public testing::Test { ...@@ -93,7 +93,7 @@ class OptOutStoreSQLTest : public testing::Test {
void TearDown() override { DestroyStore(); } void TearDown() override { DestroyStore(); }
protected: protected:
base::MessageLoop message_loop_; base::test::ScopedTaskEnvironment task_environment_;
// The backing SQL store. // The backing SQL store.
std::unique_ptr<OptOutStoreSQL> store_; std::unique_ptr<OptOutStoreSQL> store_;
......
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