pkiutilities/DeviceToken/Inc/DevTokenServerDebug.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2006 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 "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:   The header file of DevTokenServerDebug
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DEVTOKENSERVERDEBUG_H__
       
    21 #define __DEVTOKENSERVERDEBUG_H__
       
    22 
       
    23 #ifdef _DEBUG
       
    24 
       
    25 #include <e32std.h>
       
    26 
       
    27 
       
    28 /**
       
    29  * OOM testing functionality.
       
    30  *
       
    31  *  @lib 
       
    32  *  @since S60 v3.2
       
    33  */
       
    34 class DevTokenServerDebug
       
    35     {
       
    36     public:
       
    37         // Server-side OOM testing
       
    38         static void StartOOMTest();
       
    39         
       
    40         static void IncHeapFailPoint();
       
    41         
       
    42         static void ResetHeapFail();
       
    43         
       
    44         static void PauseOOMTest();
       
    45         
       
    46         static void ResumeOOMTest();
       
    47         
       
    48         // Heap checking
       
    49         static void HeapCheckStart();
       
    50         
       
    51         static void HeapCheckEnd();
       
    52         
       
    53     private:
       
    54         
       
    55         static void HeapErrorL(TBool aError);
       
    56         
       
    57     private:
       
    58         
       
    59         static TInt iCounter;
       
    60         
       
    61         static TInt iStartCount;
       
    62         
       
    63         static TInt iPauseCount;
       
    64         
       
    65         static TInt iInitialAllocCount;
       
    66     };
       
    67 
       
    68 #endif // _DEBUG
       
    69 
       
    70 #endif //__DEVTOKENSERVERDEBUG_H__
       
    71 
       
    72 //EOF
       
    73