Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: components/scheduler/base/time_domain_unittest.cc

Issue 1718233002: Fix computation of runtime for throttled tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/scheduler/base/time_domain.h ('k') | components/scheduler/base/virtual_time_domain.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/base/time_domain_unittest.cc
diff --git a/components/scheduler/base/time_domain_unittest.cc b/components/scheduler/base/time_domain_unittest.cc
index c29f0edd487fb1ed9174e71439f83bbbdedcfcdc..dc8918d8ac0ec3e8f2028af206f4802b6f544f96 100644
--- a/components/scheduler/base/time_domain_unittest.cc
+++ b/components/scheduler/base/time_domain_unittest.cc
@@ -40,6 +40,11 @@ class MockTimeDomain : public TimeDomain {
LazyNow CreateLazyNow() const override { return LazyNow(now_); }
base::TimeTicks Now() const override { return now_; }
+ base::TimeTicks ComputeDelayedRunTime(base::TimeTicks time_domain_now,
+ base::TimeDelta delay) const override {
+ return time_domain_now + delay;
+ }
+
void AsValueIntoInternal(
base::trace_event::TracedValue* state) const override {}
« no previous file with comments | « components/scheduler/base/time_domain.h ('k') | components/scheduler/base/virtual_time_domain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698