1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/crypto/weakcryptospi/test/tcryptospi/src/te_cryptospistepbase.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,69 @@
1.4 +/*
1.5 +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +/**
1.23 + @file
1.24 + @internalTechnology
1.25 +*/
1.26 +
1.27 +#include "te_cryptospistepbase.h"
1.28 +#include "te_cryptospidefs.h"
1.29 +
1.30 +// Device driver constants
1.31 +
1.32 +TVerdict CTe_CryptoSpiStepBase::doTestStepPreambleL()
1.33 +/**
1.34 + * @return - TVerdict
1.35 + * Implementation of CTestStep base class virtual
1.36 + * It is used for doing all initialisation common to derived classes in here.
1.37 + * Make it being able to leave if there are any errors here as there's no point in
1.38 + * trying to run a test step if anything fails.
1.39 + * The leave will be picked up by the framework.
1.40 + */
1.41 + {
1.42 +
1.43 + // process some common pre setting to test steps then set SetTestStepResult to EFail or Epass.
1.44 + INFO_PRINTF1(_L("Please delete this line or modify me!! I am in doTestStepPreambleL() of the class CTe_CryptoSpiStepBase!"));
1.45 + SetTestStepResult(EPass);
1.46 + return TestStepResult();
1.47 + }
1.48 +
1.49 +TVerdict CTe_CryptoSpiStepBase::doTestStepPostambleL()
1.50 +/**
1.51 + * @return - TVerdict
1.52 + * Implementation of CTestStep base class virtual
1.53 + * It is used for doing all after test treatment common to derived classes in here.
1.54 + * Make it being able to leave
1.55 + * The leave will be picked up by the framework.
1.56 + */
1.57 + {
1.58 +
1.59 + // process some common post setting to test steps then set SetTestStepResult to EFail or Epass.
1.60 + INFO_PRINTF1(_L("Please delete this line or modify me!! I am in doTestStepPostambleL() of the class CTe_CryptoSpiStepBase!"));
1.61 + //SetTestStepResult(EPass); // or EFail
1.62 + return TestStepResult();
1.63 + }
1.64 +
1.65 +CTe_CryptoSpiStepBase::~CTe_CryptoSpiStepBase()
1.66 + {
1.67 + }
1.68 +
1.69 +CTe_CryptoSpiStepBase::CTe_CryptoSpiStepBase()
1.70 + {
1.71 + }
1.72 +