datasourcemodules/gpspositioningmodule/lbsagpspsy/test/src/te_lbsagpspsyposupdatemodestep.cpp
equal
deleted
inserted
replaced
33 _LIT(KNewMode, "NewMode"); |
33 _LIT(KNewMode, "NewMode"); |
34 _LIT(KModeToManager, "NewModeToManager"); |
34 _LIT(KModeToManager, "NewModeToManager"); |
35 _LIT(KExpectError, "ExpectError"); |
35 _LIT(KExpectError, "ExpectError"); |
36 |
36 |
37 // lrm TODO - this is ugly, step shouldn't need to know about suite, try to think of alternative: |
37 // lrm TODO - this is ugly, step shouldn't need to know about suite, try to think of alternative: |
38 const TUid KServerUid = {0x10285ACB}; |
38 //const TUid KServerUid = {0x10285ACB}; |
39 |
39 |
40 const TInt KPosAGPSPSYImpl = 0x101fe98c; |
40 const TInt KPosAGPSPSYImpl = 0x101fe98c; |
41 const TInt KPosGPSPSYImpl = 0x101fe98a; |
41 const TInt KPosGPSPSYImpl = 0x101fe98a; |
42 |
42 |
43 |
43 |
54 } |
54 } |
55 |
55 |
56 void CTe_LbsAgpsPsyPosUpdateModeStep::ReallyDoTestStepImpL() |
56 void CTe_LbsAgpsPsyPosUpdateModeStep::ReallyDoTestStepImpL() |
57 { |
57 { |
58 INFO_PRINTF1(_L("CTe_LbsAgpsPsyPosUpdateModeStep::ReallyDoTestStepImpL()")); |
58 INFO_PRINTF1(_L("CTe_LbsAgpsPsyPosUpdateModeStep::ReallyDoTestStepImpL()")); |
59 // Restart LBS so device caps are refreshed: |
59 // Close and re-define the internal buses and quality profile so that device caps are refreshed: |
60 CTe_SystemStarter starter(KServerUid); |
60 |
61 TBuf8<KMaxFileName> firstExe; |
61 CTe_SystemStarter::DeleteLbsPropertiesL(); |
62 starter.RestartLbs_RootOnlyL(firstExe); // lrm TODO - have a separate test step for this to avoid doing for every test case! |
62 CTe_SystemStarter::DefineLbsPropertiesL(); |
63 |
|
64 INFO_PRINTF1(_L("Lbs restarted successfully")); |
|
65 |
63 |
66 // Get settings from config |
64 // Get settings from config |
67 TPositionModuleInfo::TTechnologyType currMode = 0, newMode, newModeToManager = 0; |
65 TPositionModuleInfo::TTechnologyType currMode = 0, newMode, newModeToManager = 0; |
68 TInt expectedError = KErrNone; |
66 TInt expectedError = KErrNone; |
69 GetIntFromConfig(ConfigSection(), KCurrMode, reinterpret_cast<TInt&>(currMode)); |
67 GetIntFromConfig(ConfigSection(), KCurrMode, reinterpret_cast<TInt&>(currMode)); |
247 CleanupStack::PopAndDestroy(aGpsPositionerCurr); |
245 CleanupStack::PopAndDestroy(aGpsPositionerCurr); |
248 |
246 |
249 CleanupStack::PopAndDestroy(admin); |
247 CleanupStack::PopAndDestroy(admin); |
250 CleanupStack::PopAndDestroy(updateRequest); |
248 CleanupStack::PopAndDestroy(updateRequest); |
251 |
249 |
252 TRAP_IGNORE(starter.RestartLbs_NormalL(firstExe)); |
|
253 |
250 |
254 INFO_PRINTF1(_L("CTe_LbsAgpsPsyPosUpdateModeStep::ReallyDoTestStepL() end")); |
251 INFO_PRINTF1(_L("CTe_LbsAgpsPsyPosUpdateModeStep::ReallyDoTestStepL() end")); |
255 |
252 |
256 if(TestStepResult()!=EPass) |
253 if(TestStepResult()!=EPass) |
257 { |
254 { |