| 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 #include "base/threading/sequenced_worker_pool.h" | 5 #include "base/threading/sequenced_worker_pool.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/message_loop/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.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/test/sequenced_task_runner_test_template.h" |
| 17 #include "base/test/sequenced_worker_pool_owner.h" | 18 #include "base/test/sequenced_worker_pool_owner.h" |
| 18 #include "base/test/sequenced_task_runner_test_template.h" | |
| 19 #include "base/test/task_runner_test_template.h" | 19 #include "base/test/task_runner_test_template.h" |
| 20 #include "base/test/test_timeouts.h" | 20 #include "base/test/test_timeouts.h" |
| 21 #include "base/threading/platform_thread.h" | 21 #include "base/threading/platform_thread.h" |
| 22 #include "base/time.h" | 22 #include "base/time/time.h" |
| 23 #include "base/tracked_objects.h" | 23 #include "base/tracked_objects.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 25 |
| 26 namespace base { | 26 namespace base { |
| 27 | 27 |
| 28 // IMPORTANT NOTE: | 28 // IMPORTANT NOTE: |
| 29 // | 29 // |
| 30 // Many of these tests have failure modes where they'll hang forever. These | 30 // Many of these tests have failure modes where they'll hang forever. These |
| 31 // tests should not be flaky, and hanging indicates a type of failure. Do not | 31 // tests should not be flaky, and hanging indicates a type of failure. Do not |
| 32 // mark as flaky if they're hanging, it's likely an actual bug. | 32 // mark as flaky if they're hanging, it's likely an actual bug. |
| (...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 SequencedWorkerPoolSequencedTaskRunner, TaskRunnerTest, | 929 SequencedWorkerPoolSequencedTaskRunner, TaskRunnerTest, |
| 930 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); | 930 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); |
| 931 | 931 |
| 932 INSTANTIATE_TYPED_TEST_CASE_P( | 932 INSTANTIATE_TYPED_TEST_CASE_P( |
| 933 SequencedWorkerPoolSequencedTaskRunner, SequencedTaskRunnerTest, | 933 SequencedWorkerPoolSequencedTaskRunner, SequencedTaskRunnerTest, |
| 934 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); | 934 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); |
| 935 | 935 |
| 936 } // namespace | 936 } // namespace |
| 937 | 937 |
| 938 } // namespace base | 938 } // namespace base |
| OLD | NEW |