Home
last modified time | relevance | path

Searched refs:TestTaskFactory (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/base/task_scheduler/
Dtest_task_factory.cc21 TestTaskFactory::TestTaskFactory(scoped_refptr<TaskRunner> task_runner, in TestTaskFactory() function in base::internal::test::TestTaskFactory
31 TestTaskFactory::~TestTaskFactory() { in ~TestTaskFactory()
35 bool TestTaskFactory::PostTask(PostNestedTask post_nested_task, in PostTask()
39 FROM_HERE, BindOnce(&TestTaskFactory::RunTaskCallback, Unretained(this), in PostTask()
44 void TestTaskFactory::WaitForAllTasksToRun() const { in WaitForAllTasksToRun()
50 void TestTaskFactory::RunTaskCallback(size_t task_index, in RunTaskCallback()
Dtest_task_factory.h37 class TestTaskFactory {
46 TestTaskFactory(scoped_refptr<TaskRunner> task_runner,
49 ~TestTaskFactory();
92 DISALLOW_COPY_AND_ASSIGN(TestTaskFactory);
Dscheduler_worker_pool_unittest.cc55 using PostNestedTask = test::TestTaskFactory::PostNestedTask;
75 const test::TestTaskFactory* factory() const { return &factory_; } in factory()
88 test::TestTaskFactory factory_;
Dscheduler_worker_pool_impl_unittest.cc161 using PostNestedTask = test::TestTaskFactory::PostNestedTask;
177 const test::TestTaskFactory* factory() const { return &factory_; } in factory()
191 test::TestTaskFactory factory_;
227 std::vector<std::unique_ptr<test::TestTaskFactory>> blocked_task_factories; in TEST_P()
229 blocked_task_factories.push_back(std::make_unique<test::TestTaskFactory>( in TEST_P()
240 test::TestTaskFactory short_task_factory( in TEST_P()
261 std::vector<std::unique_ptr<test::TestTaskFactory>> factories; in TEST_P()
263 factories.push_back(std::make_unique<test::TestTaskFactory>( in TEST_P()
494 std::vector<std::unique_ptr<test::TestTaskFactory>> factories; in TEST_F()
496 factories.push_back(std::make_unique<test::TestTaskFactory>( in TEST_F()
Dtask_scheduler_impl_unittest.cc175 factory_.PostTask(test::TestTaskFactory::PostNestedTask::NO, in Run()
181 test::TestTaskFactory factory_;
300 test::TestTaskFactory factory( in TEST_P()
308 factory.PostTask(test::TestTaskFactory::PostNestedTask::NO, in TEST_P()