lbs/lbsclient/src/ctlbsclientpostp22.cpp
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2001-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 //
       
    15 
       
    16 
       
    17 
       
    18 //  INCLUDES
       
    19 #include "ctlbsclientpostp22.h"
       
    20 #include "ctlbsclientlog.h"
       
    21 #include "ctlbsclientperiodictester.h"
       
    22 
       
    23 // CONSTANTS
       
    24 _LIT(KServiceName1, " aaaaaaaaaaa");
       
    25 _LIT(KServiceName2, " bbbbbbbbbbb");
       
    26 _LIT(KServiceName3, " ccccccccccc");
       
    27 
       
    28 // ================= MEMBER FUNCTIONS =======================
       
    29 
       
    30 // ---------------------------------------------------------
       
    31 // Constructor.
       
    32 // ---------------------------------------------------------
       
    33 CT_LbsClientPosTp22::CT_LbsClientPosTp22(CT_LbsServer& aParent): CT_LbsPortedStepBase(aParent)
       
    34 	{  
       
    35 	_LIT(KTestName, "TP22 - Periodic Location Updates");
       
    36 	SetTestStepName(KTestName); 
       
    37 	}
       
    38 
       
    39 // ---------------------------------------------------------
       
    40 // Destructor.
       
    41 // ---------------------------------------------------------
       
    42 CT_LbsClientPosTp22::~CT_LbsClientPosTp22()
       
    43 	{
       
    44 	}
       
    45 
       
    46 // ---------------------------------------------------------
       
    47 // CT_LbsClientPosTp22::StartL
       
    48 //
       
    49 // (other items were commented in a header).
       
    50 // ---------------------------------------------------------
       
    51 //
       
    52 void CT_LbsClientPosTp22::StartL()
       
    53     {
       
    54     TInt numberOfRuns = 5;
       
    55 	TTimeIntervalMicroSeconds interval0 = TTimeIntervalMicroSeconds(0);
       
    56 	TTimeIntervalMicroSeconds interval2 = TTimeIntervalMicroSeconds(2000000);
       
    57 	TTimeIntervalMicroSeconds interval4 = TTimeIntervalMicroSeconds(4000000);
       
    58 	TTimeIntervalMicroSeconds interval5 = TTimeIntervalMicroSeconds(5000000);
       
    59 	TTimeIntervalMicroSeconds interval7 = TTimeIntervalMicroSeconds(7000000);
       
    60 	TTimeIntervalMicroSeconds interval8 = TTimeIntervalMicroSeconds(8000000);
       
    61     TTimeIntervalMicroSeconds timeoutValue = TTimeIntervalMicroSeconds(10000000);
       
    62     
       
    63     TUid uidWithTimer = iUidTestTimerPsy;
       
    64 	TUid uidWithoutTimer = iUidTestPsy1;
       
    65     TInt errorsFound = KErrNone;
       
    66     TBuf<150> buf;
       
    67 
       
    68     SetupPsyL(iUidTestTimerPsy);
       
    69 
       
    70     // Prepare for test
       
    71     iPeriodicTester1 = CT_LbsClientPeriodicTester::NewL(interval0, KServiceName1, iLog, uidWithTimer, 0);
       
    72     iPeriodicTester1->RequestNotification();
       
    73     CActiveScheduler::Start();
       
    74     iPeriodicTester1->ClosePositioner();
       
    75 
       
    76 	// 1.
       
    77     _LIT(KPart1, "<<<<<<<<< PART1 >>>>>>>>>>");
       
    78     INFO_PRINTF1(KPart1);
       
    79     iPeriodicTester1->OpenPositionerL(KServiceName1);
       
    80 	iPeriodicTester1->ChangeTestParametersL(interval5, numberOfRuns);
       
    81 
       
    82     iPeriodicTester1->RequestNotification();
       
    83     CActiveScheduler::Start();
       
    84     // Check that correct fix is returned
       
    85     TPositionInfo posInfo;
       
    86     iPeriodicTester1->GetPosition(posInfo);
       
    87 
       
    88     TPosition pos;
       
    89     posInfo.GetPosition(pos);
       
    90     // TestTimerPsy returns 55.0 for Tracking requests and 20.0 for ordinary position requests
       
    91     if (pos.Latitude() != 55.0|| pos.Longitude() != 55.0 || pos.Altitude() != 55.0)
       
    92         {
       
    93         _LIT(KErrorAndLeave, "Wrong position returned from tracking PSY");
       
    94         LogErrorAndLeaveL(KErrorAndLeave);
       
    95         }
       
    96 
       
    97 	iPeriodicTester1->ClosePositioner();
       
    98     if (!iPeriodicTester1->IsCompletedOK())
       
    99         {
       
   100         _LIT(KErr, "iPeriodicTester1 returned error (1): %d");
       
   101         buf.Format(KErr,iPeriodicTester1->GetError());
       
   102         INFO_PRINTF1(buf);
       
   103         errorsFound++;
       
   104         }
       
   105 
       
   106     //Make another ordinary request
       
   107     // Not included in TC
       
   108     iPeriodicTester1->OpenPositionerL(KServiceName1);
       
   109 	iPeriodicTester1->ChangeTestParametersL(interval0, 0);
       
   110 	iPeriodicTester1->RequestNotification();
       
   111 
       
   112 	CActiveScheduler::Start();
       
   113     iPeriodicTester1->GetPosition(posInfo);
       
   114     posInfo.GetPosition(pos);
       
   115     // TestTimerPsy returns 55.0 for Tracking requests and 20.0 for ordinary position requests
       
   116     if (pos.Latitude() != 20.0|| pos.Longitude() != 20.0 || pos.Altitude() != 20.0)
       
   117         {
       
   118         _LIT(KErrorAndLeave, "Wrong position returned from PSY");
       
   119         LogErrorAndLeaveL(KErrorAndLeave);
       
   120         }
       
   121 
       
   122     iPeriodicTester1->ClosePositioner();
       
   123     if (!iPeriodicTester1->IsCompletedOK())
       
   124         {
       
   125         _LIT(KErr, "iPeriodicTester1 returned error (1_1): %d");
       
   126         buf.Format(KErr,iPeriodicTester1->GetError());
       
   127         INFO_PRINTF1(buf);
       
   128         errorsFound++;
       
   129         }
       
   130 
       
   131     ///////////////
       
   132 
       
   133     // 2.
       
   134     _LIT(KPart2, "<<<<<<<<< PART2 >>>>>>>>>>");
       
   135     INFO_PRINTF1(KPart2);
       
   136 	SetupPsyL(uidWithoutTimer);
       
   137 	iPeriodicTester2 = CT_LbsClientPeriodicTester::NewL(interval5, KServiceName2, iLog, uidWithoutTimer, numberOfRuns);
       
   138 	iPeriodicTester2->RequestNotification();
       
   139 	CActiveScheduler::Start();
       
   140 	iPeriodicTester2->ClosePositioner();
       
   141 
       
   142     if (!iPeriodicTester2->IsCompletedOK())
       
   143         {
       
   144         _LIT(KErr, "iPeriodicTester2 returned error (1): %d");
       
   145         buf.Format(KErr,iPeriodicTester2->GetError());
       
   146         INFO_PRINTF1(buf);
       
   147         errorsFound++;
       
   148         }
       
   149 	
       
   150     //Make another ordinary request
       
   151     // Not included in TC
       
   152     iPeriodicTester2->OpenPositionerL(KServiceName1);
       
   153 	iPeriodicTester2->ChangeTestParametersL(interval0, 0);
       
   154 	iPeriodicTester2->RequestNotification();
       
   155 	CActiveScheduler::Start();
       
   156     iPeriodicTester2->ClosePositioner();
       
   157     if (!iPeriodicTester1->IsCompletedOK())
       
   158         {
       
   159         _LIT(KErr, "iPeriodicTester2 returned error (1_1): %d");
       
   160         buf.Format(KErr,iPeriodicTester1->GetError());
       
   161         INFO_PRINTF1(buf);
       
   162         errorsFound++;
       
   163         }
       
   164 
       
   165     ///////////////
       
   166 
       
   167 	// 3.
       
   168     _LIT(KPart3, "<<<<<<<<< PART3 >>>>>>>>>>");
       
   169     INFO_PRINTF1(KPart3);
       
   170 	SetupPsyL(uidWithTimer);
       
   171 	iPeriodicTester1->OpenPositionerL(KServiceName1);
       
   172 
       
   173 	iPeriodicTester1->ChangeTestParametersL(interval7, 3);
       
   174 	iPeriodicTester1->RequestNotification();
       
   175 	CActiveScheduler::Start();
       
   176     if (!iPeriodicTester1->IsCompletedOK())
       
   177         {
       
   178         _LIT(KErr, "iPeriodicTester1 returned error (2): %d");
       
   179         buf.Format(KErr,iPeriodicTester1->GetError());
       
   180         INFO_PRINTF1(buf);
       
   181         errorsFound++;
       
   182         }
       
   183 	
       
   184 	iPeriodicTester1->ChangeTestParametersL(interval4, 5);
       
   185 	iPeriodicTester1->RequestNotification();
       
   186 	CActiveScheduler::Start();
       
   187 	iPeriodicTester1->ClosePositioner();
       
   188 
       
   189     if (!iPeriodicTester1->IsCompletedOK())
       
   190         {
       
   191         _LIT(KErr, "iPeriodicTester1 returned error (3): %d");
       
   192         buf.Format(KErr,iPeriodicTester1->GetError());
       
   193         INFO_PRINTF1(buf);
       
   194         errorsFound++;
       
   195         }
       
   196 
       
   197 	// 4.
       
   198     _LIT(KPart4, "<<<<<<<<< PART4 >>>>>>>>>>");
       
   199     INFO_PRINTF1(KPart4);
       
   200 	SetupPsyL(uidWithoutTimer);
       
   201 	iPeriodicTester2->OpenPositionerL(KServiceName2);
       
   202 	iPeriodicTester2->ChangeTestParametersL(interval7, 3);
       
   203 	iPeriodicTester2->RequestNotification();
       
   204 	CActiveScheduler::Start();
       
   205 
       
   206     if (!iPeriodicTester2->IsCompletedOK())
       
   207         {
       
   208         _LIT(KErr, "iPeriodicTester2 returned error (2): %d");
       
   209         buf.Format(KErr,iPeriodicTester2->GetError());
       
   210         INFO_PRINTF1(buf);
       
   211         errorsFound++;
       
   212         }
       
   213 	
       
   214 	iPeriodicTester2->ChangeTestParametersL(interval4, 5);
       
   215 	iPeriodicTester2->RequestNotification();
       
   216 	CActiveScheduler::Start();
       
   217 	iPeriodicTester2->ClosePositioner();
       
   218 
       
   219     if (!iPeriodicTester2->IsCompletedOK())
       
   220         {
       
   221         _LIT(KErr, "iPeriodicTester2 returned error (3): %d");
       
   222         buf.Format(KErr,iPeriodicTester2->GetError());
       
   223         INFO_PRINTF1(buf);
       
   224         errorsFound++;
       
   225         }
       
   226 	
       
   227 	// 5.
       
   228     _LIT(KPart5, "<<<<<<<<< PART5 >>>>>>>>>>");
       
   229     INFO_PRINTF1(KPart5);
       
   230 	SetupPsyL(uidWithTimer);
       
   231     iPeriodicTester1->OpenPositionerL(KServiceName1);
       
   232 	iPeriodicTester1->ChangeTestParametersL(interval4, 3);
       
   233 	iPeriodicTester1->RequestNotification();
       
   234 	CActiveScheduler::Start();
       
   235     if (!iPeriodicTester1->IsCompletedOK())
       
   236         {
       
   237         _LIT(KErr, "iPeriodicTester1 returned error (4): %d");
       
   238         buf.Format(KErr,iPeriodicTester1->GetError());
       
   239         INFO_PRINTF1(buf);
       
   240         errorsFound++;
       
   241         }
       
   242 
       
   243     iPeriodicTester1->ChangeTestParametersL(interval0, 0);
       
   244 
       
   245     iPeriodicTester1->RequestNotification();
       
   246 	CActiveScheduler::Start();
       
   247     if (!iPeriodicTester1->IsCompletedOK())
       
   248         {
       
   249         _LIT(KErr, "iPeriodicTester1 returned error (4_1): %d");
       
   250         buf.Format(KErr,iPeriodicTester1->GetError());
       
   251         INFO_PRINTF1(buf);
       
   252         errorsFound++;
       
   253         }
       
   254     
       
   255     TPositionInfo posInfo1;
       
   256     iPeriodicTester1->GetPosition(posInfo1);
       
   257 
       
   258     TPosition pos1;
       
   259     posInfo1.GetPosition(pos1);
       
   260     // TestTimerPsy returns 55.0 for Tracking requests and 20.0 for ordinary position requests
       
   261     if (pos1.Latitude() != 20.0 || pos1.Longitude() != 20.0 || pos1.Altitude() != 20.0)
       
   262         {
       
   263         _LIT(KErrorAndLeave, "Wrong position returned from PSY, StopTracking has not been called");
       
   264         LogErrorAndLeaveL(KErrorAndLeave);
       
   265         }
       
   266 
       
   267     iPeriodicTester1->ClosePositioner();
       
   268 
       
   269 	
       
   270 	// 6.
       
   271     _LIT(KPart6, "<<<<<<<<< PART6 >>>>>>>>>>");
       
   272     INFO_PRINTF1(KPart6);
       
   273 	SetupPsyL(uidWithoutTimer);
       
   274     iPeriodicTester2->OpenPositionerL(KServiceName2);
       
   275     // Make two requests (note that nr of requests made is 1 + 1, since one is
       
   276     // made directly when calling RequestNotification)
       
   277     iPeriodicTester2->ChangeTestParametersL(interval0, 1);
       
   278 	iPeriodicTester2->RequestNotification();
       
   279 	CActiveScheduler::Start();
       
   280     iPeriodicTester2->ClosePositioner();
       
   281 
       
   282 
       
   283     if (!iPeriodicTester2->IsCompletedOK())
       
   284         {
       
   285         _LIT(KErr, "iPeriodicTester2 returned error (4): %d");
       
   286         buf.Format(KErr,iPeriodicTester2->GetError());
       
   287         INFO_PRINTF1(buf);
       
   288         errorsFound++;
       
   289         }
       
   290 		
       
   291 	// 7.
       
   292     _LIT(KPart7, "<<<<<<<<< PART7 >>>>>>>>>>");
       
   293     INFO_PRINTF1(KPart7);
       
   294     SetupPsyL(uidWithoutTimer);
       
   295 	iPeriodicTester2->OpenPositionerL(KServiceName2);
       
   296     iPeriodicTester2->ChangeTestParametersL(interval4, 3);
       
   297 	iPeriodicTester2->RequestNotification();
       
   298 	CActiveScheduler::Start();
       
   299     if (!iPeriodicTester2->IsCompletedOK())
       
   300         {
       
   301         _LIT(KErr, "iPeriodicTester2 returned error (5): %d");
       
   302         buf.Format(KErr,iPeriodicTester2->GetError());
       
   303         INFO_PRINTF1(buf);
       
   304         errorsFound++;
       
   305         }
       
   306 
       
   307 	iPeriodicTester2->ChangeTestParametersL(interval0, 0);
       
   308     iPeriodicTester2->ClosePositioner();
       
   309     
       
   310 	// 8.
       
   311     _LIT(KPart8, "<<<<<<<<< PART8 >>>>>>>>>>");
       
   312     INFO_PRINTF1(KPart8);
       
   313 	SetupPsyL(uidWithTimer);
       
   314     iPeriodicTester1->OpenPositionerL(KServiceName1);
       
   315     // Make two requests (note that nr of requests made is 1 + 1, since one is
       
   316     // made directly when calling RequestNotification)
       
   317     iPeriodicTester1->ChangeTestParametersL(interval0, 1);
       
   318 	iPeriodicTester1->RequestNotification();
       
   319 	CActiveScheduler::Start();
       
   320 
       
   321     // Check that correct fix is returned
       
   322     iPeriodicTester1->GetPosition(posInfo1);
       
   323     posInfo1.GetPosition(pos1);
       
   324     // TestTimerPsy returns 55.0 for Tracking requests and 20.0 for ordinary position requests
       
   325     if (pos1.Latitude() != 20.0 || pos1.Longitude() != 20.0 || pos1.Altitude() != 20.0)
       
   326         {
       
   327         _LIT(KErrorAndLeave, "Wrong position returned from PSY, StopTracking has not been called");
       
   328         LogErrorAndLeaveL(KErrorAndLeave);
       
   329         }
       
   330 
       
   331     iPeriodicTester1->ClosePositioner();
       
   332     if (!iPeriodicTester1->IsCompletedOK())
       
   333         {
       
   334         _LIT(KErr, "iPeriodicTester1 returned error (5): %d");
       
   335         buf.Format(KErr,iPeriodicTester1->GetError());
       
   336         INFO_PRINTF1(buf);
       
   337         errorsFound++;
       
   338         }
       
   339     
       
   340 	// 9.
       
   341     _LIT(KPart9, "<<<<<<<<< PART9 >>>>>>>>>>");
       
   342     INFO_PRINTF1(KPart9);
       
   343 	SetupPsyL(uidWithoutTimer);
       
   344 	iPeriodicTester2->OpenPositionerL(KServiceName2);
       
   345     iPeriodicTester2->ChangeTestParametersL(interval4, 3);
       
   346 	iPeriodicTester2->RequestNotification();
       
   347 	CActiveScheduler::Start();
       
   348     if (!iPeriodicTester2->IsCompletedOK())
       
   349         {
       
   350         _LIT(KErr, "iPeriodicTester2 returned error (6): %d");
       
   351         buf.Format(KErr,iPeriodicTester2->GetError());
       
   352         INFO_PRINTF1(buf);
       
   353         errorsFound++;
       
   354         }
       
   355 	
       
   356 	iPeriodicTester2->ChangeRequestorInformation(KServiceName3);
       
   357 	iPeriodicTester2->ChangeTestParametersL(interval4, 3);
       
   358 	iPeriodicTester2->RequestNotification();
       
   359 	CActiveScheduler::Start();
       
   360     if (!iPeriodicTester2->IsCompletedOK())
       
   361         {
       
   362         _LIT(KErr, "iPeriodicTester2 returned error (7): %d");
       
   363         buf.Format(KErr,iPeriodicTester2->GetError());
       
   364         INFO_PRINTF1(buf);
       
   365         errorsFound++;
       
   366         }
       
   367 
       
   368 	iPeriodicTester2->ChangeTestParametersL(interval0, 0);
       
   369     iPeriodicTester2->ClosePositioner();
       
   370     
       
   371 	// 10.
       
   372     _LIT(KPart10, "<<<<<<<<< PART10 >>>>>>>>>>");
       
   373     INFO_PRINTF1(KPart10);
       
   374 	iPeriodicTester2->OpenPositionerL(KServiceName2);
       
   375     iPeriodicTester2->ChangeTestParametersL(interval4, 0);
       
   376 	iPeriodicTester2->RequestNotification();
       
   377 	CActiveScheduler::Start();
       
   378     if (!iPeriodicTester2->IsCompletedOK())
       
   379         {
       
   380         _LIT(KErr, "iPeriodicTester2 returned error (8): %d");
       
   381         buf.Format(KErr,iPeriodicTester2->GetError());
       
   382         INFO_PRINTF1(buf);
       
   383         errorsFound++;
       
   384         }
       
   385 
       
   386 	iPeriodicTester2->ChangeTestParametersL(interval0, 0);
       
   387     iPeriodicTester2->ClosePositioner();
       
   388 
       
   389 	// 11.
       
   390     _LIT(KPart11, "<<<<<<<<< PART11 >>>>>>>>>>");
       
   391     INFO_PRINTF1(KPart11);
       
   392 	iPeriodicTester2->OpenPositionerL(KServiceName2);
       
   393     iPeriodicTester2->ChangeTestParametersL(interval4, 0); //only one periodic
       
   394 	iPeriodicTester2->RequestNotification();
       
   395 	CActiveScheduler::Start();
       
   396 	iPeriodicTester2->ClosePositioner();
       
   397     if (!iPeriodicTester2->IsCompletedOK())
       
   398         {
       
   399         _LIT(KErr, "iPeriodicTester2 returned error (9): %d");
       
   400         buf.Format(KErr,iPeriodicTester2->GetError());
       
   401         INFO_PRINTF1(buf);
       
   402         errorsFound++;
       
   403         }
       
   404 
       
   405 	// 12.
       
   406     _LIT(KPart12, "<<<<<<<<< PART12 >>>>>>>>>>");
       
   407     INFO_PRINTF1(KPart12);
       
   408 	iPeriodicTester2->OpenPositionerL(KServiceName2);
       
   409 	iPeriodicTester2->ChangeTestParametersL(interval8, 2);
       
   410 	iPeriodicTester2->RequestNotification();
       
   411 	CActiveScheduler::Start();
       
   412     if (!iPeriodicTester2->IsCompletedOK())
       
   413         {
       
   414         _LIT(KErr, "iPeriodicTester2 returned error (10): %d");
       
   415         buf.Format(KErr,iPeriodicTester2->GetError());
       
   416         INFO_PRINTF1(buf);
       
   417         errorsFound++;
       
   418         }
       
   419 	
       
   420     // Check that setting MaxAge does not "screw" things up
       
   421     iPeriodicTester2->SetMaxAgeL(interval2);
       
   422 
       
   423 	iPeriodicTester2->ChangeTestParametersL(interval8, 2);
       
   424 	iPeriodicTester2->RequestNotification();
       
   425 	CActiveScheduler::Start();
       
   426     if (!iPeriodicTester2->IsCompletedOK())
       
   427         {
       
   428         _LIT(KErr, "iPeriodicTester2 returned error (11): %d");
       
   429         buf.Format(KErr,iPeriodicTester2->GetError());
       
   430         INFO_PRINTF1(buf);
       
   431         errorsFound++;
       
   432         }
       
   433 
       
   434 	iPeriodicTester2->SetPartialUpdateL(ETrue);
       
   435 	iPeriodicTester2->ChangeTestParametersL(interval8, 2);
       
   436 	iPeriodicTester2->RequestNotification();
       
   437 	CActiveScheduler::Start();
       
   438     if (!iPeriodicTester2->IsCompletedOK())
       
   439         {
       
   440         _LIT(KErr, "iPeriodicTester2 returned error (12): %d");
       
   441         buf.Format(KErr,iPeriodicTester2->GetError());
       
   442         INFO_PRINTF1(buf);
       
   443         errorsFound++;
       
   444         }
       
   445 
       
   446 	iPeriodicTester2->SetTimeOutL(timeoutValue); //must be greater than the interval
       
   447 	iPeriodicTester2->ChangeTestParametersL(interval8, 2);
       
   448 	iPeriodicTester2->RequestNotification();
       
   449 	CActiveScheduler::Start();
       
   450     iPeriodicTester2->ClosePositioner();
       
   451     if (!iPeriodicTester2->IsCompletedOK())
       
   452         {
       
   453         _LIT(KErr, "iPeriodicTester2 returned error (13): %d");
       
   454         buf.Format(KErr,iPeriodicTester2->GetError());
       
   455         INFO_PRINTF1(buf);
       
   456         errorsFound++;
       
   457         }
       
   458 
       
   459 	//13.
       
   460     _LIT(KPart13, "<<<<<<<<< PART13 >>>>>>>>>>");
       
   461     INFO_PRINTF1(KPart13);
       
   462 	iPeriodicTester2->OpenPositionerL(KServiceName2);
       
   463     iPeriodicTester2->ChangeTestParametersL(interval4, 4);
       
   464 	iPeriodicTester2->SetChangeParametersPrematurely(ETrue);
       
   465 	iPeriodicTester2->RequestNotification();
       
   466 	CActiveScheduler::Start();
       
   467     iPeriodicTester2->ClosePositioner();
       
   468 
       
   469     if (!iPeriodicTester2->IsCompletedOK())
       
   470         {
       
   471         _LIT(KErr, "iPeriodicTester2 returned error (8): %d");
       
   472         buf.Format(KErr,iPeriodicTester2->GetError());
       
   473         INFO_PRINTF1(buf);
       
   474         errorsFound++;
       
   475         }
       
   476 
       
   477     if (errorsFound != KErrNone)
       
   478         {
       
   479         _LIT(KErrorAndLeave, "Errors found in TP22");
       
   480         LogErrorAndLeaveL(KErrorAndLeave);
       
   481         }
       
   482 	}
       
   483 
       
   484 void CT_LbsClientPosTp22::CloseTest()
       
   485 	{
       
   486 	delete iPeriodicTester1;
       
   487 	iPeriodicTester1 = NULL;
       
   488 	delete iPeriodicTester2;
       
   489 	iPeriodicTester2 = NULL;
       
   490 	iRequestArray.Reset();
       
   491 	iRequestArray.Close();
       
   492 	}
       
   493 
       
   494 // End of file