| 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 <errno.h> |
| 9 #include <fcntl.h> | 10 #include <fcntl.h> |
| 10 #include <stdint.h> | 11 #include <stdint.h> |
| 12 #include <string.h> |
| 11 #include <sys/socket.h> | 13 #include <sys/socket.h> |
| 12 #include <sys/un.h> | 14 #include <sys/un.h> |
| 13 #include <unistd.h> | 15 #include <unistd.h> |
| 14 | 16 |
| 15 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
| 16 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
| 17 #include "base/location.h" | 19 #include "base/location.h" |
| 18 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 19 #include "base/path_service.h" | 21 #include "base/path_service.h" |
| 20 #include "base/posix/eintr_wrapper.h" | 22 #include "base/posix/eintr_wrapper.h" |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 if (connected) { | 497 if (connected) { |
| 496 IPCChannelPosixTest::SpinRunLoop(TestTimeouts::action_max_timeout()); | 498 IPCChannelPosixTest::SpinRunLoop(TestTimeouts::action_max_timeout()); |
| 497 EXPECT_EQ(IPCChannelPosixTestListener::CHANNEL_ERROR, listener.status()); | 499 EXPECT_EQ(IPCChannelPosixTestListener::CHANNEL_ERROR, listener.status()); |
| 498 } else { | 500 } else { |
| 499 EXPECT_EQ(IPCChannelPosixTestListener::DISCONNECTED, listener.status()); | 501 EXPECT_EQ(IPCChannelPosixTestListener::DISCONNECTED, listener.status()); |
| 500 } | 502 } |
| 501 return 0; | 503 return 0; |
| 502 } | 504 } |
| 503 | 505 |
| 504 } // namespace | 506 } // namespace |
| OLD | NEW |