telephonyserverplugins/common_tsy/test/component/src/cctsyconferencecallcontrolfu.cpp
branchRCL_3
changeset 14 7ef16719d8cb
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
9:962e6306d9d2 14:7ef16719d8cb
  3335 void CCTsyConferenceCallControlFU::TestHangUp0002L()
  3335 void CCTsyConferenceCallControlFU::TestHangUp0002L()
  3336 	{
  3336 	{
  3337 
  3337 
  3338 	OpenEtelServerL(EUseExtendedError);
  3338 	OpenEtelServerL(EUseExtendedError);
  3339 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
  3339 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
       
  3340 	
  3340 	OpenPhoneL();
  3341 	OpenPhoneL();
  3341 
  3342 
  3342 	RBuf8 data;
  3343 	RBuf8 data;
  3343 	CleanupClosePushL(data);
  3344 	CleanupClosePushL(data);
  3344 	
  3345 	
  3417 	data.Close();
  3418 	data.Close();
  3418 	mockData5.SerialiseL(data);   
  3419 	mockData5.SerialiseL(data);   
  3419 	TRequestStatus mockLtsyStatus;
  3420 	TRequestStatus mockLtsyStatus;
  3420 	iMockLTSY.NotifyTerminated(mockLtsyStatus);      
  3421 	iMockLTSY.NotifyTerminated(mockLtsyStatus);      
  3421 	iMockLTSY.CompleteL(EMobileCallNotifyMobileCallStatusChange, KErrNone, data);
  3422 	iMockLTSY.CompleteL(EMobileCallNotifyMobileCallStatusChange, KErrNone, data);
  3422 	    
  3423 	 
  3423 	// when call becomes idle, remaining duration of the call is added to life time param in LTSY:		
       
  3424 	TUint32 duration = 5;	// this is a dummy value, which won't be checked by mocksy engine
       
  3425 	TMockLtsyData1<TUint32> ltsyData( duration );
       
  3426 	data.Close();
       
  3427 	ltsyData.SerialiseL(data);	
       
  3428 	iMockLTSY.ExpectL(EMmTsyUpdateLifeTimeIPC, data);	            
       
  3429 	    
       
  3430 	User::WaitForRequest(mockLtsyStatus); 	
  3424 	User::WaitForRequest(mockLtsyStatus); 	
  3431 	ASSERT_EQUALS(KErrNone, mockLtsyStatus.Int());   	
  3425 	ASSERT_EQUALS(KErrNone, mockLtsyStatus.Int());   	
  3432 
  3426 
  3433 	// hangup completes here
  3427 	// hangup completes here
  3434 	User::WaitForRequest(reqStatus);
  3428 	User::WaitForRequest(reqStatus);
  3435 	// CTSY has no cancel for this ipc, so request completes with KErrNone
  3429 	// CTSY has no cancel for this ipc, so request completes with KErrNone
  3436 	ASSERT_EQUALS(KErrNone, reqStatus.Int());
  3430 	ASSERT_EQUALS(KErrNone, reqStatus.Int());
  3437 
  3431 	
  3438 	AssertMockLtsyStatusL();
  3432 	AssertMockLtsyStatusL();
  3439 	CleanupStack::PopAndDestroy(10, this); // call5, call4, call3, call2, call, line, callsInConference, conferenceCall, data, this
  3433 	CleanupStack::PopAndDestroy(10, this); // call5, call4, call3, call2, call, line, callsInConference, conferenceCall, data, this
  3440 	
  3434 	
  3441 	}
  3435 	}
  3442 
  3436 
  4387 	//-------------------------------------------------------------------------
  4381 	//-------------------------------------------------------------------------
  4388 	// Test B: Test passing wrong descriptor size to parameter in
  4382 	// Test B: Test passing wrong descriptor size to parameter in
  4389 	// RMobileConferenceCall::GetMobileCallInfo
  4383 	// RMobileConferenceCall::GetMobileCallInfo
  4390  	//-------------------------------------------------------------------------
  4384  	//-------------------------------------------------------------------------
  4391 
  4385 
  4392 	ERR_PRINTF2(_L("<font color=Orange>$CTSYKnownFailure: defect id = %d</font>"), 201701);	
       
  4393     ASSERT_TRUE(EFalse);
       
  4394 
       
  4395 	TBuf8<1> smallSizeBuf;
  4386 	TBuf8<1> smallSizeBuf;
  4396 	res = conferenceCall.GetMobileCallInfo(0, smallSizeBuf);
  4387 	res = conferenceCall.GetMobileCallInfo(0, smallSizeBuf);
  4397     ASSERT_TRUE(KErrNone != res);
  4388     ASSERT_TRUE(KErrNone != res);
  4398 	AssertMockLtsyStatusL();
  4389 	AssertMockLtsyStatusL();
  4399 
  4390