| OLD | NEW |
| 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 <memory> | 7 #include <memory> |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include "base/message_loop/message_loop.h" |
| 9 #include "platform/scheduler/base/task_queue_impl.h" | 10 #include "platform/scheduler/base/task_queue_impl.h" |
| 10 #include "platform/scheduler/child/web_scheduler.h" | 11 #include "platform/scheduler/child/web_scheduler.h" |
| 11 #include "platform/scheduler/child/web_task_runner_impl.h" | 12 #include "platform/scheduler/child/web_task_runner_impl.h" |
| 12 #include "platform/scheduler/renderer/renderer_scheduler_impl.h" | 13 #include "platform/scheduler/renderer/renderer_scheduler_impl.h" |
| 13 #include "platform/scheduler/renderer/web_view_scheduler.h" | 14 #include "platform/scheduler/renderer/web_view_scheduler.h" |
| 14 #include "platform/testing/TestingPlatformSupport.h" | 15 #include "platform/testing/TestingPlatformSupport.h" |
| 15 #include "platform/wtf/CurrentTime.h" | 16 #include "platform/wtf/CurrentTime.h" |
| 16 #include "platform/wtf/PtrUtil.h" | 17 #include "platform/wtf/PtrUtil.h" |
| 17 #include "platform/wtf/RefCounted.h" | 18 #include "platform/wtf/RefCounted.h" |
| 18 #include "public/platform/Platform.h" | 19 #include "public/platform/Platform.h" |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 &TimerTest::CountingTask); | 722 &TimerTest::CountingTask); |
| 722 | 723 |
| 723 platform_->RunUntilIdle(); | 724 platform_->RunUntilIdle(); |
| 724 EXPECT_TRUE(!run_times_.size()); | 725 EXPECT_TRUE(!run_times_.size()); |
| 725 EXPECT_TRUE(task_runner1->IsEmpty()); | 726 EXPECT_TRUE(task_runner1->IsEmpty()); |
| 726 EXPECT_TRUE(task_runner2->IsEmpty()); | 727 EXPECT_TRUE(task_runner2->IsEmpty()); |
| 727 } | 728 } |
| 728 | 729 |
| 729 } // namespace | 730 } // namespace |
| 730 } // namespace blink | 731 } // namespace blink |
| OLD | NEW |