sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* Example CTestStep derived implementation
|
sl@0
|
16 |
*
|
sl@0
|
17 |
*/
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
/**
|
sl@0
|
21 |
@file
|
sl@0
|
22 |
@internalTechnology
|
sl@0
|
23 |
*/
|
sl@0
|
24 |
#include "keyexchangeasynchronousgeneralusagestep.h"
|
sl@0
|
25 |
|
sl@0
|
26 |
CKeyExchangeASynchronousGeneralUsageStep::~CKeyExchangeASynchronousGeneralUsageStep()
|
sl@0
|
27 |
/**
|
sl@0
|
28 |
* Destructor
|
sl@0
|
29 |
*/
|
sl@0
|
30 |
{
|
sl@0
|
31 |
}
|
sl@0
|
32 |
|
sl@0
|
33 |
CKeyExchangeASynchronousGeneralUsageStep::CKeyExchangeASynchronousGeneralUsageStep()
|
sl@0
|
34 |
/**
|
sl@0
|
35 |
* Constructor
|
sl@0
|
36 |
*/
|
sl@0
|
37 |
{
|
sl@0
|
38 |
// **MUST** call SetTestStepName in the constructor as the controlling
|
sl@0
|
39 |
// framework uses the test step name immediately following construction to set
|
sl@0
|
40 |
// up the step's unique logging ID.
|
sl@0
|
41 |
SetTestStepName(KKeyExchangeASynchronousGeneralUsageStep);
|
sl@0
|
42 |
}
|
sl@0
|
43 |
|
sl@0
|
44 |
TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPreambleL()
|
sl@0
|
45 |
/**
|
sl@0
|
46 |
* @return - TVerdict code
|
sl@0
|
47 |
* Override of base class virtual
|
sl@0
|
48 |
*/
|
sl@0
|
49 |
{
|
sl@0
|
50 |
INFO_PRINTF1(_L("Please delete this line or modify it. I am in Test Step Preamble in Class CKeyExchangeASynchronousGeneralUsageStep"));
|
sl@0
|
51 |
// uncomment the following 3 lines if you have common pre setting to all the test steps in there
|
sl@0
|
52 |
// CTe_FactoryObjectsSuiteStepBase::doTestStepPreambleL();
|
sl@0
|
53 |
// if (TestStepResult()!=EPass)
|
sl@0
|
54 |
// return TestStepResult();
|
sl@0
|
55 |
// process some pre setting to this test step then set SetTestStepResult to EFail or Epass.
|
sl@0
|
56 |
SetTestStepResult(EPass);
|
sl@0
|
57 |
return TestStepResult();
|
sl@0
|
58 |
}
|
sl@0
|
59 |
|
sl@0
|
60 |
|
sl@0
|
61 |
TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepL()
|
sl@0
|
62 |
/**
|
sl@0
|
63 |
* @return - TVerdict code
|
sl@0
|
64 |
* Override of base class pure virtual
|
sl@0
|
65 |
* Our implementation only gets called if the base class doTestStepPreambleL() did
|
sl@0
|
66 |
* not leave. That being the case, the current test result value will be EPass.
|
sl@0
|
67 |
*/
|
sl@0
|
68 |
{
|
sl@0
|
69 |
if (TestStepResult()==EPass)
|
sl@0
|
70 |
{
|
sl@0
|
71 |
|
sl@0
|
72 |
|
sl@0
|
73 |
SetTestStepResult(EPass);
|
sl@0
|
74 |
}
|
sl@0
|
75 |
return TestStepResult();
|
sl@0
|
76 |
}
|
sl@0
|
77 |
|
sl@0
|
78 |
|
sl@0
|
79 |
|
sl@0
|
80 |
TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPostambleL()
|
sl@0
|
81 |
/**
|
sl@0
|
82 |
* @return - TVerdict code
|
sl@0
|
83 |
* Override of base class virtual
|
sl@0
|
84 |
*/
|
sl@0
|
85 |
{
|
sl@0
|
86 |
INFO_PRINTF1(_L("Please delete this line or modify it. I am in Test Step Postamble in Class CKeyExchangeASynchronousGeneralUsageStep"));
|
sl@0
|
87 |
// process something post setting to the test step
|
sl@0
|
88 |
// uncomment the following line if you have common post setting to all the test steps in there
|
sl@0
|
89 |
// CTe_FactoryObjectsSuiteStepBase::doTestStepPostambleL();
|
sl@0
|
90 |
// uncomment the following line if you have post process or remove the following line if no post process
|
sl@0
|
91 |
// SetTestStepResult(EPass); // or EFail
|
sl@0
|
92 |
return TestStepResult();
|
sl@0
|
93 |
}
|