os/security/crypto/weakcryptospi/test/tcryptospi/src/keyexchangeasynchronousgeneralusagestep.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/crypto/weakcryptospi/test/tcryptospi/src/keyexchangeasynchronousgeneralusagestep.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,93 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-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 +* Example CTestStep derived implementation
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +/**
    1.24 + @file
    1.25 + @internalTechnology
    1.26 +*/
    1.27 +#include "keyexchangeasynchronousgeneralusagestep.h"
    1.28 +
    1.29 +CKeyExchangeASynchronousGeneralUsageStep::~CKeyExchangeASynchronousGeneralUsageStep()
    1.30 +/**
    1.31 + * Destructor
    1.32 + */
    1.33 +	{
    1.34 +	}
    1.35 +
    1.36 +CKeyExchangeASynchronousGeneralUsageStep::CKeyExchangeASynchronousGeneralUsageStep()
    1.37 +/**
    1.38 + * Constructor
    1.39 + */
    1.40 +	{
    1.41 +	// **MUST** call SetTestStepName in the constructor as the controlling
    1.42 +	// framework uses the test step name immediately following construction to set
    1.43 +	// up the step's unique logging ID.
    1.44 +	SetTestStepName(KKeyExchangeASynchronousGeneralUsageStep);
    1.45 +	}
    1.46 +
    1.47 +TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPreambleL()
    1.48 +/**
    1.49 + * @return - TVerdict code
    1.50 + * Override of base class virtual
    1.51 + */
    1.52 +	{
    1.53 +	INFO_PRINTF1(_L("Please delete this line or modify it. I am in Test Step Preamble in Class CKeyExchangeASynchronousGeneralUsageStep"));
    1.54 +	// uncomment the following 3 lines if you have common pre setting to all the test steps in there
    1.55 +	// CTe_FactoryObjectsSuiteStepBase::doTestStepPreambleL();
    1.56 +	// if (TestStepResult()!=EPass)
    1.57 +	//    return   TestStepResult();
    1.58 +	// process some pre setting to this test step then set SetTestStepResult to EFail or Epass.
    1.59 +	SetTestStepResult(EPass);
    1.60 +	return TestStepResult();
    1.61 +	}
    1.62 +
    1.63 +
    1.64 +TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepL()
    1.65 +/**
    1.66 + * @return - TVerdict code
    1.67 + * Override of base class pure virtual
    1.68 + * Our implementation only gets called if the base class doTestStepPreambleL() did
    1.69 + * not leave. That being the case, the current test result value will be EPass.
    1.70 + */
    1.71 +	{
    1.72 +	  if (TestStepResult()==EPass)
    1.73 +		{
    1.74 +
    1.75 +
    1.76 +		SetTestStepResult(EPass);
    1.77 +		}
    1.78 +	  return TestStepResult();
    1.79 +	}
    1.80 +
    1.81 +
    1.82 +
    1.83 +TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPostambleL()
    1.84 +/**
    1.85 + * @return - TVerdict code
    1.86 + * Override of base class virtual
    1.87 + */
    1.88 +	{
    1.89 +	INFO_PRINTF1(_L("Please delete this line or modify it. I am in Test Step Postamble in Class CKeyExchangeASynchronousGeneralUsageStep"));
    1.90 +	// process something post setting to the test step
    1.91 +	// uncomment the following line if you have common post setting to all the test steps in there
    1.92 +	// CTe_FactoryObjectsSuiteStepBase::doTestStepPostambleL();
    1.93 +	// uncomment the following line if you have post process or remove the following line if no post process
    1.94 +	// SetTestStepResult(EPass);		// or EFail
    1.95 +	return TestStepResult();
    1.96 +	}