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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/thread_task_runner_handle.h" | |
15 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h" | 17 #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h" |
18 #include "chromecast/media/cma/base/media_task_runner.h" | 18 #include "chromecast/media/cma/base/media_task_runner.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace chromecast { | 21 namespace chromecast { |
22 namespace media { | 22 namespace media { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 SetupTest(base::TimeDelta::FromMilliseconds(30), timestamps, | 287 SetupTest(base::TimeDelta::FromMilliseconds(30), timestamps, |
288 scheduling_pattern, expected_timestamps); | 288 scheduling_pattern, expected_timestamps); |
289 ProcessAllTasks(); | 289 ProcessAllTasks(); |
290 message_loop->Run(); | 290 message_loop->Run(); |
291 EXPECT_TRUE(expected_task_timestamps_.empty()); | 291 EXPECT_TRUE(expected_task_timestamps_.empty()); |
292 } | 292 } |
293 | 293 |
294 } // namespace media | 294 } // namespace media |
295 } // namespace chromecast | 295 } // namespace chromecast |
OLD | NEW |