Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: mojo/edk/system/waiter_test_utils.h

Issue 1783623005: Add mojo/c/system/{time.h,wait.h}. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_EDK_SYSTEM_WAITER_TEST_UTILS_H_
6 #define MOJO_EDK_SYSTEM_WAITER_TEST_UTILS_H_ 6 #define MOJO_EDK_SYSTEM_WAITER_TEST_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "mojo/edk/system/dispatcher.h" 10 #include "mojo/edk/system/dispatcher.h"
11 #include "mojo/edk/system/handle_signals_state.h" 11 #include "mojo/edk/system/handle_signals_state.h"
12 #include "mojo/edk/system/test/simple_test_thread.h" 12 #include "mojo/edk/system/test/simple_test_thread.h"
13 #include "mojo/edk/system/waiter.h" 13 #include "mojo/edk/system/waiter.h"
14 #include "mojo/edk/util/ref_ptr.h" 14 #include "mojo/edk/util/ref_ptr.h"
15 #include "mojo/public/c/system/handle.h" 15 #include "mojo/public/c/system/handle.h"
16 #include "mojo/public/c/system/result.h" 16 #include "mojo/public/c/system/result.h"
17 #include "mojo/public/c/system/types.h" 17 #include "mojo/public/c/system/time.h"
18 #include "mojo/public/cpp/system/macros.h" 18 #include "mojo/public/cpp/system/macros.h"
19 19
20 namespace mojo { 20 namespace mojo {
21 namespace system { 21 namespace system {
22 namespace test { 22 namespace test {
23 23
24 // This is a very simple thread that has a |Waiter|, on which it waits 24 // This is a very simple thread that has a |Waiter|, on which it waits
25 // indefinitely (and records the result). It will create and initialize the 25 // indefinitely (and records the result). It will create and initialize the
26 // |Waiter| on creation, but the caller must start the thread with |Start()|. It 26 // |Waiter| on creation, but the caller must start the thread with |Start()|. It
27 // will join the thread on destruction. 27 // will join the thread on destruction.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 Waiter waiter_; 97 Waiter waiter_;
98 98
99 MOJO_DISALLOW_COPY_AND_ASSIGN(WaiterThread); 99 MOJO_DISALLOW_COPY_AND_ASSIGN(WaiterThread);
100 }; 100 };
101 101
102 } // namespace test 102 } // namespace test
103 } // namespace system 103 } // namespace system
104 } // namespace mojo 104 } // namespace mojo
105 105
106 #endif // MOJO_EDK_SYSTEM_WAITER_TEST_UTILS_H_ 106 #endif // MOJO_EDK_SYSTEM_WAITER_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698