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

Unified Diff: components/scheduler/child/idle_helper.h

Issue 1832673002: Add testRunner.runIdleTasks() to force idle tasks to run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 9 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 | « no previous file | components/scheduler/child/idle_helper.cc » ('j') | components/scheduler/child/idle_helper.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/idle_helper.h
diff --git a/components/scheduler/child/idle_helper.h b/components/scheduler/child/idle_helper.h
index 333c8674a36e85176d1420abda4543275d18c7ba..ab80704b3b4bf24c14376af8e6bb0ab985650cc4 100644
--- a/components/scheduler/child/idle_helper.h
+++ b/components/scheduler/child/idle_helper.h
@@ -124,6 +124,9 @@ class SCHEDULER_EXPORT IdleHelper
IdlePeriodState SchedulerIdlePeriodState() const;
static const char* IdlePeriodStateToString(IdlePeriodState state);
+ // Test helper
+ void RunIdleTasksForTesting(const base::Closure&);
Sami 2016/03/29 11:11:17 In this implementation all the idle callbacks are
szager1 2016/04/06 08:43:17 I changed the implementation to use a regular long
+
private:
friend class BaseIdleHelperTest;
friend class IdleHelperTest;
« no previous file with comments | « no previous file | components/scheduler/child/idle_helper.cc » ('j') | components/scheduler/child/idle_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698