| 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/message_loop_proxy.h" | 12 #include "base/message_loop_proxy.h" |
| 13 #include "base/synchronization/condition_variable.h" | 13 #include "base/synchronization/condition_variable.h" |
| 14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
| 15 #include "base/task_runner_test_template.h" | 15 #include "base/test/task_runner_test_template.h" |
| 16 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
| 17 #include "base/threading/sequenced_worker_pool.h" | 17 #include "base/threading/sequenced_worker_pool.h" |
| 18 #include "base/tracked_objects.h" | 18 #include "base/tracked_objects.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 | 22 |
| 23 // IMPORTANT NOTE: | 23 // IMPORTANT NOTE: |
| 24 // | 24 // |
| 25 // Many of these tests have failure modes where they'll hang forever. These | 25 // Many of these tests have failure modes where they'll hang forever. These |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 scoped_ptr<SequencedWorkerPoolOwner> pool_owner_; | 512 scoped_ptr<SequencedWorkerPoolOwner> pool_owner_; |
| 513 }; | 513 }; |
| 514 | 514 |
| 515 INSTANTIATE_TYPED_TEST_CASE_P( | 515 INSTANTIATE_TYPED_TEST_CASE_P( |
| 516 SequencedWorkerPool, TaskRunnerTest, | 516 SequencedWorkerPool, TaskRunnerTest, |
| 517 SequencedWorkerPoolTaskRunnerTestDelegate); | 517 SequencedWorkerPoolTaskRunnerTestDelegate); |
| 518 | 518 |
| 519 } // namespace | 519 } // namespace |
| 520 | 520 |
| 521 } // namespace base | 521 } // namespace base |
| OLD | NEW |