OLD | NEW |
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 #include "platform/Timer.h" | 5 #include "platform/Timer.h" |
6 | 6 |
7 #include "platform/testing/TestingPlatformSupport.h" | 7 #include "platform/testing/TestingPlatformSupport.h" |
8 #include "public/platform/Platform.h" | 8 #include "public/platform/Platform.h" |
9 #include "public/platform/WebScheduler.h" | 9 #include "public/platform/WebScheduler.h" |
10 #include "public/platform/WebThread.h" | 10 #include "public/platform/WebThread.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 120 } |
121 | 121 |
122 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override | 122 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override |
123 { | 123 { |
124 } | 124 } |
125 | 125 |
126 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override | 126 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override |
127 { | 127 { |
128 } | 128 } |
129 | 129 |
130 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*)
override | |
131 { | |
132 } | |
133 | |
134 WebTaskRunner* timerTaskRunner() override | 130 WebTaskRunner* timerTaskRunner() override |
135 { | 131 { |
136 return &m_timerWebTaskRunner; | 132 return &m_timerWebTaskRunner; |
137 } | 133 } |
138 | 134 |
139 WebTaskRunner* loadingTaskRunner() override | 135 WebTaskRunner* loadingTaskRunner() override |
140 { | 136 { |
141 NOTREACHED(); | 137 NOTREACHED(); |
142 return nullptr; | 138 return nullptr; |
143 } | 139 } |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 TimerForTest<TimerTest> timer(&taskRunner, this, &TimerTest::countingTask); | 770 TimerForTest<TimerTest> timer(&taskRunner, this, &TimerTest::countingTask); |
775 timer.startOneShot(0, BLINK_FROM_HERE); | 771 timer.startOneShot(0, BLINK_FROM_HERE); |
776 | 772 |
777 // Make sure the task was posted on taskRunner. | 773 // Make sure the task was posted on taskRunner. |
778 EXPECT_FALSE(timerTasks.empty()); | 774 EXPECT_FALSE(timerTasks.empty()); |
779 } | 775 } |
780 | 776 |
781 | 777 |
782 } // namespace | 778 } // namespace |
783 } // namespace blink | 779 } // namespace blink |
OLD | NEW |