OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ipc_support.h" | 5 #include "mojo/edk/system/ipc_support.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "mojo/edk/system/test/test_io_thread.h" | 24 #include "mojo/edk/system/test/test_io_thread.h" |
25 #include "mojo/edk/system/test/timeouts.h" | 25 #include "mojo/edk/system/test/timeouts.h" |
26 #include "mojo/edk/system/waiter.h" | 26 #include "mojo/edk/system/waiter.h" |
27 #include "mojo/edk/test/multiprocess_test_helper.h" | 27 #include "mojo/edk/test/multiprocess_test_helper.h" |
28 #include "mojo/edk/test/test_utils.h" | 28 #include "mojo/edk/test/test_utils.h" |
29 #include "mojo/edk/util/command_line.h" | 29 #include "mojo/edk/util/command_line.h" |
30 #include "mojo/edk/util/waitable_event.h" | 30 #include "mojo/edk/util/waitable_event.h" |
31 #include "mojo/public/cpp/system/macros.h" | 31 #include "mojo/public/cpp/system/macros.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
33 | 33 |
34 using mojo::embedder::ScopedPlatformHandle; | 34 using mojo::platform::ScopedPlatformHandle; |
35 using mojo::util::AutoResetWaitableEvent; | 35 using mojo::util::AutoResetWaitableEvent; |
36 using mojo::util::ManualResetWaitableEvent; | 36 using mojo::util::ManualResetWaitableEvent; |
37 using mojo::util::RefPtr; | 37 using mojo::util::RefPtr; |
38 | 38 |
39 namespace mojo { | 39 namespace mojo { |
40 namespace system { | 40 namespace system { |
41 namespace { | 41 namespace { |
42 | 42 |
43 const char kConnectionIdFlag[] = "test-connection-id"; | 43 const char kConnectionIdFlag[] = "test-connection-id"; |
44 | 44 |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 | 710 |
711 test_io_thread.PostTaskAndWait(base::Bind(&IPCSupport::ShutdownOnIOThread, | 711 test_io_thread.PostTaskAndWait(base::Bind(&IPCSupport::ShutdownOnIOThread, |
712 base::Unretained(&ipc_support))); | 712 base::Unretained(&ipc_support))); |
713 } | 713 } |
714 | 714 |
715 // TODO(vtl): Also test the case of the master "dying" before the slave. (The | 715 // TODO(vtl): Also test the case of the master "dying" before the slave. (The |
716 // slave should get OnMasterDisconnect(), which we currently don't test.) | 716 // slave should get OnMasterDisconnect(), which we currently don't test.) |
717 | 717 |
718 } // namespace system | 718 } // namespace system |
719 } // namespace mojo | 719 } // namespace mojo |
OLD | NEW |