datasourcemodules/gpspositioningmodule/lbsgpspsy/test/src/te_lbsgpspsysuite.cpp
branchRCL_3
changeset 65 a796fdeeb33c
parent 52 29dbbeac905d
equal deleted inserted replaced
58:87622fad6b51 65:a796fdeeb33c
    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::DefineLbsPropertiesL();
    73 	CTe_SystemStarter starter(KServerUid);
       
    74 	
       
    75 	starter.RestartLbs_RootOnlyL(iFirstExe);
    74 	}
    76 	}
    75 
    77 
    76 CTe_LbsGpsPsySuite::~CTe_LbsGpsPsySuite()
    78 CTe_LbsGpsPsySuite::~CTe_LbsGpsPsySuite()
    77 	{
    79 	{
    78     TRAP_IGNORE(CTe_SystemStarter::DeleteLbsPropertiesL());
    80 	CTe_SystemStarter starter(KServerUid);
       
    81 	
       
    82 	TRAP_IGNORE(starter.RestartLbs_NormalL(iFirstExe));
    79 	}
    83 	}
    80 
    84 
    81 /**
    85 /**
    82 Overrides the pure virtual CTestServer::CreateTestStep. Creates a test step by its name.
    86 Overrides the pure virtual CTestServer::CreateTestStep. Creates a test step by its name.
    83 
    87