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 #include "base/task_scheduler/priority_queue.h" | 5 #include "base/task_scheduler/priority_queue.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
13 #include "base/task_scheduler/sequence.h" | 13 #include "base/task_scheduler/sequence.h" |
14 #include "base/task_scheduler/task.h" | 14 #include "base/task_scheduler/task.h" |
15 #include "base/task_scheduler/task_traits.h" | 15 #include "base/task_scheduler/task_traits.h" |
16 #include "base/task_scheduler/test_utils.h" | 16 #include "base/test/gtest_util.h" |
17 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
18 #include "base/threading/simple_thread.h" | 18 #include "base/threading/simple_thread.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 namespace internal { | 23 namespace internal { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 // End the Transaction on the current thread. | 177 // End the Transaction on the current thread. |
178 transaction.reset(); | 178 transaction.reset(); |
179 | 179 |
180 // The other thread should exit after its call to BeginTransaction() returns. | 180 // The other thread should exit after its call to BeginTransaction() returns. |
181 thread_beginning_transaction.Join(); | 181 thread_beginning_transaction.Join(); |
182 } | 182 } |
183 | 183 |
184 } // namespace internal | 184 } // namespace internal |
185 } // namespace base | 185 } // namespace base |
OLD | NEW |