Update contrib.
1 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\misc\t_cmpres.cpp
22 Test heap compression with all offsets.
28 - Allocate some cells with specified sizes from the current thread's
29 heap, free a few of them, compress all the chunks containing heaps
30 and check the validity of the current thread's heap.
32 Platforms/Drives/Compatibility:
35 Assumptions/Requirement/Pre-requisites:
39 Base Port information:
42 LOCAL_D RTest test(_L("T_CMPRES"));
44 GLDEF_C TInt E32Main()
48 test.Start(_L("Testing heap compression with all offsets"));
51 for (n=0x4000; n<=0x5000; n+=4)
53 TAny* p1=User::Alloc(0x10000);
56 TAny* p2=User::Alloc(n);
58 TAny* p3=User::Alloc(0x4000);
61 User::CompressAllHeaps();
62 User::Allocator().Check();