| 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 <stdint.h> |
| 6 |
| 5 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 6 #include "mojo/edk/system/test_utils.h" | 8 #include "mojo/edk/system/test_utils.h" |
| 7 #include "mojo/public/c/system/core.h" | 9 #include "mojo/public/c/system/core.h" |
| 8 #include "mojo/public/c/system/types.h" | 10 #include "mojo/public/c/system/types.h" |
| 9 | 11 |
| 10 namespace mojo { | 12 namespace mojo { |
| 11 namespace edk { | 13 namespace edk { |
| 12 namespace { | 14 namespace { |
| 13 | 15 |
| 14 const MojoHandleSignals kAllSignals = MOJO_HANDLE_SIGNAL_READABLE | | 16 const MojoHandleSignals kAllSignals = MOJO_HANDLE_SIGNAL_READABLE | |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 ASSERT_EQ(MOJO_RESULT_FAILED_PRECONDITION, | 402 ASSERT_EQ(MOJO_RESULT_FAILED_PRECONDITION, |
| 401 MojoWait(pipe1_, MOJO_HANDLE_SIGNAL_READABLE, | 403 MojoWait(pipe1_, MOJO_HANDLE_SIGNAL_READABLE, |
| 402 MOJO_DEADLINE_INDEFINITE, &hss)); | 404 MOJO_DEADLINE_INDEFINITE, &hss)); |
| 403 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); | 405 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); |
| 404 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfiable_signals); | 406 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfiable_signals); |
| 405 } | 407 } |
| 406 | 408 |
| 407 } // namespace | 409 } // namespace |
| 408 } // namespace edk | 410 } // namespace edk |
| 409 } // namespace mojo | 411 } // namespace mojo |
| OLD | NEW |