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

Side by Side Diff: base/process/memory_unittest_mac.h

Issue 1543293004: Switch to standard integer types in base/process/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ssize_t Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « base/process/memory_unittest.cc ('k') | base/process/memory_unittest_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains helpers for the process_util_unittest to allow it to fully 5 // This file contains helpers for the process_util_unittest to allow it to fully
6 // test the Mac code. 6 // test the Mac code.
7 7
8 #ifndef BASE_PROCESS_MEMORY_UNITTEST_MAC_H_ 8 #ifndef BASE_PROCESS_MEMORY_UNITTEST_MAC_H_
9 #define BASE_PROCESS_MEMORY_UNITTEST_MAC_H_ 9 #define BASE_PROCESS_MEMORY_UNITTEST_MAC_H_
10 10
11 #include "base/basictypes.h" 11 #include <stddef.h>
12 #include <sys/types.h>
13
14 #include "build/build_config.h"
12 15
13 namespace base { 16 namespace base {
14 17
15 // Allocates memory via system allocators. Alas, they take a _signed_ size for 18 // Allocates memory via system allocators. Alas, they take a _signed_ size for
16 // allocation. 19 // allocation.
17 void* AllocateViaCFAllocatorSystemDefault(ssize_t size); 20 void* AllocateViaCFAllocatorSystemDefault(ssize_t size);
18 void* AllocateViaCFAllocatorMalloc(ssize_t size); 21 void* AllocateViaCFAllocatorMalloc(ssize_t size);
19 void* AllocateViaCFAllocatorMallocZone(ssize_t size); 22 void* AllocateViaCFAllocatorMallocZone(ssize_t size);
20 23
21 #if !defined(ARCH_CPU_64_BITS) 24 #if !defined(ARCH_CPU_64_BITS)
22 // See process_util_unittest_mac.mm for an explanation of why this function 25 // See process_util_unittest_mac.mm for an explanation of why this function
23 // isn't implemented for the 64-bit environment. 26 // isn't implemented for the 64-bit environment.
24 27
25 // Allocates a huge Objective C object. 28 // Allocates a huge Objective C object.
26 void* AllocatePsychoticallyBigObjCObject(); 29 void* AllocatePsychoticallyBigObjCObject();
27 30
28 #endif // !ARCH_CPU_64_BITS 31 #endif // !ARCH_CPU_64_BITS
29 32
30 } // namespace base 33 } // namespace base
31 34
32 #endif // BASE_PROCESS_MEMORY_UNITTEST_MAC_H_ 35 #endif // BASE_PROCESS_MEMORY_UNITTEST_MAC_H_
OLDNEW
« no previous file with comments | « base/process/memory_unittest.cc ('k') | base/process/memory_unittest_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698