equal
deleted
inserted
replaced
|
1 // Copyright (c) 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 "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 |
|
17 #ifndef FEATMGRRESOURCETESTER_H |
|
18 #define FEATMGRRESOURCETESTER_H |
|
19 |
|
20 /** |
|
21 TFeatMgrResourceTester class is used internally by the FeatMgr server out of memory and resource leaking |
|
22 tests. |
|
23 It provides methods for heap allocation failure simulation and resource checking and counting. |
|
24 |
|
25 @internalAll |
|
26 @released |
|
27 */ |
|
28 class TFeatMgrResourceTester |
|
29 { |
|
30 public: |
|
31 IMPORT_C static void Mark(); |
|
32 IMPORT_C static void Check(); |
|
33 IMPORT_C static TInt Count(); |
|
34 IMPORT_C static void SetHeapFailure(TInt aAllocFailType, TInt aRate); |
|
35 }; |
|
36 |
|
37 #endif //FEATMGRRESOURCETESTER_H |