Commit a9e0bfb9 authored by Wez's avatar Wez Committed by Commit Bot

Add missing ScopedTaskEnvironment to stop tests leaking TaskScheduler.

Bug: 875486
Change-Id: I448361ccdb91b83ab71c6eda34066e6e76c278de
Reviewed-on: https://chromium-review.googlesource.com/1185490Reviewed-by: default avatarRaymes Khoury <raymes@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585323}
parent 321904d3
......@@ -3,13 +3,13 @@
// found in the LICENSE file.
#include "content/renderer/pepper/pepper_broker.h"
#include "base/message_loop/message_loop.h"
#if defined(OS_POSIX)
#include <fcntl.h>
#include <sys/socket.h>
#endif // defined(OS_POSIX)
#include "base/test/scoped_task_environment.h"
#include "build/build_config.h"
#include "content/test/mock_render_process.h"
#include "testing/gtest/include/gtest/gtest.h"
......@@ -18,7 +18,10 @@ namespace content {
class PepperBrokerTest : public ::testing::Test {
protected:
base::MessageLoopForIO message_loop_;
PepperBrokerTest()
: task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::IO) {}
base::test::ScopedTaskEnvironment task_environment_;
// We need a render process for ppapi::proxy::ProxyChannel to work.
MockRenderProcess mock_process_;
};
......
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