summaryrefslogtreecommitdiffstats
path: root/base/process_util_unittest_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util_unittest_mac.h')
-rw-r--r--base/process_util_unittest_mac.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/base/process_util_unittest_mac.h b/base/process_util_unittest_mac.h
index 8402e85..7b4fe1c 100644
--- a/base/process_util_unittest_mac.h
+++ b/base/process_util_unittest_mac.h
@@ -14,13 +14,19 @@ namespace base {
// Allocates memory via system allocators. Alas, they take a _signed_ size for
// allocation.
-void* AllocateViaCFAllocatorSystemDefault(int32 size);
-void* AllocateViaCFAllocatorMalloc(int32 size);
-void* AllocateViaCFAllocatorMallocZone(int32 size);
+void* AllocateViaCFAllocatorSystemDefault(ssize_t size);
+void* AllocateViaCFAllocatorMalloc(ssize_t size);
+void* AllocateViaCFAllocatorMallocZone(ssize_t size);
+
+#if !defined(ARCH_CPU_64_BITS)
+// See process_util_unittest_mac.mm for an explanation of why this function
+// isn't implemented for the 64-bit environment.
// Allocates a huge Objective C object.
void* AllocatePsychoticallyBigObjCObject();
-} // namespace base
+#endif // !ARCH_CPU_64_BITS
+
+} // namespace base
#endif // BASE_PROCESS_UTIL_UNITTEST_MAC_H_