| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TASK_SCHEDULER_TEST_TASK_FACTORY_H_ | 5 #ifndef BASE_TASK_SCHEDULER_TEST_TASK_FACTORY_H_ |
| 6 #define BASE_TASK_SCHEDULER_TEST_TASK_FACTORY_H_ | 6 #define BASE_TASK_SCHEDULER_TEST_TASK_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <unordered_set> | 10 #include <unordered_set> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/synchronization/condition_variable.h" | 15 #include "base/synchronization/condition_variable.h" |
| 16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "base/task_runner.h" | 17 #include "base/task_runner.h" |
| 18 #include "base/task_scheduler/task_traits.h" | 18 #include "base/task_scheduler/task_traits.h" |
| 19 #include "base/task_scheduler/test_utils.h" |
| 19 #include "base/threading/thread_checker_impl.h" | 20 #include "base/threading/thread_checker_impl.h" |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 | 23 |
| 23 class WaitableEvent; | 24 class WaitableEvent; |
| 24 | 25 |
| 25 namespace internal { | 26 namespace internal { |
| 26 namespace test { | 27 namespace test { |
| 27 | 28 |
| 28 // A TestTaskFactory posts tasks to a TaskRunner and verifies that they run as | 29 // A TestTaskFactory posts tasks to a TaskRunner and verifies that they run as |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 ThreadCheckerImpl thread_checker_; | 93 ThreadCheckerImpl thread_checker_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(TestTaskFactory); | 95 DISALLOW_COPY_AND_ASSIGN(TestTaskFactory); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace test | 98 } // namespace test |
| 98 } // namespace internal | 99 } // namespace internal |
| 99 } // namespace base | 100 } // namespace base |
| 100 | 101 |
| 101 #endif // BASE_TASK_SCHEDULER_TEST_TASK_FACTORY_H_ | 102 #endif // BASE_TASK_SCHEDULER_TEST_TASK_FACTORY_H_ |
| OLD | NEW |