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

Side by Side Diff: third_party/WebKit/Source/platform/TimerTest.cpp

Issue 2276353002: Remove after wakeup logic and replace PumpTask with Fences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 3 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 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 #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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698