Home
last modified time | relevance | path

Searched refs:TestPendingTask (Results 1 – 10 of 10) sorted by relevance

/external/libchrome/base/test/
Dtest_pending_task.cc12 TestPendingTask::TestPendingTask() : nestability(NESTABLE) {} in TestPendingTask() function in base::TestPendingTask
14 TestPendingTask::TestPendingTask(const Location& location, in TestPendingTask() function in base::TestPendingTask
25 TestPendingTask::TestPendingTask(TestPendingTask&& other) = default;
27 TestPendingTask& TestPendingTask::operator=(TestPendingTask&& other) = default;
29 TimeTicks TestPendingTask::GetTimeToRun() const { in GetTimeToRun()
33 bool TestPendingTask::ShouldRunBefore(const TestPendingTask& other) const { in ShouldRunBefore()
39 TestPendingTask::~TestPendingTask() = default;
43 void TestPendingTask::AsValueInto(base::trace_event::TracedValue* state) const {
60 TestPendingTask::AsValue() const {
68 std::string TestPendingTask::ToString() const { in ToString()
[all …]
Dtest_pending_task.h21 struct TestPendingTask { struct
24 TestPendingTask(); argument
25 TestPendingTask(TestPendingTask&& other);
26 TestPendingTask(const Location& location,
31 ~TestPendingTask();
33 TestPendingTask& operator=(TestPendingTask&& other); argument
54 bool ShouldRunBefore(const TestPendingTask& other) const;
72 DISALLOW_COPY_AND_ASSIGN(TestPendingTask); argument
77 std::ostream& operator<<(std::ostream& os, const TestPendingTask& task);
78 void PrintTo(const TestPendingTask& task, std::ostream* os);
Dtest_pending_task_unittest.cc16 base::TestPendingTask task; in TEST()
28 base::TestPendingTask task; in TEST()
35 base::TestPendingTask task; in TEST()
46 base::TestPendingTask task_first; in TEST()
48 base::TestPendingTask task_after; in TEST()
Dtest_simple_task_runner.cc23 pending_tasks_.push_back(TestPendingTask(from_here, std::move(task), in PostDelayedTask()
25 TestPendingTask::NESTABLE)); in PostDelayedTask()
33 pending_tasks_.push_back(TestPendingTask(from_here, std::move(task), in PostNonNestableDelayedTask()
35 TestPendingTask::NON_NESTABLE)); in PostNonNestableDelayedTask()
46 base::circular_deque<TestPendingTask> TestSimpleTaskRunner::TakePendingTasks() { in TakePendingTasks()
80 base::circular_deque<TestPendingTask> tasks_to_run; in RunPendingTasks()
Dscoped_mock_time_message_loop_task_runner_unittest.cc35 TestPendingTask PopFront(base::circular_deque<TestPendingTask>* pending_tasks) { in PopFront()
36 TestPendingTask task = std::move(pending_tasks->front()); in PopFront()
101 base::circular_deque<TestPendingTask> pending_tasks = in TEST_F()
106 TestPendingTask pending_task = PopFront(&pending_tasks); in TEST_F()
Dtest_mock_time_task_runner.cc134 : public base::TestPendingTask {
167 : base::TestPendingTask(location, in TestOrderedPendingTask()
299 base::circular_deque<TestPendingTask>
302 base::circular_deque<TestPendingTask> tasks; in TakePendingTasks()
360 TestPendingTask::NESTABLE)); in PostDelayedTask()
400 TestPendingTask task_info; in ProcessAllTasksNoLaterThan()
429 TestPendingTask* next_task) { in DequeueNextTask()
Dtest_simple_task_runner.h54 base::circular_deque<TestPendingTask> TakePendingTasks();
82 base::circular_deque<TestPendingTask> pending_tasks_;
Dtest_mock_time_task_runner.h179 base::circular_deque<TestPendingTask> TakePendingTasks();
259 TestPendingTask* next_task);
/external/libchrome/libchrome_tools/patch/
Dtrace_event.patch96 @@ -58,10 +59,13 @@ struct TestPendingTask {
112 @@ -38,6 +38,8 @@ bool TestPendingTask::ShouldRunBefore(co
114 TestPendingTask::~TestPendingTask() {}
118 void TestPendingTask::AsValueInto(base::trace_event::TracedValue* state) const {
121 @@ -61,10 +63,14 @@ TestPendingTask::AsValue() const {
127 std::string TestPendingTask::ToString() const {
128 std::string output("TestPendingTask(");
/external/libchrome/base/timer/
Dmock_timer.cc20 for (TestPendingTask& task : task_runner->TakePendingTasks()) in FlushPendingTasks()