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

Side by Side Diff: ipc/test_util_mac.cc

Issue 1546533002: Switch to standard integer types in ipc/. (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
« no previous file with comments | « ipc/test_util_mac.h ('k') | ipc/unix_domain_socket_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ipc/test_util_mac.h" 5 #include "ipc/test_util_mac.h"
6 6
7 #include <mach/mach_vm.h> 7 #include <mach/mach_vm.h>
8 #include <servers/bootstrap.h> 8 #include <servers/bootstrap.h>
9 #include <stddef.h>
9 10
10 #include "base/mac/mach_logging.h" 11 #include "base/mac/mach_logging.h"
11 #include "base/mac/scoped_mach_port.h" 12 #include "base/mac/scoped_mach_port.h"
12 #include "base/rand_util.h" 13 #include "base/rand_util.h"
13 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
14 15
15 namespace { 16 namespace {
16 17
17 // Structs used to pass a Mach port over mach_msg(). 18 // Structs used to pass a Mach port over mach_msg().
18 struct MachSendPortMessage { 19 struct MachSendPortMessage {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 MACH_LOG(ERROR, kr) << "Failed to get region info."; 134 MACH_LOG(ERROR, kr) << "Failed to get region info.";
134 return false; 135 return false;
135 } 136 }
136 137
137 *current = basic_info.protection; 138 *current = basic_info.protection;
138 *max = basic_info.max_protection; 139 *max = basic_info.max_protection;
139 return true; 140 return true;
140 } 141 }
141 142
142 } // namespace IPC 143 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/test_util_mac.h ('k') | ipc/unix_domain_socket_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698