cryptoservices/filebasedcertificateandkeystores/source/generic/server/tokenserverdebug.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * TokenServerDebug class implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #ifndef __TOKENSERVERDEBUG_H__ |
|
28 #define __TOKENSERVERDEBUG_h__ |
|
29 |
|
30 #ifdef _DEBUG |
|
31 |
|
32 #include <e32std.h> |
|
33 |
|
34 /** |
|
35 * OOM testing functionality. |
|
36 */ |
|
37 |
|
38 class TokenServerDebug |
|
39 { |
|
40 public: |
|
41 // Server-side OOM testing |
|
42 static void StartOOMTest(); |
|
43 static void IncHeapFailPoint(); |
|
44 static void ResetHeapFail(); |
|
45 static void PauseOOMTest(); |
|
46 static void ResumeOOMTest(); |
|
47 |
|
48 // Heap checking |
|
49 static void HeapCheckStart(); |
|
50 static void HeapCheckEnd(); |
|
51 private: |
|
52 static void HeapErrorL(TBool aError); |
|
53 private: |
|
54 static TInt iCounter; |
|
55 static TInt iStartCount; |
|
56 static TInt iPauseCount; |
|
57 static TInt iInitialAllocCount; |
|
58 }; |
|
59 |
|
60 #endif // _DEBUG |
|
61 |
|
62 #endif |