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

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

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_mac.h ('k') | base/process/memory_win.cc » ('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 #include "base/process/memory_unittest_mac.h" 5 #include "base/process/memory_unittest_mac.h"
6 #include "build/build_config.h"
6 7
7 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
8 #include <CoreFoundation/CoreFoundation.h> 9 #include <CoreFoundation/CoreFoundation.h>
9 10
10 #if !defined(ARCH_CPU_64_BITS) 11 #if !defined(ARCH_CPU_64_BITS)
11 12
12 // In the 64-bit environment, the Objective-C 2.0 Runtime Reference states 13 // In the 64-bit environment, the Objective-C 2.0 Runtime Reference states
13 // that sizeof(anInstance) is constrained to 32 bits. That's not necessarily 14 // that sizeof(anInstance) is constrained to 32 bits. That's not necessarily
14 // "psychotically big" and in fact a 64-bit program is expected to be able to 15 // "psychotically big" and in fact a 64-bit program is expected to be able to
15 // successfully allocate an object that large, likely reserving a good deal of 16 // successfully allocate an object that large, likely reserving a good deal of
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 51
51 void* AllocateViaCFAllocatorMalloc(ssize_t size) { 52 void* AllocateViaCFAllocatorMalloc(ssize_t size) {
52 return CFAllocatorAllocate(kCFAllocatorMalloc, size, 0); 53 return CFAllocatorAllocate(kCFAllocatorMalloc, size, 0);
53 } 54 }
54 55
55 void* AllocateViaCFAllocatorMallocZone(ssize_t size) { 56 void* AllocateViaCFAllocatorMallocZone(ssize_t size) {
56 return CFAllocatorAllocate(kCFAllocatorMallocZone, size, 0); 57 return CFAllocatorAllocate(kCFAllocatorMallocZone, size, 0);
57 } 58 }
58 59
59 } // namespace base 60 } // namespace base
OLDNEW
« no previous file with comments | « base/process/memory_unittest_mac.h ('k') | base/process/memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698