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

[scheduling] Use ScopedTaskEnvironment instead of MessageLoop in cronet

MessageLoop will go away, eventually.

BUG=891670

Change-Id: I56a7b4a0232355696096ae733ecbebc9979ca3b3
Reviewed-on: https://chromium-review.googlesource.com/c/1353880Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Carlos Caballero <carlscab@google.com>
Cr-Commit-Position: refs/heads/master@{#612128}
parent 6e40ab8a
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#include "base/bind.h" #include "base/bind.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "base/test/scoped_task_environment.h"
#include "components/cronet/native/generated/cronet.idl_impl_interface.h" #include "components/cronet/native/generated/cronet.idl_impl_interface.h"
#include "components/cronet/native/include/cronet_c.h" #include "components/cronet/native/include/cronet_c.h"
#include "components/cronet/native/test/test_util.h" #include "components/cronet/native/test/test_util.h"
...@@ -43,7 +43,7 @@ class RunnablesTest : public ::testing::Test { ...@@ -43,7 +43,7 @@ class RunnablesTest : public ::testing::Test {
bool callback_called() const { return callback_called_; } bool callback_called() const { return callback_called_; }
// Provide a message loop for use by TestExecutor instances. // Provide a message loop for use by TestExecutor instances.
base::MessageLoop message_loop_; base::test::ScopedTaskEnvironment task_environment_;
private: private:
bool callback_called_ = false; bool callback_called_ = false;
......
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