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_SYSTEM_WAITER_TEST_UTILS_H_ | 5 #ifndef MOJO_SYSTEM_WAITER_TEST_UTILS_H_ |
6 #define MOJO_SYSTEM_WAITER_TEST_UTILS_H_ | 6 #define MOJO_SYSTEM_WAITER_TEST_UTILS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/threading/simple_thread.h" | 11 #include "base/threading/simple_thread.h" |
12 #include "mojo/public/system/core.h" | 12 #include "mojo/public/c/system/core.h" |
13 #include "mojo/system/dispatcher.h" | 13 #include "mojo/system/dispatcher.h" |
14 #include "mojo/system/waiter.h" | 14 #include "mojo/system/waiter.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace system { | 17 namespace system { |
18 namespace test { | 18 namespace test { |
19 | 19 |
20 // This is a very simple thread that has a |Waiter|, on which it waits | 20 // This is a very simple thread that has a |Waiter|, on which it waits |
21 // indefinitely (and records the result). It will create and initialize the | 21 // indefinitely (and records the result). It will create and initialize the |
22 // |Waiter| on creation, but the caller must start the thread with |Start()|. It | 22 // |Waiter| on creation, but the caller must start the thread with |Start()|. It |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 Waiter waiter_; | 86 Waiter waiter_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(WaiterThread); | 88 DISALLOW_COPY_AND_ASSIGN(WaiterThread); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace test | 91 } // namespace test |
92 } // namespace system | 92 } // namespace system |
93 } // namespace mojo | 93 } // namespace mojo |
94 | 94 |
95 #endif // MOJO_SYSTEM_WAITER_TEST_UTILS_H_ | 95 #endif // MOJO_SYSTEM_WAITER_TEST_UTILS_H_ |
OLD | NEW |