Home
last modified time | relevance | path

Searched refs:TaskShutdownBehavior (Results 1 – 19 of 19) sorted by relevance

/external/libchrome/base/task_scheduler/
Dtask_unittest.cc22 {TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in TEST()
24 EXPECT_EQ(TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN, in TEST()
28 {TaskShutdownBehavior::SKIP_ON_SHUTDOWN}, in TEST()
30 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, in TEST()
34 {TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST()
36 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, in TEST()
43 {TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in TEST()
45 EXPECT_EQ(TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN, in TEST()
49 {TaskShutdownBehavior::SKIP_ON_SHUTDOWN}, TimeDelta()); in TEST()
50 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, in TEST()
[all …]
Dtask_traits_unittest.cc15 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, traits.shutdown_behavior()); in TEST()
24 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, traits.shutdown_behavior()); in TEST()
29 TEST(TaskSchedulerTaskTraitsTest, TaskShutdownBehavior) { in TEST() argument
30 constexpr TaskTraits traits = {TaskShutdownBehavior::BLOCK_SHUTDOWN}; in TEST()
33 EXPECT_EQ(TaskShutdownBehavior::BLOCK_SHUTDOWN, traits.shutdown_behavior()); in TEST()
42 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, traits.shutdown_behavior()); in TEST()
51 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, traits.shutdown_behavior()); in TEST()
58 TaskShutdownBehavior::BLOCK_SHUTDOWN, in TEST()
62 EXPECT_EQ(TaskShutdownBehavior::BLOCK_SHUTDOWN, traits.shutdown_behavior()); in TEST()
69 TaskShutdownBehavior::BLOCK_SHUTDOWN, in TEST()
[all …]
Dtask_traits.h43 enum class TaskShutdownBehavior { enum
122 ValidTrait(TaskShutdownBehavior) {} in ValidTrait()
158 internal::HasArgOfType<TaskShutdownBehavior, ArgTypes...>::value), in TaskTraits()
160 internal::EnumArgGetter<TaskShutdownBehavior, in TaskTraits()
161 TaskShutdownBehavior::SKIP_ON_SHUTDOWN>(), in TaskTraits()
195 constexpr TaskShutdownBehavior shutdown_behavior() const { in shutdown_behavior()
226 TaskShutdownBehavior shutdown_behavior_;
235 TaskShutdownBehavior task_priority);
243 const TaskShutdownBehavior& shutdown_behavior);
Dtask_traits.cc29 TaskShutdownBehavior shutdown_behavior) { in TaskShutdownBehaviorToString()
31 case TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN: in TaskShutdownBehaviorToString()
33 case TaskShutdownBehavior::SKIP_ON_SHUTDOWN: in TaskShutdownBehaviorToString()
35 case TaskShutdownBehavior::BLOCK_SHUTDOWN: in TaskShutdownBehaviorToString()
48 const TaskShutdownBehavior& shutdown_behavior) { in operator <<()
Dtask_tracker_unittest.cc166 : public testing::TestWithParam<TaskShutdownBehavior> {
171 Task CreateTask(TaskShutdownBehavior shutdown_behavior) { in CreateTask()
328 if (GetParam() == TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN) { in TEST_P()
341 if (GetParam() != TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN) in TEST_P()
352 Task block_shutdown_task(CreateTask(TaskShutdownBehavior::BLOCK_SHUTDOWN)); in TEST_P()
362 const bool should_run = GetParam() == TaskShutdownBehavior::BLOCK_SHUTDOWN; in TEST_P()
383 if (GetParam() == TaskShutdownBehavior::BLOCK_SHUTDOWN) { in TEST_P()
406 Task block_shutdown_task(CreateTask(TaskShutdownBehavior::BLOCK_SHUTDOWN)); in TEST_P()
413 if (GetParam() == TaskShutdownBehavior::BLOCK_SHUTDOWN) { in TEST_P()
433 EXPECT_EQ(GetParam() == TaskShutdownBehavior::BLOCK_SHUTDOWN ? 2U : 1U, in TEST_P()
[all …]
Dscheduler_single_thread_task_runner_manager_unittest.cc103 {TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST_F()
108 {TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST_F()
129 {TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST_F()
134 {TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST_F()
156 {TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST_F()
161 {TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST_F()
209 {TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in TEST_F()
227 {TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST_F()
299 TaskShutdownBehavior::BLOCK_SHUTDOWN}; in TEST_P()
309 TaskShutdownBehavior::BLOCK_SHUTDOWN}; in TEST_P()
[all …]
Dtask_traits_unittest.nc21 constexpr TaskTraits traits = {TaskShutdownBehavior::BLOCK_SHUTDOWN,
22 TaskShutdownBehavior::BLOCK_SHUTDOWN};
24 constexpr TaskTraits traits = {TaskShutdownBehavior::BLOCK_SHUTDOWN,
26 TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN};
28 constexpr TaskTraits traits = {TaskShutdownBehavior::BLOCK_SHUTDOWN, true};
Dtask_tracker.cc398 const TaskShutdownBehavior shutdown_behavior = in RunAndPopNextTask()
475 TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN); in RunOrSkipTask()
655 bool TaskTracker::BeforePostTask(TaskShutdownBehavior shutdown_behavior) { in BeforePostTask()
656 if (shutdown_behavior == TaskShutdownBehavior::BLOCK_SHUTDOWN) { in BeforePostTask()
706 bool TaskTracker::BeforeRunTask(TaskShutdownBehavior shutdown_behavior) { in BeforeRunTask()
708 case TaskShutdownBehavior::BLOCK_SHUTDOWN: { in BeforeRunTask()
722 case TaskShutdownBehavior::SKIP_ON_SHUTDOWN: { in BeforeRunTask()
741 case TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN: { in BeforeRunTask()
750 void TaskTracker::AfterRunTask(TaskShutdownBehavior shutdown_behavior) { in AfterRunTask()
751 if (shutdown_behavior == TaskShutdownBehavior::BLOCK_SHUTDOWN || in AfterRunTask()
[all …]
Dtask.cc27 traits.shutdown_behavior() == TaskShutdownBehavior::BLOCK_SHUTDOWN in Task()
36 traits.shutdown_behavior() == TaskShutdownBehavior::BLOCK_SHUTDOWN) in Task()
38 {TaskShutdownBehavior::SKIP_ON_SHUTDOWN}) in Task()
Dtask_tracker.h243 bool BeforePostTask(TaskShutdownBehavior shutdown_behavior);
248 bool BeforeRunTask(TaskShutdownBehavior shutdown_behavior);
253 void AfterRunTask(TaskShutdownBehavior shutdown_behavior);
Dscheduler_single_thread_task_runner_manager.cc456 if (traits.shutdown_behavior() == TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN) in TraitsToContinueOnShutdown()
Dscheduler_worker_unittest.cc454 {WithBaseSyncPrimitives(), TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in GetWork()
Dtask_scheduler_impl_unittest.cc588 {TaskShutdownBehavior::BLOCK_SHUTDOWN}); in TEST_F()
/external/libchrome/base/process/
Dkill.cc45 {TaskPriority::BACKGROUND, TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in EnsureProcessTerminated()
/external/libchrome/libchrome_tools/patch/
Dmojom_disable_trace_and_mem_dump.patch217 - base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN}));
221 + // base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN}));
/external/libchrome/base/i18n/
Dstreaming_utf8_validator_unittest.cc120 FROM_HERE, {base::TaskShutdownBehavior::BLOCK_SHUTDOWN}, in TEST_F()
/external/libchrome/crypto/
Dnss_util.cc324 {base::MayBlock(), base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in InitializeTPMTokenAndSystemSlot()
487 {base::MayBlock(), base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in InitializeTPMForChromeOSUser()
/external/libchrome/base/test/launcher/
Dtest_launcher.cc620 FROM_HERE, {MayBlock(), TaskShutdownBehavior::BLOCK_SHUTDOWN}, in LaunchChildGTestProcess()
/external/libchrome/base/trace_event/
Dtrace_log.cc969 TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in FinishFlush()