OLD | NEW |
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 "platform/TraceLocation.h" | 9 #include "platform/TraceLocation.h" |
10 #include "public/platform/Platform.h" | 10 #include "public/platform/Platform.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual void postDelayedTask(Task* task, long long delayMs) OVERRIDE | 31 virtual void postDelayedTask(Task* task, long long delayMs) OVERRIDE |
32 { | 32 { |
33 ASSERT_NOT_REACHED(); | 33 ASSERT_NOT_REACHED(); |
34 } | 34 } |
35 | 35 |
36 virtual bool isCurrentThread() const OVERRIDE | 36 virtual bool isCurrentThread() const OVERRIDE |
37 { | 37 { |
38 return true; | 38 return true; |
39 } | 39 } |
40 | 40 |
| 41 virtual blink::PlatformThreadId threadId() const OVERRIDE |
| 42 { |
| 43 ASSERT_NOT_REACHED(); |
| 44 return 0; |
| 45 } |
| 46 |
41 virtual void enterRunLoop() OVERRIDE | 47 virtual void enterRunLoop() OVERRIDE |
42 { | 48 { |
43 ASSERT_NOT_REACHED(); | 49 ASSERT_NOT_REACHED(); |
44 } | 50 } |
45 | 51 |
46 virtual void exitRunLoop() OVERRIDE | 52 virtual void exitRunLoop() OVERRIDE |
47 { | 53 { |
48 ASSERT_NOT_REACHED(); | 54 ASSERT_NOT_REACHED(); |
49 } | 55 } |
50 | 56 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 m_platformSupport.triggerSharedTimer(); | 394 m_platformSupport.triggerSharedTimer(); |
389 | 395 |
390 EXPECT_EQ(1, s_dummyTaskCount); | 396 EXPECT_EQ(1, s_dummyTaskCount); |
391 | 397 |
392 // Clean up. | 398 // Clean up. |
393 m_scheduler->stopSharedTimer(); | 399 m_scheduler->stopSharedTimer(); |
394 m_scheduler->setSharedTimerFiredFunction(nullptr); | 400 m_scheduler->setSharedTimerFiredFunction(nullptr); |
395 } | 401 } |
396 | 402 |
397 } // namespace | 403 } // namespace |
OLD | NEW |