OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MOJO_EDK_SYSTEM_WAITER_TEST_UTILS_H_ | 5 #ifndef MOJO_SYSTEM_WAITER_TEST_UTILS_H_ |
6 #define MOJO_EDK_SYSTEM_WAITER_TEST_UTILS_H_ | 6 #define MOJO_SYSTEM_WAITER_TEST_UTILS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/threading/simple_thread.h" | 13 #include "base/threading/simple_thread.h" |
14 #include "mojo/edk/system/dispatcher.h" | |
15 #include "mojo/edk/system/handle_signals_state.h" | |
16 #include "mojo/edk/system/waiter.h" | |
17 #include "mojo/public/c/system/types.h" | 14 #include "mojo/public/c/system/types.h" |
| 15 #include "mojo/system/dispatcher.h" |
| 16 #include "mojo/system/handle_signals_state.h" |
| 17 #include "mojo/system/waiter.h" |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 namespace system { | 20 namespace system { |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 // This is a very simple thread that has a |Waiter|, on which it waits | 23 // This is a very simple thread that has a |Waiter|, on which it waits |
24 // indefinitely (and records the result). It will create and initialize the | 24 // indefinitely (and records the result). It will create and initialize the |
25 // |Waiter| on creation, but the caller must start the thread with |Start()|. It | 25 // |Waiter| on creation, but the caller must start the thread with |Start()|. It |
26 // will join the thread on destruction. | 26 // will join the thread on destruction. |
27 // | 27 // |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 Waiter waiter_; | 96 Waiter waiter_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(WaiterThread); | 98 DISALLOW_COPY_AND_ASSIGN(WaiterThread); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace test | 101 } // namespace test |
102 } // namespace system | 102 } // namespace system |
103 } // namespace mojo | 103 } // namespace mojo |
104 | 104 |
105 #endif // MOJO_EDK_SYSTEM_WAITER_TEST_UTILS_H_ | 105 #endif // MOJO_SYSTEM_WAITER_TEST_UTILS_H_ |
OLD | NEW |