OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <stddef.h> |
| 6 #include <stdint.h> |
5 #include <sys/socket.h> | 7 #include <sys/socket.h> |
6 #include <sys/types.h> | 8 #include <sys/types.h> |
7 #include <unistd.h> | 9 #include <unistd.h> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
12 #include "base/files/scoped_file.h" | 14 #include "base/files/scoped_file.h" |
13 #include "base/location.h" | 15 #include "base/location.h" |
14 #include "base/pickle.h" | 16 #include "base/pickle.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( | 153 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( |
152 recv_sock.get(), &ch, sizeof(ch), &recv_fds, &sender_pid); | 154 recv_sock.get(), &ch, sizeof(ch), &recv_fds, &sender_pid); |
153 ASSERT_EQ(0, nread); | 155 ASSERT_EQ(0, nread); |
154 ASSERT_EQ(-1, sender_pid); | 156 ASSERT_EQ(-1, sender_pid); |
155 ASSERT_EQ(0U, recv_fds.size()); | 157 ASSERT_EQ(0U, recv_fds.size()); |
156 } | 158 } |
157 | 159 |
158 } // namespace | 160 } // namespace |
159 | 161 |
160 } // namespace base | 162 } // namespace base |
OLD | NEW |