|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file CT_LbsStep.cpp |
|
15 // This is the class implementation for the LBS Test Step Base |
|
16 // |
|
17 // |
|
18 |
|
19 #include "ctlbsstep.h" |
|
20 |
|
21 #include "tlbsutils.h" |
|
22 #include "ctlbsasyncwaiter.h" |
|
23 |
|
24 |
|
25 /** |
|
26 * @return - TVerdict |
|
27 * Implementation of CTestStep base class virtual |
|
28 * It is used for doing all initialisation common to derived classes in here. |
|
29 * Make it being able to leave if there are any errors here as there's no point in |
|
30 * trying to run a test step if anything fails. |
|
31 * The leave will be picked up by the framework. |
|
32 */ |
|
33 TVerdict CT_LbsStep::doTestStepPreambleL() |
|
34 { |
|
35 // Process some common pre setting to test steps then set SetTestStepResult to EFail or Epass. |
|
36 INFO_PRINTF1(_L(">>CT_LbsStep::doTestStepPreambleL()")); |
|
37 SetTestStepResult(EPass); |
|
38 |
|
39 return TestStepResult(); |
|
40 } |
|
41 |
|
42 |
|
43 /** |
|
44 * @return - TVerdict |
|
45 * Implementation of CTestStep base class virtual |
|
46 * It is used for doing all after test treatment common to derived classes in here. |
|
47 * Make it being able to leave |
|
48 * The leave will be picked up by the framework. |
|
49 */ |
|
50 TVerdict CT_LbsStep::doTestStepPostambleL() |
|
51 { |
|
52 // Process some common post setting to test steps then set SetTestStepResult to EFail or Epass. |
|
53 INFO_PRINTF1(_L(">>CT_LbsStep::doTestStepPostabmleL()")); |
|
54 |
|
55 //SetTestStepResult(EPass); // or EFail |
|
56 return TestStepResult(); |
|
57 } |
|
58 |
|
59 |
|
60 CT_LbsStep::~CT_LbsStep() |
|
61 { |
|
62 } |
|
63 |
|
64 |
|
65 CT_LbsStep::CT_LbsStep(CT_LbsServer& aParent) : iParent(aParent) |
|
66 { |
|
67 } |