datasourcemodules/gpspositioningmodule/lbsagpspsy/test/src/te_lbsagpspsysuite.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_lbsagpspsysuite");
    34 _LIT(KServerName, "te_lbsagpspsysuite");
    35 
    35 
    36 /** The UID of the unit test suite*/
    36 /** The UID of the unit test suite*/
    37 const TUid  KServerUid = {0x10285ACB};
    37 //const TUid  KServerUid = {0x10285ACB};
    38 
    38 
    39 const RLbsPositionUpdateRequests::TChannelIdentifer KChannelIdentifierLS2GpsLocManager = 
    39 const RLbsPositionUpdateRequests::TChannelIdentifer KChannelIdentifierLS2GpsLocManager = 
    40 	{
    40 	{
    41 		{KLbsGpsLocManagerUidValue},{KLbsLocServerUidValue}
    41 		{KLbsGpsLocManagerUidValue},{KLbsLocServerUidValue}
    42 	};
    42 	};
    67 void CTe_LbsAgpsPsySuite::ConstructL()
    67 void CTe_LbsAgpsPsySuite::ConstructL()
    68 	{
    68 	{
    69 	//ConstructL of the base class
    69 	//ConstructL of the base class
    70 	CTestServer::ConstructL(KServerName);
    70 	CTestServer::ConstructL(KServerName);
    71 	
    71 	
    72 	CTe_SystemStarter starter(KServerUid);
    72     CTe_SystemStarter::DefineLbsPropertiesL();
    73 	
       
    74 	starter.RestartLbs_RootOnlyL(iFirstExe);
       
    75 
       
    76 	}
    73 	}
    77 
    74 
    78 CTe_LbsAgpsPsySuite::~CTe_LbsAgpsPsySuite()
    75 CTe_LbsAgpsPsySuite::~CTe_LbsAgpsPsySuite()
    79 	{
    76 	{
    80 	CTe_SystemStarter starter(KServerUid);
    77     TRAP_IGNORE(CTe_SystemStarter::DeleteLbsPropertiesL());
    81 	
       
    82 	TRAP_IGNORE(starter.RestartLbs_NormalL(iFirstExe));
       
    83 
       
    84 	}
    78 	}
    85 
    79 
    86 /**
    80 /**
    87 Overrides the pure virtual CTestServer::CreateTestStep. Creates a test step by its name.
    81 Overrides the pure virtual CTestServer::CreateTestStep. Creates a test step by its name.
    88 
    82