| 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/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "base/synchronization/condition_variable.h" | 14 #include "base/synchronization/condition_variable.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "base/test/sequenced_task_runner_test_template.h" | 16 #include "base/test/sequenced_task_runner_test_template.h" |
| 17 #include "base/test/sequenced_worker_pool_owner.h" | 17 #include "base/test/sequenced_worker_pool_owner.h" |
| 18 #include "base/test/task_runner_test_template.h" | 18 #include "base/test/task_runner_test_template.h" |
| 19 #include "base/test/test_timeouts.h" | 19 #include "base/test/test_timeouts.h" |
| 20 #include "base/threading/platform_thread.h" | 20 #include "base/threading/platform_thread.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "base/tracked_objects.h" | 22 #include "base/tracked_objects.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 | 26 |
| 27 // IMPORTANT NOTE: | 27 // IMPORTANT NOTE: |
| 28 // | 28 // |
| 29 // Many of these tests have failure modes where they'll hang forever. These | 29 // Many of these tests have failure modes where they'll hang forever. These |
| 30 // tests should not be flaky, and hanging indicates a type of failure. Do not | 30 // tests should not be flaky, and hanging indicates a type of failure. Do not |
| 31 // mark as flaky if they're hanging, it's likely an actual bug. | 31 // mark as flaky if they're hanging, it's likely an actual bug. |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 SequencedWorkerPoolSequencedTaskRunner, SequencedTaskRunnerTest, | 1078 SequencedWorkerPoolSequencedTaskRunner, SequencedTaskRunnerTest, |
| 1079 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); | 1079 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); |
| 1080 INSTANTIATE_TYPED_TEST_CASE_P( | 1080 INSTANTIATE_TYPED_TEST_CASE_P( |
| 1081 SequencedWorkerPoolSequencedTaskRunner, | 1081 SequencedWorkerPoolSequencedTaskRunner, |
| 1082 SequencedTaskRunnerDelayedTest, | 1082 SequencedTaskRunnerDelayedTest, |
| 1083 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); | 1083 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); |
| 1084 | 1084 |
| 1085 } // namespace | 1085 } // namespace |
| 1086 | 1086 |
| 1087 } // namespace base | 1087 } // namespace base |
| OLD | NEW |