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

Unified Diff: content/child/scheduler/scheduler_helper.h

Issue 1098033002: Remove dependency on cc::TestNowSource from scheduler code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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 | content/child/scheduler/scheduler_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/scheduler/scheduler_helper.h
diff --git a/content/child/scheduler/scheduler_helper.h b/content/child/scheduler/scheduler_helper.h
index ef88b394b6f7d603048db800f6175009d615af18..0e03aa95cd69e79266d4b9a4cd885134f9dcd3cf 100644
--- a/content/child/scheduler/scheduler_helper.h
+++ b/content/child/scheduler/scheduler_helper.h
@@ -5,10 +5,10 @@
#ifndef CONTENT_CHILD_SCHEDULER_SCHEDULER_HELPER_H_
#define CONTENT_CHILD_SCHEDULER_SCHEDULER_HELPER_H_
-#include "cc/test/test_now_source.h"
#include "content/child/scheduler/cancelable_closure_holder.h"
#include "content/child/scheduler/single_thread_idle_task_runner.h"
#include "content/child/scheduler/task_queue_manager.h"
+#include "content/child/scheduler/time_source.h"
namespace content {
@@ -165,8 +165,9 @@ class CONTENT_EXPORT SchedulerHelper {
bool IsQueueEmpty(size_t queue_index) const;
// Test helpers.
- void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source);
+ void SetTimeSourceForTesting(scoped_ptr<TimeSource> time_source);
void SetWorkBatchSizeForTesting(size_t work_batch_size);
+ TaskQueueManager* GetTaskQueueManagerForTesting();
private:
friend class SchedulerHelperTest;
@@ -196,7 +197,7 @@ class CONTENT_EXPORT SchedulerHelper {
base::TimeDelta required_quiescence_duration_before_long_idle_period_;
base::TimeTicks idle_period_deadline_;
- scoped_refptr<cc::TestNowSource> time_source_;
+ scoped_ptr<TimeSource> time_source_;
const char* tracing_category_;
const char* disabled_by_default_tracing_category_;
« no previous file with comments | « no previous file | content/child/scheduler/scheduler_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698