Home
last modified time | relevance | path

Searched refs:task_tracker_ (Results 1 – 21 of 21) sorted by relevance

/external/libchrome/base/task/
Dcancelable_task_tracker_unittest.cc36 CancelableTaskTracker task_tracker_; member in base::__anon533752120111::CancelableTaskTrackerTest
88 ignore_result(task_tracker_.PostTask(worker_thread.task_runner().get(), in TEST_F()
92 ignore_result(task_tracker_.PostTaskAndReply( in TEST_F()
97 ignore_result(task_tracker_.NewTrackedTaskId(&is_canceled)); in TEST_F()
112 CancelableTaskTracker::TaskId task_id = task_tracker_.PostTask( in TEST_F()
118 task_tracker_.TryCancel(task_id); in TEST_F()
131 task_tracker_.PostTaskAndReply(test_task_runner.get(), in TEST_F()
137 task_tracker_.TryCancel(task_id); in TEST_F()
150 task_tracker_.PostTaskAndReply(test_task_runner.get(), in TEST_F()
158 task_tracker_.TryCancel(task_id); in TEST_F()
[all …]
/external/libchrome/base/test/
Dsequenced_task_runner_test_template.h119 : task_tracker_(new internal::SequencedTaskTracker()) {} in SequencedTaskRunnerTest()
121 const scoped_refptr<internal::SequencedTaskTracker> task_tracker_; variable
138 this->task_tracker_->PostWrappedNonNestableTask( in TYPED_TEST_P()
142 this->task_tracker_->PostWrappedNonNestableTask(task_runner.get(), in TYPED_TEST_P()
148 EXPECT_TRUE(CheckNonNestableInvariants(this->task_tracker_->GetTaskEvents(), in TYPED_TEST_P()
162 this->task_tracker_->PostWrappedNestableTask( in TYPED_TEST_P()
166 this->task_tracker_->PostWrappedNestableTask(task_runner.get(), Closure()); in TYPED_TEST_P()
171 EXPECT_TRUE(CheckNonNestableInvariants(this->task_tracker_->GetTaskEvents(), in TYPED_TEST_P()
187 this->task_tracker_->PostWrappedDelayedNonNestableTask( in TYPED_TEST_P()
192 this->task_tracker_->WaitForCompletedTasks(kTaskCount); in TYPED_TEST_P()
[all …]
Dtask_runner_test_template.h112 TaskRunnerTest() : task_tracker_(new test::TaskTracker()) {} in TaskRunnerTest()
114 const scoped_refptr<test::TaskTracker> task_tracker_; variable
132 const Closure& ith_task = this->task_tracker_->WrapTask(Closure(), i); in TYPED_TEST_P()
141 this->task_tracker_->GetTaskRunCounts()); in TYPED_TEST_P()
154 const Closure& ith_task = this->task_tracker_->WrapTask(Closure(), i); in TYPED_TEST_P()
162 this->task_tracker_->WaitForCompletedTasks(expected_total_tasks); in TYPED_TEST_P()
166 this->task_tracker_->GetTaskRunCounts()); in TYPED_TEST_P()
202 const Closure& ith_task_runner_task = this->task_tracker_->WrapTask( in TYPED_TEST_P()
206 const Closure& ith_non_task_runner_task = this->task_tracker_->WrapTask( in TYPED_TEST_P()
221 this->task_tracker_->GetTaskRunCounts()); in TYPED_TEST_P()
Dscoped_task_environment.cc121 task_tracker_(new TestTaskTracker()) { in ScopedTaskEnvironment()
137 "ScopedTaskEnvironment", WrapUnique(task_tracker_))); in ScopedTaskEnvironment()
143 CHECK(task_tracker_->DisallowRunTasks()); in ScopedTaskEnvironment()
154 task_tracker_->AllowRunTasks(); in ~ScopedTaskEnvironment()
210 task_tracker_->AllowRunTasks(); in RunUntilIdle()
223 if (!task_tracker_->DisallowRunTasks()) in RunUntilIdle()
250 if (!task_tracker_->HasIncompleteUndelayedTasksForTesting()) in RunUntilIdle()
257 task_tracker_->AllowRunTasks(); in RunUntilIdle()
Dscoped_task_environment.h165 TestTaskTracker* const task_tracker_; variable
/external/libchrome/base/task_scheduler/
Dtask_scheduler_impl.cc36 : task_tracker_(std::move(task_tracker)), in TaskSchedulerImpl()
37 service_thread_(std::make_unique<ServiceThread>(task_tracker_.get())), in TaskSchedulerImpl()
38 single_thread_task_runner_manager_(task_tracker_->GetTrackedRef(), in TaskSchedulerImpl()
60 task_tracker_->GetTrackedRef(), &delayed_task_manager_)); in TaskSchedulerImpl()
113 task_tracker_->set_watch_file_descriptor_message_loop( in Start()
117 task_tracker_->set_service_thread_handle(service_thread_->GetThreadHandle()); in Start()
240 task_tracker_->Shutdown(); in Shutdown()
244 task_tracker_->FlushForTesting(); in FlushForTesting()
248 task_tracker_->FlushAsyncForTesting(std::move(flush_callback)); in FlushAsyncForTesting()
Dscheduler_worker_pool_unittest.cc117 task_tracker_.GetTrackedRef(), &delayed_task_manager_); in CreateWorkerPool()
122 task_tracker_.GetTrackedRef(), &delayed_task_manager_); in CreateWorkerPool()
153 TaskTracker task_tracker_ = {"Test"}; member in base::internal::__anonaa84deaa0111::TaskSchedulerWorkerPoolTest
186 task_tracker_.FlushForTesting(); in TEST_P()
208 task_tracker_.FlushForTesting(); in TEST_P()
216 task_tracker_.Shutdown(); in TEST_P()
227 task_tracker_.Shutdown(); in TEST_P()
317 task_tracker_.FlushForTesting(); in TEST_P()
Dscheduler_single_thread_task_runner_manager_unittest.cc49 task_tracker_.GetTrackedRef(), &delayed_task_manager_); in SetUp()
70 TaskTracker task_tracker_ = {"Test"}; member in base::internal::__anond54e0ab50111::TaskSchedulerSingleThreadTaskRunnerManagerTest
118 task_tracker_.Shutdown(); in TEST_F()
144 task_tracker_.Shutdown(); in TEST_F()
187 task_tracker_.Shutdown(); in TEST_F()
232 task_tracker_.Shutdown(); in TEST_F()
319 task_tracker_.Shutdown(); in TEST_P()
345 task_tracker_.Shutdown(); in TEST_P()
390 task_tracker_.Shutdown(); in TEST_P()
511 task_tracker_.Shutdown(); in TEST_P()
[all …]
Dservice_thread.cc28 : Thread("TaskSchedulerServiceThread"), task_tracker_(task_tracker) {} in ServiceThread()
39 if (task_tracker_ && TaskScheduler::GetInstance()) { in Init()
87 BindOnce(&TaskTracker::RecordLatencyHistogram, Unretained(task_tracker_), in PerformHeartbeatLatencyReport()
Dscheduler_single_thread_task_runner_manager.cc183 task_tracker_(std::move(task_tracker)) {} in SchedulerWorkerCOMDelegate()
252 if (task_tracker_->WillPostTask(&pump_message_task)) { in GetWorkFromWindowsMessageQueue()
265 const TrackedRef<TaskTracker> task_tracker_; member in base::internal::__anon836862560111::SchedulerWorkerCOMDelegate
303 if (!outer_->task_tracker_->WillPostTask(&task)) in PostDelayedTask()
365 sequence = outer_->task_tracker_->WillScheduleSequence( in PostTaskNow()
389 : task_tracker_(std::move(task_tracker)), in SchedulerSingleThreadTaskRunnerManager()
391 DCHECK(task_tracker_); in SchedulerSingleThreadTaskRunnerManager()
559 task_tracker_); in CreateSchedulerWorkerDelegate()
575 priority_hint, std::move(delegate), task_tracker_); in CreateAndRegisterSchedulerWorker()
Dscheduler_worker_pool.cc148 if (!task_tracker_->WillPostTask(&task)) in PostTaskWithSequence()
173 : task_tracker_(std::move(task_tracker)), in SchedulerWorkerPool()
175 DCHECK(task_tracker_); in SchedulerWorkerPool()
212 sequence = task_tracker_->WillScheduleSequence(std::move(sequence), this); in PostTaskWithSequenceNow()
Dscheduler_worker.cc49 task_tracker_(std::move(task_tracker)), in SchedulerWorker()
58 DCHECK(task_tracker_); in SchedulerWorker()
158 task_tracker_->IsShutdownComplete(); in ShouldExit()
163 if (task_tracker_->HasShutdownStarted()) in GetDesiredThreadPriority()
330 task_tracker_->RunAndPopNextTask(std::move(sequence), delegate_.get()); in RunWorker()
Dscheduler_worker_unittest.cc88 task_tracker_.GetTrackedRef()); in SetUp()
189 EXPECT_TRUE(outer_->task_tracker_.WillPostTask(&task)); in GetWork()
201 sequence = outer_->task_tracker_.WillScheduleSequence(std::move(sequence), in GetWork()
264 TaskTracker task_tracker_ = {"Test"}; member in base::internal::__anonce7fc1310111::TaskSchedulerWorkerTest
424 : task_tracker_(task_tracker), controls_(new Controls()) {} in ControllableCleanupDelegate()
456 EXPECT_TRUE(task_tracker_->WillPostTask(&task)); in GetWork()
459 task_tracker_->WillScheduleSequence(std::move(sequence), nullptr); in GetWork()
488 TaskTracker* const task_tracker_; member in base::internal::__anonce7fc1310211::ControllableCleanupDelegate
Dscheduler_worker_stack_unittest.cc51 task_tracker_.GetTrackedRef()); in SetUp()
55 task_tracker_.GetTrackedRef()); in SetUp()
59 task_tracker_.GetTrackedRef()); in SetUp()
64 TaskTracker task_tracker_ = {"Test"}; member in base::internal::__anon8b922aa60111::TaskSchedulerWorkerStackTest
Dscheduler_worker_pool_impl_unittest.cc88 task_tracker_.FlushForTesting(); in CommonTearDown()
99 task_tracker_.GetTrackedRef(), &delayed_task_manager_); in CreateWorkerPool()
119 TaskTracker task_tracker_ = {"Test"}; member in base::internal::__anon30c1a4bb0111::TaskSchedulerWorkerPoolImplTestBase
430 task_tracker_.FlushForTesting(); in TEST_F()
924 task_tracker_.FlushForTesting(); in TEST_F()
1088 task_tracker_.FlushForTesting(); in TEST_P()
1153 task_tracker_.FlushForTesting(); in TEST_P()
1225 task_tracker_.FlushForTesting(); in TEST_P()
1262 task_tracker_.FlushForTesting(); in TEST_F()
1314 task_tracker_.FlushForTesting(); in TEST_F()
[all …]
Dservice_thread.h47 const TaskTracker* const task_tracker_; variable
Dscheduler_worker_pool.h69 const TrackedRef<TaskTracker> task_tracker_; variable
Dscheduler_single_thread_task_runner_manager.h121 const TrackedRef<TaskTracker> task_tracker_; variable
Dtask_scheduler_impl.h100 const std::unique_ptr<TaskTrackerImpl> task_tracker_; variable
Dscheduler_worker.h235 const TrackedRef<TaskTracker> task_tracker_; variable
Dscheduler_worker_pool_impl.cc624 bool shutdown_complete = outer_->task_tracker_->IsShutdownComplete(); in OnMainExit()
877 task_tracker_, &lock_, backward_compatibility_); in CreateRegisterAndStartSchedulerWorkerLockRequired()