equal
deleted
inserted
replaced
82 |
82 |
83 void CT_LbsMolrTracking::ConstructL() |
83 void CT_LbsMolrTracking::ConstructL() |
84 { |
84 { |
85 // Create the base class objects. |
85 // Create the base class objects. |
86 CT_LbsHybridMOLRStep::ConstructL(); |
86 CT_LbsHybridMOLRStep::ConstructL(); |
|
87 iLbsPositioningStatus = CLbsPositioningStatus::NewL(*this); |
|
88 iPosStatusCount = 0; |
|
89 iPositioningStatus = CLbsPositioningStatus::ELbsPositioningStatusNotActive; |
87 } |
90 } |
88 |
91 |
89 /** |
92 /** |
90 * Destructor |
93 * Destructor |
91 */ |
94 */ |
92 CT_LbsMolrTracking::~CT_LbsMolrTracking() |
95 CT_LbsMolrTracking::~CT_LbsMolrTracking() |
93 { |
96 { |
|
97 delete iLbsPositioningStatus; |
94 TRAP_IGNORE(doTestStepPostambleL()); |
98 TRAP_IGNORE(doTestStepPostambleL()); |
95 } |
99 } |
96 |
100 |
97 /** |
101 /** |
98 Things read from the ini file: |
102 Things read from the ini file: |
230 { |
234 { |
231 INFO_PRINTF1(_L("CT_LbsMolrTracking::doTestStepPreambleL() - FAILED: no position originator configured")); |
235 INFO_PRINTF1(_L("CT_LbsMolrTracking::doTestStepPreambleL() - FAILED: no position originator configured")); |
232 TEST(EFalse); |
236 TEST(EFalse); |
233 } |
237 } |
234 |
238 |
|
239 _LIT(KPositioningIndicator, "PositioningIndicator"); |
|
240 TInt positioningIndicatorCount; |
|
241 if(GetIntFromConfig(ConfigSection(), KPositioningIndicator, positioningIndicatorCount)) |
|
242 { |
|
243 iPositioningIndicatorCount = positioningIndicatorCount; |
|
244 } |
|
245 else |
|
246 { |
|
247 iPositioningIndicatorCount = 0; |
|
248 } |
235 |
249 |
236 // Get the SpecialTestModemode setting ... 0 means not in a LastKnownPosition mode |
250 // Get the SpecialTestModemode setting ... 0 means not in a LastKnownPosition mode |
237 _LIT(KLastKnownPosition, "SpecialTestMode"); |
251 _LIT(KLastKnownPosition, "SpecialTestMode"); |
238 TInt specialTestModeInt; |
252 TInt specialTestModeInt; |
239 if(GetIntFromConfig(ConfigSection(), KLastKnownPosition, specialTestModeInt)) |
253 if(GetIntFromConfig(ConfigSection(), KLastKnownPosition, specialTestModeInt)) |
272 } |
286 } |
273 |
287 |
274 TVerdict CT_LbsMolrTracking::doTestStepPostambleL() |
288 TVerdict CT_LbsMolrTracking::doTestStepPostambleL() |
275 { |
289 { |
276 INFO_PRINTF1(_L(">>CT_LbsMolrTracking::doTestStepPostambleL()")); |
290 INFO_PRINTF1(_L(">>CT_LbsMolrTracking::doTestStepPostambleL()")); |
|
291 if(iPositioningIndicatorCount>0) |
|
292 { |
|
293 TESTL(iPositioningIndicatorCount==iPosStatusCount); |
|
294 TESTL(iPositioningStatus == CLbsPositioningStatus::ELbsPositioningStatusNotActive); |
|
295 } |
277 iClients.ResetAndDestroy(); |
296 iClients.ResetAndDestroy(); |
278 iClientTestManagers.ResetAndDestroy(); |
297 iClientTestManagers.ResetAndDestroy(); |
279 |
298 |
280 if(iNetworkProtocol) |
299 if(iNetworkProtocol) |
281 { |
300 { |
387 TInt numberOfNPUDs = client.iNumberOfNPUDs; |
406 TInt numberOfNPUDs = client.iNumberOfNPUDs; |
388 TInt positionsReceived = client.iPositionsReceived; |
407 TInt positionsReceived = client.iPositionsReceived; |
389 |
408 |
390 INFO_PRINTF2(_L("Client number %d received a position"), aObjectId); |
409 INFO_PRINTF2(_L("Client number %d received a position"), aObjectId); |
391 INFO_PRINTF3(_L("Client now has %d of %d positions"), positionsReceived+1, numberOfNPUDs); |
410 INFO_PRINTF3(_L("Client now has %d of %d positions"), positionsReceived+1, numberOfNPUDs); |
392 |
411 if(iPositioningIndicatorCount>0) |
|
412 { |
|
413 TESTL(iPosStatusCount==1); |
|
414 TESTL(iPositioningStatus == CLbsPositioningStatus::ELbsPositioningStatusActive); |
|
415 } |
393 |
416 |
394 if (iSpecialTestMode == 2) |
417 if (iSpecialTestMode == 2) |
395 { |
418 { |
396 |
419 |
397 INFO_PRINTF1(_L("testing MaxAge feature")); |
420 INFO_PRINTF1(_L("testing MaxAge feature")); |
724 |
747 |
725 CleanupStack::PopAndDestroy(prioList); |
748 CleanupStack::PopAndDestroy(prioList); |
726 CleanupStack::PopAndDestroy(moduleUpdate); |
749 CleanupStack::PopAndDestroy(moduleUpdate); |
727 CleanupStack::PopAndDestroy(db); |
750 CleanupStack::PopAndDestroy(db); |
728 } |
751 } |
|
752 void CT_LbsMolrTracking::OnPositioningStatusUpdate(const CLbsPositioningStatus::TLbsPositioningStatus& aPositioningStatus) |
|
753 { |
|
754 iPosStatusCount++; |
|
755 iPositioningStatus = aPositioningStatus; |
|
756 } |