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

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

Issue 1751953002: [Cherrypick try #2] Fix computation of runtime for throttled tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Fix formatting 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 efcd3fc805ab305ba049323eea1e9f66acdd810e..111b726df0ca7081e3486b6fd32686dfe7e4a33c 100644
--- a/components/scheduler/base/time_domain_unittest.cc
+++ b/components/scheduler/base/time_domain_unittest.cc
@@ -39,6 +39,11 @@ class MockTimeDomain : public TimeDomain {
// TimeSource implementation:
LazyNow CreateLazyNow() override { return LazyNow(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