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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 EXPECT_EQ(0U, m_platformSupport.numPendingMainThreadTasks()); | 371 EXPECT_EQ(0U, m_platformSupport.numPendingMainThreadTasks()); |
366 | 372 |
367 m_scheduler->postCompositorTask(FROM_HERE, WTF::bind(&dummyTask)); | 373 m_scheduler->postCompositorTask(FROM_HERE, WTF::bind(&dummyTask)); |
368 EXPECT_EQ(1U, m_platformSupport.numPendingMainThreadTasks()); | 374 EXPECT_EQ(1U, m_platformSupport.numPendingMainThreadTasks()); |
369 | 375 |
370 runPendingTasks(); | 376 runPendingTasks(); |
371 EXPECT_EQ(0U, m_platformSupport.numPendingMainThreadTasks()); | 377 EXPECT_EQ(0U, m_platformSupport.numPendingMainThreadTasks()); |
372 } | 378 } |
373 | 379 |
374 } // namespace | 380 } // namespace |
OLD | NEW |