datacommsserver/esockserver/test/providers/dummy/src/dummypr_factory.cpp
branchRCL_3
changeset 69 9d7ce34704c8
parent 66 cbb19216b74d
child 70 b564fb5fd78b
equal deleted inserted replaced
67:00c6709d25aa 69:9d7ce34704c8
   327 	}
   327 	}
   328 
   328 
   329 ACommsFactoryNodeId* CDummyFlowFactory::DoFindOrCreateObjectL(TFactoryQueryBase& aQuery)
   329 ACommsFactoryNodeId* CDummyFlowFactory::DoFindOrCreateObjectL(TFactoryQueryBase& aQuery)
   330 	{
   330 	{
   331 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
   331 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
   332 	User::After(0.3*1000000); //Artificial yield to test cancellation. Do not remove.
       
   333 
       
   334 	if(query.iMessageId != TCFServiceProvider::TCommsBinderRequest::Id())
   332 	if(query.iMessageId != TCFServiceProvider::TCommsBinderRequest::Id())
   335 		{
   333 		{
   336 		//the factory only reacts to creation triggered by TCommsBinderRequest
   334 		//the factory only reacts to creation triggered by TCommsBinderRequest
   337 		//otherwise it bails out - flow not needed for the stack setup.
   335 		//otherwise it bails out - flow not needed for the stack setup.
   338 		return NULL;
   336 		return NULL;