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

Side by Side Diff: base/process_util_unittest_mac.h

Issue 875004: Die on an OOM situation in many more cases.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « base/process_util_unittest.cc ('k') | base/process_util_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')
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
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
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_UTIL_UNITTEST_MAC_H_
9 #define BASE_PROCESS_UTIL_UNITTEST_MAC_H_
10
11 #include "base/basictypes.h"
12
13 namespace base {
14
15 // Allocates memory via system allocators. Alas, they take a _signed_ size for
16 // allocation.
17 void* AllocateViaCFAllocatorSystemDefault(int32 size);
18 void* AllocateViaCFAllocatorMalloc(int32 size);
19 void* AllocateViaCFAllocatorMallocZone(int32 size);
20
21 // Allocates a huge Objective C object.
22 void* AllocatePsychoticallyBigObjCObject();
23
24 } // namespace base
25
26 #endif // BASE_PROCESS_UTIL_UNITTEST_MAC_H_
OLDNEW
« no previous file with comments | « base/process_util_unittest.cc ('k') | base/process_util_unittest_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698