Commit 72116b7b authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

Backport some tests in /content/renderer/pepper to SingleThreadTaskEnvironment

These tests were previously migrated from single-threaded MessageLoop to
a multi-threaded TaskEnvironment (then named ScopedTaskEnvironment) as
part of crbug.com/891670.

//base OWNERS decided in retrospect that it was better to keep a
single-threaded option for TaskEnvironment and introduced
SingleThreadTaskEnvironment. This CL retrofits that decision for
/content/renderer/pepper.

This CL is a no-op if it passes CQ.

This CL was uploaded by git cl split.

R=bbudge@chromium.org

Bug: 891670
Change-Id: Idca36fd4180c5e8047274ffb141a074562413e71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1786807
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: default avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#693924}
parent 41503c2f
......@@ -146,7 +146,7 @@ class PepperDeviceEnumerationHostHelperTest : public testing::Test {
ppapi::host::PpapiHost ppapi_host_;
ppapi::host::ResourceHost resource_host_;
PepperDeviceEnumerationHostHelper device_enumeration_;
base::test::TaskEnvironment
base::test::SingleThreadTaskEnvironment
task_environment_; // required for async calls to work.
private:
......
......@@ -82,7 +82,7 @@ class PepperGraphics2DHostTest : public testing::Test {
private:
ppapi::ViewData renderer_view_data_;
std::unique_ptr<PepperGraphics2DHost> host_;
base::test::TaskEnvironment task_environment_;
base::test::SingleThreadTaskEnvironment task_environment_;
MockRendererPpapiHost renderer_ppapi_host_;
ppapi::TestGlobals test_globals_;
};
......
......@@ -83,7 +83,7 @@ class PluginInstanceThrottlerImplTest
int change_callback_calls_;
base::test::TaskEnvironment task_environment_;
base::test::SingleThreadTaskEnvironment task_environment_;
};
TEST_F(PluginInstanceThrottlerImplTest, ThrottleAndUnthrottleByClick) {
......
......@@ -239,7 +239,7 @@ class V8VarConverterTest : public testing::Test {
std::unique_ptr<V8VarConverter> converter_;
private:
base::test::TaskEnvironment
base::test::SingleThreadTaskEnvironment
task_environment_; // Required to receive callbacks.
TestGlobals globals_;
......
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