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

Side by Side Diff: components/scheduler/child/scheduler_tqm_delegate_for_test.h

Issue 1411843008: Make blink platform time consistent with the timer virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CachingCorrectnessTest Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ 5 #ifndef CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_
6 #define CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ 6 #define CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/test/simple_test_tick_clock.h" 9 #include "base/test/simple_test_tick_clock.h"
10 #include "components/scheduler/child/scheduler_tqm_delegate.h" 10 #include "components/scheduler/child/scheduler_tqm_delegate.h"
(...skipping 15 matching lines...) Expand all
26 bool PostDelayedTask(const tracked_objects::Location& from_here, 26 bool PostDelayedTask(const tracked_objects::Location& from_here,
27 const base::Closure& task, 27 const base::Closure& task,
28 base::TimeDelta delay) override; 28 base::TimeDelta delay) override;
29 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, 29 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
30 const base::Closure& task, 30 const base::Closure& task,
31 base::TimeDelta delay) override; 31 base::TimeDelta delay) override;
32 bool RunsTasksOnCurrentThread() const override; 32 bool RunsTasksOnCurrentThread() const override;
33 bool IsNested() const override; 33 bool IsNested() const override;
34 base::TimeTicks NowTicks() override; 34 base::TimeTicks NowTicks() override;
35 void OnNoMoreImmediateWork() override; 35 void OnNoMoreImmediateWork() override;
36 double CurrentTimeSeconds() const override;
36 37
37 base::SingleThreadTaskRunner* default_task_runner() const { 38 base::SingleThreadTaskRunner* default_task_runner() const {
38 return default_task_runner_.get(); 39 return default_task_runner_.get();
39 } 40 }
40 41
41 protected: 42 protected:
42 ~SchedulerTqmDelegateForTest() override; 43 ~SchedulerTqmDelegateForTest() override;
43 44
44 private: 45 private:
45 SchedulerTqmDelegateForTest( 46 SchedulerTqmDelegateForTest(
46 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 47 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
47 scoped_ptr<base::TickClock> time_source); 48 scoped_ptr<base::TickClock> time_source);
48 49
49 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; 50 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_;
50 51
51 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_; 52 scoped_refptr<TaskQueueManagerDelegateForTest> task_runner_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest); 54 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateForTest);
54 }; 55 };
55 56
56 } // namespace scheduler 57 } // namespace scheduler
57 58
58 #endif // CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_ 59 #endif // CONTENT_RENDERER_SCHEDULER_TQM_DELEGATE_FOR_TEST_H_
OLDNEW
« no previous file with comments | « components/scheduler/child/scheduler_helper.cc ('k') | components/scheduler/child/scheduler_tqm_delegate_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698