| 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 #ifndef MEDIA_CAST_TEST_FAKE_TASK_RUNNER_H_ | 5 #ifndef MEDIA_BASE_FAKE_SINGLE_THREAD_TASK_RUNNER_H_ |
| 6 #define MEDIA_CAST_TEST_FAKE_TASK_RUNNER_H_ | 6 #define MEDIA_BASE_FAKE_SINGLE_THREAD_TASK_RUNNER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/test/simple_test_tick_clock.h" | 13 #include "base/test/simple_test_tick_clock.h" |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| 16 | 16 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // std::priority_queue. http://crbug.com/530842 | 51 // std::priority_queue. http://crbug.com/530842 |
| 52 std::map<TaskKey, base::Closure> tasks_; | 52 std::map<TaskKey, base::Closure> tasks_; |
| 53 | 53 |
| 54 bool fail_on_next_task_; | 54 bool fail_on_next_task_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(FakeSingleThreadTaskRunner); | 56 DISALLOW_COPY_AND_ASSIGN(FakeSingleThreadTaskRunner); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace media | 59 } // namespace media |
| 60 | 60 |
| 61 #endif // MEDIA_CAST_TEST_FAKE_TASK_RUNNER_H_ | 61 #endif // MEDIA_BASE_FAKE_SINGLE_THREAD_TASK_RUNNER_H_ |
| OLD | NEW |