1 // Copyright 2010 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // This file contains helpers for the process_util_unittest to allow it to fully 6 // test the Mac code. 7 8 #ifndef BASE_PROCESS_MEMORY_UNITTEST_MAC_H_ 9 #define BASE_PROCESS_MEMORY_UNITTEST_MAC_H_ 10 11 #include <stddef.h> 12 #include <sys/types.h> 13 14 #include "build/build_config.h" 15 16 namespace base { 17 18 // Allocates memory via system allocators. Alas, they take a _signed_ size for 19 // allocation. 20 void* AllocateViaCFAllocatorSystemDefault(ssize_t size); 21 void* AllocateViaCFAllocatorMalloc(ssize_t size); 22 void* AllocateViaCFAllocatorMallocZone(ssize_t size); 23 24 } // namespace base 25 26 #endif // BASE_PROCESS_MEMORY_UNITTEST_MAC_H_ 27