Commit 730711b6 authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

Remove references of MessageLoopForIO in /net/base/network_change_notifier_fuchsia_unittest.cc

MessageLoopForIO will go away soon use ScopedTaskEnvironment instead.

ScopedTaskEnvironment will per default start a ThreadPool, which should
be fine in most of the cases. If you believe 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=jamesr@chromium.org

Change-Id: I42fce9f4258109d5d381858f28b8ef60961bc4a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1733497Reviewed-by: default avatarWez <wez@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Auto-Submit: Carlos Caballero <carlscab@google.com>
Cr-Commit-Position: refs/heads/master@{#684020}
parent 141ec827
...@@ -11,9 +11,8 @@ ...@@ -11,9 +11,8 @@
#include <vector> #include <vector>
#include "base/bind.h" #include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/message_loop/message_pump_type.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "base/test/scoped_task_environment.h"
#include "base/threading/sequence_bound.h" #include "base/threading/sequence_bound.h"
#include "base/threading/thread.h" #include "base/threading/thread.h"
#include "net/base/ip_address.h" #include "net/base/ip_address.h"
...@@ -259,7 +258,9 @@ class NetworkChangeNotifierFuchsiaTest : public testing::Test { ...@@ -259,7 +258,9 @@ class NetworkChangeNotifierFuchsiaTest : public testing::Test {
} }
protected: protected:
base::MessageLoopForIO message_loop_; base::test::ScopedTaskEnvironment scoped_task_environment_{
base::test::ScopedTaskEnvironment::ThreadingMode::MAIN_THREAD_ONLY,
base::test::ScopedTaskEnvironment::MainThreadType::IO};
testing::StrictMock<MockConnectionTypeObserver> observer_; testing::StrictMock<MockConnectionTypeObserver> observer_;
testing::StrictMock<MockIPAddressObserver> ip_observer_; testing::StrictMock<MockIPAddressObserver> ip_observer_;
fuchsia::netstack::NetstackPtr netstack_ptr_; fuchsia::netstack::NetstackPtr netstack_ptr_;
......
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