|
1 /* |
|
2 * Copyright (c) 2005-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 * Example CTestStep derived implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 */ |
|
24 #include "keyexchangeasynchronousgeneralusagestep.h" |
|
25 |
|
26 CKeyExchangeASynchronousGeneralUsageStep::~CKeyExchangeASynchronousGeneralUsageStep() |
|
27 /** |
|
28 * Destructor |
|
29 */ |
|
30 { |
|
31 } |
|
32 |
|
33 CKeyExchangeASynchronousGeneralUsageStep::CKeyExchangeASynchronousGeneralUsageStep() |
|
34 /** |
|
35 * Constructor |
|
36 */ |
|
37 { |
|
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); |
|
42 } |
|
43 |
|
44 TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPreambleL() |
|
45 /** |
|
46 * @return - TVerdict code |
|
47 * Override of base class virtual |
|
48 */ |
|
49 { |
|
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(); |
|
58 } |
|
59 |
|
60 |
|
61 TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepL() |
|
62 /** |
|
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. |
|
67 */ |
|
68 { |
|
69 if (TestStepResult()==EPass) |
|
70 { |
|
71 |
|
72 |
|
73 SetTestStepResult(EPass); |
|
74 } |
|
75 return TestStepResult(); |
|
76 } |
|
77 |
|
78 |
|
79 |
|
80 TVerdict CKeyExchangeASynchronousGeneralUsageStep::doTestStepPostambleL() |
|
81 /** |
|
82 * @return - TVerdict code |
|
83 * Override of base class virtual |
|
84 */ |
|
85 { |
|
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(); |
|
93 } |