OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // These tests are POSIX only. | 5 // These tests are POSIX only. |
6 | 6 |
7 #include "ipc/ipc_channel_posix.h" | 7 #include "ipc/ipc_channel_posix.h" |
8 | 8 |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <sys/socket.h> | 10 #include <sys/socket.h> |
11 #include <sys/un.h> | 11 #include <sys/un.h> |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
20 #include "base/posix/eintr_wrapper.h" | 20 #include "base/posix/eintr_wrapper.h" |
21 #include "base/test/multiprocess_test.h" | 21 #include "base/test/multiprocess_test.h" |
22 #include "base/test/test_timeouts.h" | 22 #include "base/test/test_timeouts.h" |
23 #include "ipc/ipc_listener.h" | 23 #include "ipc/ipc_listener.h" |
24 #include "ipc/unix_domain_socket_util.h" | 24 #include "ipc/unix_domain_socket_util.h" |
25 #include "testing/multiprocess_func_list.h" | 25 #include "testing/multiprocess_func_list.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 if (connected) { | 416 if (connected) { |
417 IPCChannelPosixTest::SpinRunLoop(TestTimeouts::action_max_timeout()); | 417 IPCChannelPosixTest::SpinRunLoop(TestTimeouts::action_max_timeout()); |
418 EXPECT_EQ(IPCChannelPosixTestListener::CHANNEL_ERROR, listener.status()); | 418 EXPECT_EQ(IPCChannelPosixTestListener::CHANNEL_ERROR, listener.status()); |
419 } else { | 419 } else { |
420 EXPECT_EQ(IPCChannelPosixTestListener::DISCONNECTED, listener.status()); | 420 EXPECT_EQ(IPCChannelPosixTestListener::DISCONNECTED, listener.status()); |
421 } | 421 } |
422 return 0; | 422 return 0; |
423 } | 423 } |
424 | 424 |
425 } // namespace | 425 } // namespace |
OLD | NEW |