os/security/crypto/weakcryptospi/test/tcryptospi/src/keyexchangeasynchronousgeneralusagestep.cpp
Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Example CTestStep derived implementation
24 #include "keyexchangeasynchronousgeneralusagestep.h"
26 CKeyExchangeASynchronousGeneralUsageStep::~CKeyExchangeASynchronousGeneralUsageStep()
33 CKeyExchangeASynchronousGeneralUsageStep::CKeyExchangeASynchronousGeneralUsageStep()
38 // **MUST** call SetTestStepName in the constructor as the controlling
39 // framework uses the test step name immediately following construction to set
40 // up the step's unique logging ID.
41 SetTestStepName(KKeyExchangeASynchronousGeneralUsageStep);
44 TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPreambleL()
46 * @return - TVerdict code
47 * Override of base class virtual
50 INFO_PRINTF1(_L("Please delete this line or modify it. I am in Test Step Preamble in Class CKeyExchangeASynchronousGeneralUsageStep"));
51 // uncomment the following 3 lines if you have common pre setting to all the test steps in there
52 // CTe_FactoryObjectsSuiteStepBase::doTestStepPreambleL();
53 // if (TestStepResult()!=EPass)
54 // return TestStepResult();
55 // process some pre setting to this test step then set SetTestStepResult to EFail or Epass.
56 SetTestStepResult(EPass);
57 return TestStepResult();
61 TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepL()
63 * @return - TVerdict code
64 * Override of base class pure virtual
65 * Our implementation only gets called if the base class doTestStepPreambleL() did
66 * not leave. That being the case, the current test result value will be EPass.
69 if (TestStepResult()==EPass)
73 SetTestStepResult(EPass);
75 return TestStepResult();
80 TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPostambleL()
82 * @return - TVerdict code
83 * Override of base class virtual
86 INFO_PRINTF1(_L("Please delete this line or modify it. I am in Test Step Postamble in Class CKeyExchangeASynchronousGeneralUsageStep"));
87 // process something post setting to the test step
88 // uncomment the following line if you have common post setting to all the test steps in there
89 // CTe_FactoryObjectsSuiteStepBase::doTestStepPostambleL();
90 // uncomment the following line if you have post process or remove the following line if no post process
91 // SetTestStepResult(EPass); // or EFail
92 return TestStepResult();