OLD | NEW |
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 Loading... |
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 |
OLD | NEW |