Commit 7f4fc23d authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

Backport some tests in /printing 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
/printing.

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

This CL was uploaded by git cl split.

R=rbpotter@chromium.org

Bug: 891670
Change-Id: I6077f3d2fb31e4fa16a64be3cf209e25ef2998db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1787179
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#693856}
parent 76caca27
...@@ -147,7 +147,7 @@ TEST_F(PrintingContextTest, PrintAll) { ...@@ -147,7 +147,7 @@ TEST_F(PrintingContextTest, PrintAll) {
if (IsTestCaseDisabled()) if (IsTestCaseDisabled())
return; return;
base::test::TaskEnvironment task_environment; base::test::SingleThreadTaskEnvironment task_environment;
MockPrintingContextWin context(this); MockPrintingContextWin context(this);
context.AskUserForSettings( context.AskUserForSettings(
123, false, false, 123, false, false,
...@@ -162,7 +162,7 @@ TEST_F(PrintingContextTest, Color) { ...@@ -162,7 +162,7 @@ TEST_F(PrintingContextTest, Color) {
if (IsTestCaseDisabled()) if (IsTestCaseDisabled())
return; return;
base::test::TaskEnvironment task_environment; base::test::SingleThreadTaskEnvironment task_environment;
MockPrintingContextWin context(this); MockPrintingContextWin context(this);
context.AskUserForSettings( context.AskUserForSettings(
123, false, false, 123, false, 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