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

Side by Side Diff: Source/platform/scheduler/SchedulerTest.cpp

Issue 400153002: Change WokerThread to use a blink::WebThread. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix issues from jochen's review. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "platform/scheduler/Scheduler.h" 6 #include "platform/scheduler/Scheduler.h"
7 7
8 #include "platform/TestingPlatformSupport.h" 8 #include "platform/TestingPlatformSupport.h"
9 #include "public/platform/Platform.h" 9 #include "public/platform/Platform.h"
10 #include "public/platform/WebThread.h" 10 #include "public/platform/WebThread.h"
(...skipping 25 matching lines...) Expand all
36 virtual void enterRunLoop() OVERRIDE 36 virtual void enterRunLoop() OVERRIDE
37 { 37 {
38 ASSERT_NOT_REACHED(); 38 ASSERT_NOT_REACHED();
39 } 39 }
40 40
41 virtual void exitRunLoop() OVERRIDE 41 virtual void exitRunLoop() OVERRIDE
42 { 42 {
43 ASSERT_NOT_REACHED(); 43 ASSERT_NOT_REACHED();
44 } 44 }
45 45
46 virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction) OVERRIDE
47 {
48 ASSERT_NOT_REACHED();
49 }
50
51 virtual void setSharedTimerFireInterval(double interval) OVERRIDE
52 {
53 ASSERT_NOT_REACHED();
54 }
55
56 virtual void stopSharedTimer() OVERRIDE
57 {
58 ASSERT_NOT_REACHED();
59 }
60
46 void runPendingTasks() 61 void runPendingTasks()
47 { 62 {
48 while (!m_pendingTasks.isEmpty()) 63 while (!m_pendingTasks.isEmpty())
49 m_pendingTasks.takeFirst()->run(); 64 m_pendingTasks.takeFirst()->run();
50 } 65 }
51 66
52 private: 67 private:
53 WTF::Deque<OwnPtr<Task> > m_pendingTasks; 68 WTF::Deque<OwnPtr<Task> > m_pendingTasks;
54 }; 69 };
55 70
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 EXPECT_EQ(1, s_sharedTimerTickCount); 200 EXPECT_EQ(1, s_sharedTimerTickCount);
186 201
187 m_scheduler->stopSharedTimer(); 202 m_scheduler->stopSharedTimer();
188 EXPECT_FALSE(m_platformSupport.sharedTimerRunning()); 203 EXPECT_FALSE(m_platformSupport.sharedTimerRunning());
189 204
190 m_scheduler->setSharedTimerFiredFunction(nullptr); 205 m_scheduler->setSharedTimerFiredFunction(nullptr);
191 EXPECT_FALSE(m_platformSupport.sharedTimerRunning()); 206 EXPECT_FALSE(m_platformSupport.sharedTimerRunning());
192 } 207 }
193 208
194 } // namespace 209 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698