os/security/cryptoservices/filebasedcertificateandkeystores/source/generic/server/tokenserverdebug.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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  @file 
    22  @internalTechnology
    23 */
    24  
    25 #ifndef __TOKENSERVERDEBUG_H__
    26 #define __TOKENSERVERDEBUG_h__
    27 
    28 #ifdef _DEBUG
    29 
    30 #include <e32std.h>
    31 
    32 /**
    33  * OOM testing functionality.
    34  */
    35 
    36 class TokenServerDebug
    37 	{
    38  public:
    39 	// Server-side OOM testing
    40 	static void StartOOMTest();
    41 	static void IncHeapFailPoint();
    42 	static void ResetHeapFail();
    43 	static void PauseOOMTest();
    44 	static void ResumeOOMTest();
    45 
    46 	// Heap checking
    47 	static void HeapCheckStart();
    48 	static void HeapCheckEnd();
    49  private:
    50 	static void HeapErrorL(TBool aError);
    51  private:
    52 	static TInt iCounter;
    53 	static TInt iStartCount;
    54 	static TInt iPauseCount;
    55 	static TInt iInitialAllocCount;
    56 	};
    57 
    58 #endif // _DEBUG
    59 
    60 #endif