OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/embedder/embedder.h" | 5 #include "mojo/edk/embedder/embedder.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
13 #include "mojo/edk/embedder/embedder.h" | 13 #include "mojo/edk/embedder/embedder.h" |
14 #include "mojo/edk/embedder/platform_channel_pair.h" | 14 #include "mojo/edk/embedder/platform_channel_pair.h" |
15 #include "mojo/edk/embedder/simple_platform_support.h" | 15 #include "mojo/edk/embedder/simple_platform_support.h" |
16 #include "mojo/edk/embedder/test_embedder.h" | 16 #include "mojo/edk/embedder/test_embedder.h" |
17 #include "mojo/edk/system/test_utils.h" | 17 #include "mojo/edk/system/test_utils.h" |
18 #include "mojo/edk/test/multiprocess_test_helper.h" | 18 #include "mojo/edk/test/multiprocess_test_helper.h" |
19 #include "mojo/message_pump/message_pump_mojo.h" | 19 #include "mojo/message_pump/message_pump_mojo.h" |
| 20 #include "mojo/public/c/system/core.h" |
| 21 #include "mojo/public/cpp/system/handle.h" |
| 22 #include "mojo/public/cpp/system/macros.h" |
| 23 #include "mojo/public/cpp/system/message_pipe.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "third_party/mojo/src/mojo/public/c/system/core.h" | |
22 #include "third_party/mojo/src/mojo/public/cpp/system/handle.h" | |
23 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | |
24 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" | |
25 | 25 |
26 namespace mojo { | 26 namespace mojo { |
27 namespace edk { | 27 namespace edk { |
28 namespace { | 28 namespace { |
29 | 29 |
30 const MojoHandleSignals kSignalReadadableWritable = | 30 const MojoHandleSignals kSignalReadadableWritable = |
31 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; | 31 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; |
32 | 32 |
33 const MojoHandleSignals kSignalAll = MOJO_HANDLE_SIGNAL_READABLE | | 33 const MojoHandleSignals kSignalAll = MOJO_HANDLE_SIGNAL_READABLE | |
34 MOJO_HANDLE_SIGNAL_WRITABLE | | 34 MOJO_HANDLE_SIGNAL_WRITABLE | |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(mp1)); | 573 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(mp1)); |
574 } | 574 } |
575 } | 575 } |
576 | 576 |
577 // TODO(vtl): Test immediate write & close. | 577 // TODO(vtl): Test immediate write & close. |
578 // TODO(vtl): Test broken-connection cases. | 578 // TODO(vtl): Test broken-connection cases. |
579 | 579 |
580 } // namespace | 580 } // namespace |
581 } // namespace edk | 581 } // namespace edk |
582 } // namespace mojo | 582 } // namespace mojo |
OLD | NEW |