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

Unified Diff: components/scheduler/child/task_queue_manager.cc

Issue 1132753008: Replaced TestNowSource with SimpleTestTickClock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected typo. Minor changes to keep parity with TestNowSource. Created 5 years, 7 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
Index: components/scheduler/child/task_queue_manager.cc
diff --git a/components/scheduler/child/task_queue_manager.cc b/components/scheduler/child/task_queue_manager.cc
index 366c682d081e74b3e78725bb64342832b039a687..ec4816ad459155d6aa6121fd1ebc7075ea251dd8 100644
--- a/components/scheduler/child/task_queue_manager.cc
+++ b/components/scheduler/child/task_queue_manager.cc
@@ -729,6 +729,11 @@ void TaskQueueManager::SetTimeSourceForTesting(
time_source_ = time_source.Pass();
}
+TimeSource* TaskQueueManager::GetTimeSourceForTesting() {
+ DCHECK(main_thread_checker_.CalledOnValidThread());
+ return time_source_.get();
+}
+
uint64 TaskQueueManager::GetAndClearTaskWasRunOnQueueBitmap() {
uint64 bitmap = task_was_run_bitmap_;
task_was_run_bitmap_ = 0;

Powered by Google App Engine
This is Rietveld 408576698