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

Unified Diff: ipc/test_util_mac.h

Issue 1397023002: ipc: Write end-to-end tests for SharedMemoryHandle brokering on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: ipc/test_util_mac.h
diff --git a/ipc/test_util_mac.h b/ipc/test_util_mac.h
index 6dd2131ab9df87f572301677a866de3749513799..e976ce0a3c3e5acad8a453212ffc0c17c17a3da7 100644
--- a/ipc/test_util_mac.h
+++ b/ipc/test_util_mac.h
@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This file contains Mac-specific utility functions used by ipc tests.
+// This file contains Mac-specific utility functions used by multiple test
+// suites.
#ifndef IPC_TEST_UTIL_MAC_H_
#define IPC_TEST_UTIL_MAC_H_
@@ -42,6 +43,10 @@ void SendMachPort(mach_port_t receiving_port,
// The number of active names in the current task's port name space.
mach_msg_type_number_t GetActiveNameCount();
+// The number of references the current task has for a given name.
+mach_port_urefs_t GetMachRefCount(mach_port_name_t name,
+ mach_port_right_t right);
+
// Increments the ref count for the right/name pair.
void IncrementMachRefCount(mach_port_name_t name, mach_port_right_t right);
« ipc/ipc_test_messages.h ('K') | « ipc/ipc_test_messages.h ('k') | ipc/test_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698