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

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: Make TestLongIdlePeriodTimeline test quiescence again! 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 137
138 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override 138 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override
139 { 139 {
140 } 140 }
141 141
142 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override 142 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override
143 { 143 {
144 } 144 }
145 145
146 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*) override
147 {
148 }
149
150 WebTaskRunner* timerTaskRunner() override 146 WebTaskRunner* timerTaskRunner() override
151 { 147 {
152 return &m_timerWebTaskRunner; 148 return &m_timerWebTaskRunner;
153 } 149 }
154 150
155 WebTaskRunner* loadingTaskRunner() override 151 WebTaskRunner* loadingTaskRunner() override
156 { 152 {
157 NOTREACHED(); 153 NOTREACHED();
158 return nullptr; 154 return nullptr;
159 } 155 }
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 TimerForTest<TimerTest> timer(&taskRunner, this, &TimerTest::countingTask); 786 TimerForTest<TimerTest> timer(&taskRunner, this, &TimerTest::countingTask);
791 timer.startOneShot(0, BLINK_FROM_HERE); 787 timer.startOneShot(0, BLINK_FROM_HERE);
792 788
793 // Make sure the task was posted on taskRunner. 789 // Make sure the task was posted on taskRunner.
794 EXPECT_FALSE(timerTasks.empty()); 790 EXPECT_FALSE(timerTasks.empty());
795 } 791 }
796 792
797 793
798 } // namespace 794 } // namespace
799 } // namespace blink 795 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698