datasourcemodules/gpspositioningmodule/lbsgpspsy/test/src/te_lbsgpspsysuite.cpp
branchRCL_3
changeset 52 29dbbeac905d
parent 0 9cfd9a3ee49c
child 65 a796fdeeb33c
equal deleted inserted replaced
39:a3482a8f15d8 52:29dbbeac905d
    32 
    32 
    33 /** The string name of the test suite */
    33 /** The string name of the test suite */
    34 _LIT(KServerName, "te_lbsgpspsysuite");
    34 _LIT(KServerName, "te_lbsgpspsysuite");
    35 
    35 
    36 /** The UID of the unit test suite*/
    36 /** The UID of the unit test suite*/
    37 const TUid  KServerUid = {0x102869C5};
    37 //const TUid  KServerUid = {0x102869C5};
    38 
    38 
    39 // TODO - put this somewhere that the gps and agps test suites can share it?
    39 // TODO - put this somewhere that the gps and agps test suites can share it?
    40 const RLbsPositionUpdateRequests::TChannelIdentifer KChannelIdentifierLS2GpsLocManager = 
    40 const RLbsPositionUpdateRequests::TChannelIdentifer KChannelIdentifierLS2GpsLocManager = 
    41 	{
    41 	{
    42 		{KLbsGpsLocManagerUidValue},{KLbsLocServerUidValue}
    42 		{KLbsGpsLocManagerUidValue},{KLbsLocServerUidValue}
    68 void CTe_LbsGpsPsySuite::ConstructL()
    68 void CTe_LbsGpsPsySuite::ConstructL()
    69 	{
    69 	{
    70 	//ConstructL of the base class
    70 	//ConstructL of the base class
    71 	CTestServer::ConstructL(KServerName);
    71 	CTestServer::ConstructL(KServerName);
    72 	
    72 	
    73 	CTe_SystemStarter starter(KServerUid);
    73 	CTe_SystemStarter::DefineLbsPropertiesL();
    74 	
       
    75 	starter.RestartLbs_RootOnlyL(iFirstExe);
       
    76 	}
    74 	}
    77 
    75 
    78 CTe_LbsGpsPsySuite::~CTe_LbsGpsPsySuite()
    76 CTe_LbsGpsPsySuite::~CTe_LbsGpsPsySuite()
    79 	{
    77 	{
    80 	CTe_SystemStarter starter(KServerUid);
    78     TRAP_IGNORE(CTe_SystemStarter::DeleteLbsPropertiesL());
    81 	
       
    82 	TRAP_IGNORE(starter.RestartLbs_NormalL(iFirstExe));
       
    83 	}
    79 	}
    84 
    80 
    85 /**
    81 /**
    86 Overrides the pure virtual CTestServer::CreateTestStep. Creates a test step by its name.
    82 Overrides the pure virtual CTestServer::CreateTestStep. Creates a test step by its name.
    87 
    83