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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "mojo/embedder/channel_init.h" | 10 #include "mojo/edk/embedder/channel_init.h" |
11 #include "mojo/embedder/platform_channel_pair.h" | 11 #include "mojo/edk/embedder/platform_channel_pair.h" |
12 #include "mojo/shell/external_application_registrar_connection.h" | 12 #include "mojo/shell/external_application_registrar_connection.h" |
13 #include "mojo/shell/incoming_connection_listener_posix.h" | 13 #include "mojo/shell/incoming_connection_listener_posix.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/base/test_completion_callback.h" | 15 #include "net/base/test_completion_callback.h" |
16 #include "net/socket/socket_descriptor.h" | 16 #include "net/socket/socket_descriptor.h" |
17 #include "net/socket/unix_domain_client_socket_posix.h" | 17 #include "net/socket/unix_domain_client_socket_posix.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace mojo { | 20 namespace mojo { |
21 namespace shell { | 21 namespace shell { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 ListeningFailsDelegate fail_delegate(net::ERR_FILE_NOT_FOUND); | 141 ListeningFailsDelegate fail_delegate(net::ERR_FILE_NOT_FOUND); |
142 IncomingConnectionListenerPosix listener(nonexistent_dir, &fail_delegate); | 142 IncomingConnectionListenerPosix listener(nonexistent_dir, &fail_delegate); |
143 | 143 |
144 // The listener should fail to start up. | 144 // The listener should fail to start up. |
145 listener.StartListening(); | 145 listener.StartListening(); |
146 } | 146 } |
147 | 147 |
148 } // namespace shell | 148 } // namespace shell |
149 } // namespace mojo | 149 } // namespace mojo |
OLD | NEW |