Index: ipc/test_util_mac.h |
diff --git a/ipc/test_util_mac.h b/ipc/test_util_mac.h |
index e976ce0a3c3e5acad8a453212ffc0c17c17a3da7..6ed4d1966a8f17e38281c800e76423db9ba2ec1f 100644 |
--- a/ipc/test_util_mac.h |
+++ b/ipc/test_util_mac.h |
@@ -50,6 +50,11 @@ mach_port_urefs_t GetMachRefCount(mach_port_name_t name, |
// Increments the ref count for the right/name pair. |
void IncrementMachRefCount(mach_port_name_t name, mach_port_right_t right); |
+// Gets the current and maximum protection levels of the memory region. |
+// Returns whether the operation was successful. |
+// |current| and |max| are output variables only populated on success. |
+bool GetMachProtections(void* address, size_t size, int* current, int* max); |
+ |
} // namespace IPC |
#endif // IPC_TEST_UTIL_MAC_H_ |