0
|
1 |
// Copyright (c) 2008-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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#ifndef __T_NEWLDD_H
|
|
17 |
#define __T_NEWLDD_H
|
|
18 |
|
|
19 |
_LIT(KLddName,"OperatorNewTest");
|
|
20 |
_LIT(KKInstallLddName,"d_newldd");
|
|
21 |
|
|
22 |
|
|
23 |
const TInt KErrException = -99;
|
|
24 |
const TInt KTestArrayLength = 100; ///< A sensible array length to test vector new with
|
|
25 |
const TInt KOOMArraySize = 100000000; ///<An array size so big that array allocation should always fail
|
|
26 |
|
|
27 |
class RNewLddTest : public RBusLogicalChannel
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
enum TControl
|
|
31 |
{
|
|
32 |
ENew=0,
|
|
33 |
EPlacementVectorNew=1,
|
|
34 |
EVectorNew=2,
|
|
35 |
EPlacementNew=3
|
|
36 |
};
|
|
37 |
|
|
38 |
TInt DoControl(TInt aFunction);
|
|
39 |
TInt Open();
|
|
40 |
};
|
|
41 |
|
|
42 |
#endif // __T_NEWLDD_H
|