datacommsserver/esockserver/test/providers/dummy/src/dummypr_factory.cpp
branchRCL_3
changeset 70 b564fb5fd78b
parent 69 9d7ce34704c8
equal deleted inserted replaced
69:9d7ce34704c8 70:b564fb5fd78b
   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 
   332 	if(query.iMessageId != TCFServiceProvider::TCommsBinderRequest::Id())
   334 	if(query.iMessageId != TCFServiceProvider::TCommsBinderRequest::Id())
   333 		{
   335 		{
   334 		//the factory only reacts to creation triggered by TCommsBinderRequest
   336 		//the factory only reacts to creation triggered by TCommsBinderRequest
   335 		//otherwise it bails out - flow not needed for the stack setup.
   337 		//otherwise it bails out - flow not needed for the stack setup.
   336 		return NULL;
   338 		return NULL;