os/security/crypto/weakcryptospi/test/tcryptospi/src/te_cryptospistepbase.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2007-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 #if (!defined __TE_CRYPTOSPI_STEP_BASE__)
    27 #define __TE_CRYPTOSPI_STEP_BASE__
    28 #include <test/testexecutestepbase.h>
    29 
    30 //********************CryptoSpi Specific Headers and Macros********************
    31 
    32 #include "te_cryptospiconversion.h"
    33 #include "te_cryptospidefs.h"
    34 #include "traplog.h"
    35 
    36 #include <cryptospi/cryptospidef.h>
    37 
    38 #include <f32file.h> 
    39 
    40 #define DES_AS_8_BIT(str) (TPtrC8(reinterpret_cast<const TText8*>(((str).Ptr())), (str).Size()))
    41 
    42 //****************************************************************************
    43 
    44 /****************************************************************************
    45 * The reason to have a new step base is that it is very much possible
    46 * that the all individual test steps have project related common variables 
    47 * and members 
    48 * and this is the place to define these common variable and members.
    49 * 
    50 ****************************************************************************/
    51 class CTe_CryptoSpiStepBase : public CTestStep
    52 	{
    53 public:
    54 	virtual ~CTe_CryptoSpiStepBase();
    55 	CTe_CryptoSpiStepBase();
    56 	virtual TVerdict doTestStepPreambleL(); 
    57 	virtual TVerdict doTestStepPostambleL();	
    58 
    59 protected:
    60 	HBufC8*		iReadData;
    61 	HBufC8*		iWriteData;
    62 	};
    63 
    64 #endif