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 #include "mojo/edk/system/core.h" | 5 #include "mojo/edk/system/core.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "mojo/edk/embedder/embedder_internal.h" | 12 #include "mojo/edk/embedder/embedder_internal.h" |
13 #include "mojo/edk/system/awakable.h" | 13 #include "mojo/edk/system/awakable.h" |
14 #include "mojo/edk/system/core_test_base.h" | 14 #include "mojo/edk/system/core_test_base.h" |
15 #include "mojo/edk/system/test_utils.h" | 15 #include "mojo/edk/system/test_utils.h" |
16 #include "mojo/public/cpp/system/macros.h" | 16 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace edk { | 19 namespace edk { |
20 namespace { | 20 namespace { |
21 | 21 |
22 const MojoHandleSignalsState kEmptyMojoHandleSignalsState = {0u, 0u}; | 22 const MojoHandleSignalsState kEmptyMojoHandleSignalsState = {0u, 0u}; |
23 const MojoHandleSignalsState kFullMojoHandleSignalsState = {~0u, ~0u}; | 23 const MojoHandleSignalsState kFullMojoHandleSignalsState = {~0u, ~0u}; |
24 const MojoHandleSignals kAllSignals = MOJO_HANDLE_SIGNAL_READABLE | | 24 const MojoHandleSignals kAllSignals = MOJO_HANDLE_SIGNAL_READABLE | |
25 MOJO_HANDLE_SIGNAL_WRITABLE | | 25 MOJO_HANDLE_SIGNAL_WRITABLE | |
26 MOJO_HANDLE_SIGNAL_PEER_CLOSED; | 26 MOJO_HANDLE_SIGNAL_PEER_CLOSED; |
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 ASSERT_EQ(MOJO_RESULT_BUSY, waiter.result); | 1256 ASSERT_EQ(MOJO_RESULT_BUSY, waiter.result); |
1257 | 1257 |
1258 ASSERT_EQ(MOJO_RESULT_OK, core()->Close(h)); | 1258 ASSERT_EQ(MOJO_RESULT_OK, core()->Close(h)); |
1259 } | 1259 } |
1260 | 1260 |
1261 // TODO(vtl): Test |DuplicateBufferHandle()| and |MapBuffer()|. | 1261 // TODO(vtl): Test |DuplicateBufferHandle()| and |MapBuffer()|. |
1262 | 1262 |
1263 } // namespace | 1263 } // namespace |
1264 } // namespace edk | 1264 } // namespace edk |
1265 } // namespace mojo | 1265 } // namespace mojo |
OLD | NEW |