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 #include "sandbox/linux/syscall_broker/broker_process.h" | 5 #include "sandbox/linux/syscall_broker/broker_process.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <poll.h> | 9 #include <poll.h> |
10 #include <stddef.h> | |
11 #include <sys/resource.h> | 10 #include <sys/resource.h> |
12 #include <sys/stat.h> | 11 #include <sys/stat.h> |
13 #include <sys/types.h> | 12 #include <sys/types.h> |
14 #include <sys/wait.h> | 13 #include <sys/wait.h> |
15 #include <unistd.h> | 14 #include <unistd.h> |
16 | 15 |
17 #include <algorithm> | 16 #include <algorithm> |
18 #include <string> | 17 #include <string> |
19 #include <vector> | 18 #include <vector> |
20 | 19 |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 ssize_t len = HANDLE_EINTR(read(fd_check, buf, sizeof(buf))); | 647 ssize_t len = HANDLE_EINTR(read(fd_check, buf, sizeof(buf))); |
649 | 648 |
650 ASSERT_EQ(len, static_cast<ssize_t>(sizeof(kTestText))); | 649 ASSERT_EQ(len, static_cast<ssize_t>(sizeof(kTestText))); |
651 ASSERT_EQ(memcmp(kTestText, buf, sizeof(kTestText)), 0); | 650 ASSERT_EQ(memcmp(kTestText, buf, sizeof(kTestText)), 0); |
652 } | 651 } |
653 } | 652 } |
654 | 653 |
655 } // namespace syscall_broker | 654 } // namespace syscall_broker |
656 | 655 |
657 } // namespace sandbox | 656 } // namespace sandbox |
OLD | NEW |