Chromium Code Reviews| Index: base/threading/sequenced_worker_pool_unittest.cc |
| diff --git a/base/threading/sequenced_worker_pool_unittest.cc b/base/threading/sequenced_worker_pool_unittest.cc |
| index 9186b769e29a9f4e7e8ebc55683709aee285c0c6..61f7f6738656cf4bcb0bcb8dd7a2a407c52dbbf4 100644 |
| --- a/base/threading/sequenced_worker_pool_unittest.cc |
| +++ b/base/threading/sequenced_worker_pool_unittest.cc |
| @@ -17,6 +17,9 @@ |
| #include "base/stl_util.h" |
| #include "base/synchronization/condition_variable.h" |
| #include "base/synchronization/lock.h" |
| +#include "base/task_scheduler/scheduler_worker_pool_params.h" |
| +#include "base/task_scheduler/task_scheduler.h" |
| +#include "base/task_scheduler/task_scheduler_impl.h" |
| #include "base/test/sequenced_task_runner_test_template.h" |
| #include "base/test/sequenced_worker_pool_owner.h" |
| #include "base/test/task_runner_test_template.h" |
| @@ -231,11 +234,38 @@ class TestTracker : public base::RefCountedThreadSafe<TestTracker> { |
| size_t started_events_; |
| }; |
| -class SequencedWorkerPoolTest : public testing::Test { |
| +enum class SequencedWorkerPoolRedirection { NONE, TO_TASK_SCHEDULER }; |
| + |
| +class SequencedWorkerPoolTest |
| + : public testing::TestWithParam<SequencedWorkerPoolRedirection> { |
| public: |
| SequencedWorkerPoolTest() |
| - : tracker_(new TestTracker) { |
| - ResetPool(); |
| + : pool_owner_(new SequencedWorkerPoolOwner(kNumWorkerThreads, "test")), |
| + tracker_(new TestTracker) {} |
| + |
| + void SetUp() override { |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) { |
| + std::vector<SchedulerWorkerPoolParams> worker_pool_params; |
| + worker_pool_params.emplace_back( |
| + "SchedulerWorkerPoolName", ThreadPriority::NORMAL, |
| + SchedulerWorkerPoolParams::IORestriction::ALLOWED, kNumWorkerThreads, |
| + TimeDelta::Max()); |
| + TaskScheduler::CreateAndSetDefaultTaskScheduler( |
| + std::move(worker_pool_params), |
| + base::Bind([](const TaskTraits&) -> size_t { return 0U; })); |
|
danakj
2016/09/16 20:29:36
do you need the -> size_t here? something like it
fdoray
2016/09/16 21:21:31
doesn't compile without the -> size_t
|
| + SequencedWorkerPool::ResetRedirectToTaskSchedulerForProcessForTesting(); |
| + SequencedWorkerPool::RedirectToTaskSchedulerForProcess(); |
| + } |
| + } |
| + |
| + void TearDown() override { |
| + // Destroy the SequencedWorkerPool before the TaskScheduler. |
|
danakj
2016/09/16 20:29:36
say why instead of just what
fdoray
2016/09/16 21:21:31
Done.
|
| + DeletePool(); |
| + |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) { |
| + SequencedWorkerPool::ResetRedirectToTaskSchedulerForProcessForTesting(); |
| + DeleteTaskScheduler(); |
| + } |
| } |
| const scoped_refptr<SequencedWorkerPool>& pool() { |
| @@ -245,8 +275,15 @@ class SequencedWorkerPoolTest : public testing::Test { |
| // Destroys the SequencedWorkerPool instance, blocking until it is fully shut |
| // down, and creates a new instance. |
|
danakj
2016/09/16 20:29:36
comment wrong now
fdoray
2016/09/16 21:21:31
Done.
|
| - void ResetPool() { |
| - pool_owner_.reset(new SequencedWorkerPoolOwner(kNumWorkerThreads, "test")); |
| + void DeletePool() { pool_owner_ = nullptr; } |
|
gab
2016/09/16 20:16:10
pool_owner_.reset()
fdoray
2016/09/16 21:21:31
Done.
|
| + |
| + // Destroys and unregisters the registered TaskScheduler, if any. |
| + void DeleteTaskScheduler() { |
| + if (TaskScheduler::GetInstance()) { |
| + static_cast<internal::TaskSchedulerImpl*>(TaskScheduler::GetInstance()) |
| + ->JoinForTesting(); |
|
gab
2016/09/16 20:16:10
Should we add TaskScheduler::JoinForTesting?
fdoray
2016/09/16 21:21:31
I don't think we want every test that needs a Task
|
| + TaskScheduler::SetInstance(nullptr); |
| + } |
| } |
| void SetWillWaitForShutdownCallback(const Closure& callback) { |
| @@ -326,13 +363,12 @@ class DeletionHelper : public base::RefCountedThreadSafe<DeletionHelper> { |
| DISALLOW_COPY_AND_ASSIGN(DeletionHelper); |
| }; |
| -void HoldPoolReference(const scoped_refptr<base::SequencedWorkerPool>& pool, |
| - const scoped_refptr<DeletionHelper>& helper) { |
| +void ShouldNotRun(const scoped_refptr<DeletionHelper>& helper) { |
| ADD_FAILURE() << "Should never run"; |
| } |
| -// Tests that delayed tasks are deleted upon shutdown of the pool. |
| -TEST_F(SequencedWorkerPoolTest, DelayedTaskDuringShutdown) { |
| +// Tests that shutdown does not wait for delayed tasks. |
| +TEST_P(SequencedWorkerPoolTest, DelayedTaskDuringShutdown) { |
| // Post something to verify the pool is started up. |
| EXPECT_TRUE(pool()->PostTask( |
| FROM_HERE, base::Bind(&TestTracker::FastTask, tracker(), 1))); |
| @@ -344,8 +380,7 @@ TEST_F(SequencedWorkerPoolTest, DelayedTaskDuringShutdown) { |
| // Post something that shouldn't run. |
| EXPECT_TRUE(pool()->PostDelayedTask( |
| FROM_HERE, |
| - base::Bind(&HoldPoolReference, |
| - pool(), |
| + base::Bind(&ShouldNotRun, |
| make_scoped_refptr(new DeletionHelper(deleted_flag))), |
| TestTimeouts::action_timeout())); |
| @@ -353,20 +388,25 @@ TEST_F(SequencedWorkerPoolTest, DelayedTaskDuringShutdown) { |
| ASSERT_EQ(1u, completion_sequence.size()); |
| ASSERT_EQ(1, completion_sequence[0]); |
| - // Shutdown is asynchronous, so use ResetPool() to block until the pool is |
| - // fully destroyed (and thus shut down). |
| - ResetPool(); |
| + // Shutdown the pool. |
| + pool()->Shutdown(); |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + TaskScheduler::GetInstance()->Shutdown(); |
| // Verify that we didn't block until the task was due. |
| ASSERT_LT(base::Time::Now() - posted_at, TestTimeouts::action_timeout()); |
| - // Verify that the deferred task has not only not run, but has also been |
| - // destroyed. |
| - ASSERT_TRUE(deleted_flag->data); |
| + // Verify that the delayed task is deleted when the SequencedWorkerPool (and |
| + // the TaskScheduler when applicable) are deleted. |
| + EXPECT_FALSE(deleted_flag->data); |
| + DeletePool(); |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + DeleteTaskScheduler(); |
| + EXPECT_TRUE(deleted_flag->data); |
| } |
| // Tests that same-named tokens have the same ID. |
| -TEST_F(SequencedWorkerPoolTest, NamedTokens) { |
| +TEST_P(SequencedWorkerPoolTest, NamedTokens) { |
| const std::string name1("hello"); |
| SequencedWorkerPool::SequenceToken token1 = |
| pool()->GetNamedSequenceToken(name1); |
| @@ -394,7 +434,7 @@ TEST_F(SequencedWorkerPoolTest, NamedTokens) { |
| // Tests that posting a bunch of tasks (many more than the number of worker |
| // threads) runs them all. |
| -TEST_F(SequencedWorkerPoolTest, LotsOfTasks) { |
| +TEST_P(SequencedWorkerPoolTest, LotsOfTasks) { |
| pool()->PostWorkerTask(FROM_HERE, |
| base::Bind(&TestTracker::SlowTask, tracker(), 0)); |
| @@ -412,7 +452,7 @@ TEST_F(SequencedWorkerPoolTest, LotsOfTasks) { |
| // worker threads) to two pools simultaneously runs them all twice. |
| // This test is meant to shake out any concurrency issues between |
| // pools (like histograms). |
| -TEST_F(SequencedWorkerPoolTest, LotsOfTasksTwoPools) { |
| +TEST_P(SequencedWorkerPoolTest, LotsOfTasksTwoPools) { |
| SequencedWorkerPoolOwner pool1(kNumWorkerThreads, "test1"); |
| SequencedWorkerPoolOwner pool2(kNumWorkerThreads, "test2"); |
| @@ -435,7 +475,7 @@ TEST_F(SequencedWorkerPoolTest, LotsOfTasksTwoPools) { |
| // Test that tasks with the same sequence token are executed in order but don't |
| // affect other tasks. |
| -TEST_F(SequencedWorkerPoolTest, Sequence) { |
| +TEST_P(SequencedWorkerPoolTest, Sequence) { |
| // Fill all the worker threads except one. |
| const size_t kNumBackgroundTasks = kNumWorkerThreads - 1; |
| ThreadBlocker background_blocker; |
| @@ -496,7 +536,7 @@ TEST_F(SequencedWorkerPoolTest, Sequence) { |
| // Tests that any tasks posted after Shutdown are ignored. |
| // Disabled for flakiness. See http://crbug.com/166451. |
| -TEST_F(SequencedWorkerPoolTest, DISABLED_IgnoresAfterShutdown) { |
| +TEST_P(SequencedWorkerPoolTest, DISABLED_IgnoresAfterShutdown) { |
| // Start tasks to take all the threads and block them. |
| EnsureAllWorkersCreated(); |
| ThreadBlocker blocker; |
| @@ -543,7 +583,14 @@ TEST_F(SequencedWorkerPoolTest, DISABLED_IgnoresAfterShutdown) { |
| ASSERT_EQ(old_has_work_call_count, has_work_call_count()); |
| } |
| -TEST_F(SequencedWorkerPoolTest, AllowsAfterShutdown) { |
| +TEST_P(SequencedWorkerPoolTest, AllowsAfterShutdown) { |
| + // As tested by TaskSchedulerTaskTrackerTest.WillPostAndRunDuringShutdown, |
| + // TaskScheduler allows tasks to be posted during shutdown. However, since it |
| + // doesn't provide a way to run a callback from inside its Shutdown() method, |
| + // it would be hard to make this test work with redirection enabled. |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + return; |
| + |
| // Test that <n> new blocking tasks are allowed provided they're posted |
| // by a running tasks. |
| EnsureAllWorkersCreated(); |
| @@ -589,8 +636,15 @@ TEST_F(SequencedWorkerPoolTest, AllowsAfterShutdown) { |
| // Tests that blocking tasks can still be posted during shutdown, as long as |
| // the task is not being posted within the context of a running task. |
| -TEST_F(SequencedWorkerPoolTest, |
| +TEST_P(SequencedWorkerPoolTest, |
| AllowsBlockingTasksDuringShutdownOutsideOfRunningTask) { |
| + // As tested by TaskSchedulerTaskTrackerTest.WillPostAndRunDuringShutdown, |
| + // TaskScheduler allows tasks to be posted during shutdown. However, since it |
| + // doesn't provide a way to run a callback from inside its Shutdown() method, |
| + // it would be hard to make this test work with redirection enabled. |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + return; |
| + |
| EnsureAllWorkersCreated(); |
| ThreadBlocker blocker; |
| @@ -617,7 +671,16 @@ TEST_F(SequencedWorkerPoolTest, |
| // Tests that unrun tasks are discarded properly according to their shutdown |
| // mode. |
| -TEST_F(SequencedWorkerPoolTest, DiscardOnShutdown) { |
| +TEST_P(SequencedWorkerPoolTest, DiscardOnShutdown) { |
| + // As tested by |
| + // TaskSchedulerTaskTrackerTest.WillPostBeforeShutdownRunDuringShutdown, on |
| + // shutdown, the TaskScheduler discards SKIP_ON_SHUTDOWN and |
| + // CONTINUE_ON_SHUTDOWN tasks and runs BLOCK_SHUTDOWN tasks. However, since it |
| + // doesn't provide a way to run a callback from inside its Shutdown() method, |
| + // it would be hard to make this test work with redirection enabled. |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + return; |
| + |
| // Start tasks to take all the threads and block them. |
| EnsureAllWorkersCreated(); |
| ThreadBlocker blocker; |
| @@ -661,7 +724,7 @@ TEST_F(SequencedWorkerPoolTest, DiscardOnShutdown) { |
| } |
| // Tests that CONTINUE_ON_SHUTDOWN tasks don't block shutdown. |
| -TEST_F(SequencedWorkerPoolTest, ContinueOnShutdown) { |
| +TEST_P(SequencedWorkerPoolTest, ContinueOnShutdown) { |
| scoped_refptr<TaskRunner> runner(pool()->GetTaskRunnerWithShutdownBehavior( |
| SequencedWorkerPool::CONTINUE_ON_SHUTDOWN)); |
| scoped_refptr<SequencedTaskRunner> sequenced_runner( |
| @@ -688,6 +751,8 @@ TEST_F(SequencedWorkerPoolTest, ContinueOnShutdown) { |
| // This should not block. If this test hangs, it means it failed. |
| pool()->Shutdown(); |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + TaskScheduler::GetInstance()->Shutdown(); |
| // The task should not have completed yet. |
| EXPECT_EQ(0u, tracker()->WaitUntilTasksComplete(0).size()); |
| @@ -709,7 +774,16 @@ TEST_F(SequencedWorkerPoolTest, ContinueOnShutdown) { |
| // Tests that SKIP_ON_SHUTDOWN tasks that have been started block Shutdown |
| // until they stop, but tasks not yet started do not. |
| -TEST_F(SequencedWorkerPoolTest, SkipOnShutdown) { |
| +TEST_P(SequencedWorkerPoolTest, SkipOnShutdown) { |
| + // As tested by |
| + // TaskSchedulerTaskTrackerTest.WillPostAndRunLongTaskBeforeShutdown and |
| + // TaskSchedulerTaskTrackerTest.WillPostBeforeShutdownRunDuringShutdown, the |
| + // TaskScheduler correctly handles SKIP_ON_SHUTDOWN tasks. However, since it |
| + // doesn't provide a way to run a callback from inside its Shutdown() method, |
| + // it would be hard to make this test work with redirection enabled. |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + return; |
| + |
| // Start tasks to take all the threads and block them. |
| EnsureAllWorkersCreated(); |
| ThreadBlocker blocker; |
| @@ -760,7 +834,11 @@ TEST_F(SequencedWorkerPoolTest, SkipOnShutdown) { |
| // Ensure all worker threads are created, and then trigger a spurious |
| // work signal. This shouldn't cause any other work signals to be |
| // triggered. This is a regression test for http://crbug.com/117469. |
| -TEST_F(SequencedWorkerPoolTest, SpuriousWorkSignal) { |
| +TEST_P(SequencedWorkerPoolTest, SpuriousWorkSignal) { |
| + // This test doesn't apply when tasks are redirected to the TaskScheduler. |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + return; |
| + |
| EnsureAllWorkersCreated(); |
| int old_has_work_call_count = has_work_call_count(); |
| pool()->SignalHasWorkForTesting(); |
| @@ -770,6 +848,7 @@ TEST_F(SequencedWorkerPoolTest, SpuriousWorkSignal) { |
| } |
| void VerifyRunsTasksOnCurrentThread( |
| + SequencedWorkerPoolRedirection redirection, |
| scoped_refptr<TaskRunner> test_positive_task_runner, |
| scoped_refptr<TaskRunner> test_negative_task_runner, |
| SequencedWorkerPool* pool, |
| @@ -777,12 +856,18 @@ void VerifyRunsTasksOnCurrentThread( |
| EXPECT_TRUE(test_positive_task_runner->RunsTasksOnCurrentThread()); |
| EXPECT_FALSE(test_negative_task_runner->RunsTasksOnCurrentThread()); |
| EXPECT_TRUE(pool->RunsTasksOnCurrentThread()); |
| - EXPECT_FALSE(unused_pool->RunsTasksOnCurrentThread()); |
| + |
| + // Tasks posted to different SequencedWorkerPools may run on the same |
| + // TaskScheduler threads. |
| + if (redirection == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + EXPECT_TRUE(unused_pool->RunsTasksOnCurrentThread()); |
| + else |
| + EXPECT_FALSE(unused_pool->RunsTasksOnCurrentThread()); |
| } |
| // Verify correctness of the RunsTasksOnCurrentThread() method on |
| // SequencedWorkerPool and on TaskRunners it returns. |
| -TEST_F(SequencedWorkerPoolTest, RunsTasksOnCurrentThread) { |
| +TEST_P(SequencedWorkerPoolTest, RunsTasksOnCurrentThread) { |
| const scoped_refptr<SequencedTaskRunner> sequenced_task_runner_1 = |
| pool()->GetSequencedTaskRunner(SequencedWorkerPool::GetSequenceToken()); |
| const scoped_refptr<SequencedTaskRunner> sequenced_task_runner_2 = |
| @@ -805,26 +890,28 @@ TEST_F(SequencedWorkerPoolTest, RunsTasksOnCurrentThread) { |
| // - pool()->RunsTasksOnCurrentThread() returns true. |
| // - unused_pool_owner.pool()->RunsTasksOnCurrentThread() returns false. |
| sequenced_task_runner_1->PostTask( |
| - FROM_HERE, |
| - base::Bind(&VerifyRunsTasksOnCurrentThread, sequenced_task_runner_1, |
| - sequenced_task_runner_2, base::RetainedRef(pool()), |
| - base::RetainedRef(unused_pool_owner.pool()))); |
| + FROM_HERE, base::Bind(&VerifyRunsTasksOnCurrentThread, GetParam(), |
| + sequenced_task_runner_1, sequenced_task_runner_2, |
| + base::RetainedRef(pool()), |
| + base::RetainedRef(unused_pool_owner.pool()))); |
| // From a task posted to |unsequenced_task_runner|: |
| // - unsequenced_task_runner->RunsTasksOnCurrentThread() returns true. |
| // - sequenced_task_runner_1->RunsTasksOnCurrentThread() returns false. |
| // - pool()->RunsTasksOnCurrentThread() returns true. |
| // - unused_pool_owner.pool()->RunsTasksOnCurrentThread() returns false. |
| unsequenced_task_runner->PostTask( |
| - FROM_HERE, |
| - base::Bind(&VerifyRunsTasksOnCurrentThread, unsequenced_task_runner, |
| - sequenced_task_runner_1, base::RetainedRef(pool()), |
| - base::RetainedRef(unused_pool_owner.pool()))); |
| + FROM_HERE, base::Bind(&VerifyRunsTasksOnCurrentThread, GetParam(), |
| + unsequenced_task_runner, sequenced_task_runner_1, |
| + base::RetainedRef(pool()), |
| + base::RetainedRef(unused_pool_owner.pool()))); |
| } |
| // Checks that tasks are destroyed in the right context during shutdown. If a |
| // task is destroyed while SequencedWorkerPool's global lock is held, |
| // SequencedWorkerPool might deadlock. |
| -TEST_F(SequencedWorkerPoolTest, AvoidsDeadlockOnShutdown) { |
| +TEST_P(SequencedWorkerPoolTest, AvoidsDeadlockOnShutdown) { |
| + // Note: The TaskScheduler does not destroy tasks on shutdown. |
|
gab
2016/09/16 20:16:10
Why does it pass in redirection then?! Are the Des
fdoray
2016/09/16 21:21:31
DestructionDeadlockChecker verifies that using the
|
| + |
| for (int i = 0; i < 4; ++i) { |
| scoped_refptr<DestructionDeadlockChecker> checker( |
| new DestructionDeadlockChecker(pool())); |
| @@ -838,8 +925,14 @@ TEST_F(SequencedWorkerPoolTest, AvoidsDeadlockOnShutdown) { |
| // Similar to the test AvoidsDeadlockOnShutdown, but there are now also |
| // sequenced, blocking tasks in the queue during shutdown. |
| -TEST_F(SequencedWorkerPoolTest, |
| +TEST_P(SequencedWorkerPoolTest, |
| AvoidsDeadlockOnShutdownWithSequencedBlockingTasks) { |
| + // This test can't run when tasks are redirected to TaskScheduler because it |
| + // doesn't provide a way to limit the number of BLOCK_SHUTDOWN tasks posted |
| + // during shutdown. |
|
gab
2016/09/16 20:16:10
I don't understand what this test has to do with t
fdoray
2016/09/16 21:21:31
Clarified the comment.
|
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + return; |
| + |
| const std::string sequence_token_name("name"); |
| for (int i = 0; i < 4; ++i) { |
| scoped_refptr<DestructionDeadlockChecker> checker( |
| @@ -857,7 +950,12 @@ TEST_F(SequencedWorkerPoolTest, |
| } |
| // Verify that FlushForTesting works as intended. |
| -TEST_F(SequencedWorkerPoolTest, FlushForTesting) { |
| +TEST_P(SequencedWorkerPoolTest, FlushForTesting) { |
| + // FlushForTesting() can't be called when tasks are redirected to the |
| + // TaskScheduler. |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + return; |
| + |
| // Should be fine to call on a new instance. |
| pool()->FlushForTesting(); |
| @@ -912,7 +1010,15 @@ void CheckWorkerPoolAndSequenceToken( |
| } // namespace |
| -TEST_F(SequencedWorkerPoolTest, GetWorkerPoolAndSequenceTokenForCurrentThread) { |
| +TEST_P(SequencedWorkerPoolTest, GetWorkerPoolAndSequenceTokenForCurrentThread) { |
| + // GetSequenceTokenForCurrentThread() and GetWorkerPoolForCurrentThread() |
| + // respectively return an invalid token and nullptr from a task posted to a |
| + // SequencedWorkerPool when redirection to TaskScheduler is enabled. These |
| + // methods are only used from SequencedTaskRunnerHandle and |
| + // SequenceCheckerImpl which work fine in TaskScheduler. |
| + if (GetParam() == SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER) |
| + return; |
| + |
| EnsureAllWorkersCreated(); |
| // The current thread should have neither a worker pool nor a sequence token. |
| @@ -939,7 +1045,7 @@ TEST_F(SequencedWorkerPoolTest, GetWorkerPoolAndSequenceTokenForCurrentThread) { |
| pool()->FlushForTesting(); |
| } |
| -TEST_F(SequencedWorkerPoolTest, ShutsDownCleanWithContinueOnShutdown) { |
| +TEST_P(SequencedWorkerPoolTest, ShutsDownCleanWithContinueOnShutdown) { |
| scoped_refptr<SequencedTaskRunner> task_runner = |
| pool()->GetSequencedTaskRunnerWithShutdownBehavior( |
| pool()->GetSequenceToken(), |
| @@ -949,6 +1055,15 @@ TEST_F(SequencedWorkerPoolTest, ShutsDownCleanWithContinueOnShutdown) { |
| pool()->Shutdown(); |
| } |
| +INSTANTIATE_TEST_CASE_P( |
| + NoRedirection, |
| + SequencedWorkerPoolTest, |
| + ::testing::Values(SequencedWorkerPoolRedirection::NONE)); |
| +INSTANTIATE_TEST_CASE_P( |
| + RedirectionToTaskScheduler, |
| + SequencedWorkerPoolTest, |
| + ::testing::Values(SequencedWorkerPoolRedirection::TO_TASK_SCHEDULER)); |
| + |
| class SequencedWorkerPoolTaskRunnerTestDelegate { |
| public: |
| SequencedWorkerPoolTaskRunnerTestDelegate() {} |