Fix return value of PostDelayedTask in TestTaskRunner
Since posting a delayed task to TestTaskRunner cannot fail, it should always return true. Bug: 1189304 Change-Id: Ifdb9719664924eedf10d1aba9a31fd7bf3f71665 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3045140 Commit-Queue: Patrick Monette <pmonette@chromium.org> Reviewed-by: David Schinazi <dschinazi@chromium.org> Cr-Commit-Position: refs/heads/main@{#913161}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
7a8b2ab76b
commit
cb6b247ac5
@@ -33,7 +33,7 @@ bool TestTaskRunner::PostDelayedTask(const base::Location& from_here,
|
|||||||
EXPECT_GE(delay, base::TimeDelta());
|
EXPECT_GE(delay, base::TimeDelta());
|
||||||
tasks_.push_back(PostedTask(from_here, std::move(task), NowInTicks(*clock_),
|
tasks_.push_back(PostedTask(from_here, std::move(task), NowInTicks(*clock_),
|
||||||
delay, base::TestPendingTask::NESTABLE));
|
delay, base::TestPendingTask::NESTABLE));
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TestTaskRunner::PostNonNestableDelayedTask(const base::Location& from_here,
|
bool TestTaskRunner::PostNonNestableDelayedTask(const base::Location& from_here,
|
||||||
|
Reference in New Issue
Block a user