Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(781)

Side by Side Diff: sandbox/linux/syscall_broker/broker_process_unittest.cc

Issue 1539423002: Revert of Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sandbox/linux/syscall_broker/broker_policy.cc ('k') | sandbox/linux/system_headers/arm64_linux_ucontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698