cryptoservices/certificateandkeymgmt/tcertstore/t_certstoretests.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 2003-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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  @file 
       
    23  @internalTechnology
       
    24 */
       
    25  
       
    26 #ifndef __T_CERTSTORETESTS_H__
       
    27 #define __T_CERTSTORETESTS_H__
       
    28 
       
    29 #include <e32cons.h>
       
    30 
       
    31 /** Run the standard test. */
       
    32 void DoTests();
       
    33 
       
    34 /** Run the specified test script. */
       
    35 void DoTests(const TDesC& aScriptFile, const TDesC& aLogFile, TBool isConcurrent=EFalse);
       
    36 
       
    37 // Implementation of dummy console for concurrency testing
       
    38 class CNullConsole : public CConsoleBase
       
    39 	{
       
    40 public: // From CConsoleBase
       
    41 	virtual TInt Create(const TDesC& /*aTitle*/, TSize /*aSize*/) { return KErrNone; }
       
    42 	virtual void Read(TRequestStatus& aStatus)
       
    43 		{
       
    44 		TRequestStatus* stat = &aStatus;
       
    45 		User::RequestComplete(stat, KErrNone);
       
    46 		}
       
    47 	virtual void ReadCancel() {}
       
    48 	virtual void Write(const TDesC& /*aDes*/) {}
       
    49 	virtual TPoint CursorPos() const { return TPoint(); }
       
    50 	virtual void SetCursorPosAbs(const TPoint& /*aPoint*/) {}
       
    51 	virtual void SetCursorPosRel(const TPoint& /*aPoint*/) {}
       
    52 	virtual void SetCursorHeight(TInt /*aPercentage*/) {}
       
    53 	virtual void SetTitle(const TDesC& /*aTitle*/) {}
       
    54 	virtual void ClearScreen() {}
       
    55 	virtual void ClearToEndOfLine() {}
       
    56 	virtual TSize ScreenSize() const { return TSize(); }
       
    57 	virtual TKeyCode KeyCode() const { return TKeyCode(); }
       
    58 	virtual TUint KeyModifiers() const { return 0; }
       
    59 	};
       
    60 
       
    61 #endif