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 "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" | 5 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" |
8 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
9 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
10 #include "base/test/simple_test_tick_clock.h" | 13 #include "base/test/simple_test_tick_clock.h" |
11 #include "components/scheduler/base/test_time_source.h" | 14 #include "components/scheduler/base/test_time_source.h" |
12 #include "components/scheduler/child/scheduler_tqm_delegate_impl.h" | 15 #include "components/scheduler/child/scheduler_tqm_delegate_impl.h" |
13 #include "components/scheduler/renderer/renderer_scheduler_impl.h" | 16 #include "components/scheduler/renderer/renderer_scheduler_impl.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/WebKit/public/platform/WebTaskRunner.h" | 19 #include "third_party/WebKit/public/platform/WebTaskRunner.h" |
17 #include "third_party/WebKit/public/platform/WebTraceLocation.h" | 20 #include "third_party/WebKit/public/platform/WebTraceLocation.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 196 } |
194 | 197 |
195 message_loop_.task_runner()->PostTask( | 198 message_loop_.task_runner()->PostTask( |
196 FROM_HERE, base::Bind(&EnterRunLoop, base::Unretained(&message_loop_), | 199 FROM_HERE, base::Bind(&EnterRunLoop, base::Unretained(&message_loop_), |
197 base::Unretained(thread_.get()))); | 200 base::Unretained(thread_.get()))); |
198 message_loop_.RunUntilIdle(); | 201 message_loop_.RunUntilIdle(); |
199 thread_->removeTaskObserver(&observer); | 202 thread_->removeTaskObserver(&observer); |
200 } | 203 } |
201 | 204 |
202 } // namespace scheduler | 205 } // namespace scheduler |
OLD | NEW |