17 |
17 |
18 #include <centralrepository.h> |
18 #include <centralrepository.h> |
19 #include <lbs/test/lbsnetsimtest.h> |
19 #include <lbs/test/lbsnetsimtest.h> |
20 #include <test/TestExecuteStepBase.h> |
20 #include <test/TestExecuteStepBase.h> |
21 |
21 |
22 #include "lbssystemcontroller.h" |
|
23 #include "lbsrootcenrepdefs.h" |
|
24 |
|
25 #include "te_lbspsyutils.h" |
22 #include "te_lbspsyutils.h" |
26 #include "te_lbsnetpsysuite.h" |
23 #include "te_lbsnetpsysuite.h" |
27 #include "te_lbspsyposupdatestep.h" |
24 #include "te_lbspsyposupdatestep.h" |
28 #include "te_lbspsyposupdatetimingstep.h" |
25 #include "te_lbspsyposupdatetimingstep.h" |
29 #include "te_lbspsyposupdateerrstep.h" |
26 #include "te_lbspsyposupdateerrstep.h" |
30 #include "te_lbspsymodinfostep.h" |
27 #include "te_lbspsymodinfostep.h" |
31 |
28 |
|
29 #include "te_lbsinifilereader.h" |
|
30 |
32 /** The string name of the test suite */ |
31 /** The string name of the test suite */ |
33 _LIT(KServerName, "te_lbsnetpsysuite"); |
32 _LIT(KServerName, "te_lbsnetpsysuite"); |
34 |
33 |
35 /** The UID of the unit test suite*/ |
34 /** The UID of the unit test suite*/ |
36 const TUid KServerUid = {0x10285ACB}; |
35 //const TUid KServerUid = {0x10285ACB}; |
37 |
36 |
38 const RLbsPositionUpdateRequests::TChannelIdentifer KChannelIdentifierLS2NetLocManager = |
37 const RLbsPositionUpdateRequests::TChannelIdentifer KChannelIdentifierLS2NetLocManager = |
39 { |
38 { |
40 {KLbsNetLocManagerUidValue},{KLbsLocServerUidValue} |
39 {KLbsNetLocManagerUidValue},{KLbsLocServerUidValue} |
41 }; |
40 }; |
58 return server; |
57 return server; |
59 } |
58 } |
60 |
59 |
61 /** |
60 /** |
62 2nd phase constructor. Calls the base class method passing the name of the suite. |
61 2nd phase constructor. Calls the base class method passing the name of the suite. |
63 |
62 Also initializes the lbsqualityprofile and the internal buses used for position requests and updates |
64 @leave If a error happens, it leaves with one of the system error codes. |
63 @leave If a error happens, it leaves with one of the system error codes. |
65 */ |
64 */ |
66 void CTe_LbsNetPsySuite::ConstructL() |
65 void CTe_LbsNetPsySuite::ConstructL() |
67 { |
66 { |
68 //ConstructL of the base class |
67 //ConstructL of the base class |
69 CTestServer::ConstructL(KServerName); |
68 CTestServer::ConstructL(KServerName); |
70 |
69 CTe_SystemStarter::DefineLbsPropertiesL(); |
71 CTe_SystemStarter starter(KServerUid); |
|
72 |
|
73 starter.RestartLbs_RootOnlyL(iFirstExe); |
|
74 } |
70 } |
75 |
71 |
76 CTe_LbsNetPsySuite::~CTe_LbsNetPsySuite() |
72 CTe_LbsNetPsySuite::~CTe_LbsNetPsySuite() |
77 { |
73 { |
78 CTe_SystemStarter starter(KServerUid); |
74 TRAP_IGNORE(CTe_SystemStarter::DeleteLbsPropertiesL()); |
79 |
|
80 TRAP_IGNORE(starter.RestartLbs_NormalL(iFirstExe)); |
|
81 } |
75 } |
82 |
76 |
83 /** |
77 /** |
84 Overrides the pure virtual CTestServer::CreateTestStep. Creates a test step by its name. |
78 Overrides the pure virtual CTestServer::CreateTestStep. Creates a test step by its name. |
85 |
79 |