• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#include "base/process/memory_unittest_mac.h"
6
7#include <CoreFoundation/CoreFoundation.h>
8
9namespace base {
10
11void* AllocateViaCFAllocatorSystemDefault(ssize_t size) {
12  return CFAllocatorAllocate(kCFAllocatorSystemDefault, size, 0);
13}
14
15void* AllocateViaCFAllocatorMalloc(ssize_t size) {
16  return CFAllocatorAllocate(kCFAllocatorMalloc, size, 0);
17}
18
19void* AllocateViaCFAllocatorMallocZone(ssize_t size) {
20  return CFAllocatorAllocate(kCFAllocatorMallocZone, size, 0);
21}
22
23}  // namespace base
24