OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_TEST_TEST_SIMPLE_TASK_RUNNER_H_ | 5 #ifndef BASE_TEST_TEST_SIMPLE_TASK_RUNNER_H_ |
6 #define BASE_TEST_TEST_SIMPLE_TASK_RUNNER_H_ | 6 #define BASE_TEST_TEST_SIMPLE_TASK_RUNNER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.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/test_pending_task.h" | 13 #include "base/test/test_pending_task.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 | 17 |
18 class TimeDelta; | 18 class TimeDelta; |
19 | 19 |
20 // TestSimpleTaskRunner is a simple TaskRunner implementation that can | 20 // TestSimpleTaskRunner is a simple TaskRunner implementation that can |
21 // be used for testing. It implements SingleThreadTaskRunner as that | 21 // be used for testing. It implements SingleThreadTaskRunner as that |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 std::deque<TestPendingTask> pending_tasks_; | 76 std::deque<TestPendingTask> pending_tasks_; |
77 ThreadChecker thread_checker_; | 77 ThreadChecker thread_checker_; |
78 | 78 |
79 private: | 79 private: |
80 DISALLOW_COPY_AND_ASSIGN(TestSimpleTaskRunner); | 80 DISALLOW_COPY_AND_ASSIGN(TestSimpleTaskRunner); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace base | 83 } // namespace base |
84 | 84 |
85 #endif // BASE_TEST_TEST_SIMPLE_TASK_RUNNER_H_ | 85 #endif // BASE_TEST_TEST_SIMPLE_TASK_RUNNER_H_ |
OLD | NEW |