telephonyserverplugins/common_tsy/test/component/src/cctsytelephonyaudiocontrolfu.cpp
branchRCL_3
changeset 8 3f227a47ad75
parent 0 3553901f7fa8
equal deleted inserted replaced
7:fe8b59ab9fa0 8:3f227a47ad75
  3728     error = call.OpenNewCall( line );
  3728     error = call.OpenNewCall( line );
  3729     CleanupClosePushL( call );
  3729     CleanupClosePushL( call );
  3730     ASSERT_EQUALS( KErrNone, error );
  3730     ASSERT_EQUALS( KErrNone, error );
  3731 
  3731 
  3732     RMobilePhone::TMobileService mobileService2( RMobilePhone::EAuxVoiceService );
  3732     RMobilePhone::TMobileService mobileService2( RMobilePhone::EAuxVoiceService );
  3733     RMobileCall::TMobileCallParamsV7 callParams2; 
       
  3734     RMobileCall::TMobileCallInfoV8 callInfo2;   
  3733     RMobileCall::TMobileCallInfoV8 callInfo2;   
  3735     callParams2.iSpeakerControl  = RCall::EMonitorSpeakerControlOnUntilCarrier;
  3734     callParams.iSpeakerControl  = RCall::EMonitorSpeakerControlOnUntilCarrier;
  3736     callParams2.iSpeakerVolume   = RCall::EMonitorSpeakerVolumeLow;
  3735     callParams.iSpeakerVolume   = RCall::EMonitorSpeakerVolumeLow;
  3737     callParams2.iInterval        = 100;
  3736     callParams.iInterval        = 100;
  3738     callParams2.iWaitForDialTone = RCall::EDialToneWait;
  3737     callParams.iWaitForDialTone = RCall::EDialToneWait;
  3739     callParams2.iIdRestrict = RMobileCall::EIdRestrictDefault;
  3738     callParams.iIdRestrict = RMobileCall::EIdRestrictDefault;
  3740     callParams2.iCug.iExplicitInvoke = EFalse;
  3739     callParams.iCug.iExplicitInvoke = EFalse;
  3741     callParams2.iCug.iCugIndex = 0xFFFF;
  3740     callParams.iCug.iCugIndex = 0xFFFF;
  3742     callParams2.iCug.iSuppressPrefCug = EFalse;
  3741     callParams.iCug.iSuppressPrefCug = EFalse;
  3743     callParams2.iCug.iSuppressOA = EFalse;
  3742     callParams.iCug.iSuppressOA = EFalse;
  3744     callParams2.iAutoRedial = EFalse;
  3743     callParams.iAutoRedial = EFalse;
  3745     callInfo2.iValid = RMobileCall::KCallDialledParty | RMobileCall::KCallAlternating;    
  3744     callInfo2.iValid = RMobileCall::KCallDialledParty | RMobileCall::KCallAlternating;    
  3746     callInfo2.iService   = mobileService2;
  3745     callInfo2.iService   = mobileService2;
  3747     callInfo2.iStatus    = RMobileCall::EStatusUnknown;
  3746     callInfo2.iStatus    = RMobileCall::EStatusUnknown;
  3748     callInfo2.iCallId    =-1;
  3747     callInfo2.iCallId    =-1;
  3749     callInfo2.iExitCode  =0; 
  3748     callInfo2.iExitCode  =0; 
  3752     callInfo2.iPrivacy               = RMobilePhone::EPrivacyUnspecified;
  3751     callInfo2.iPrivacy               = RMobilePhone::EPrivacyUnspecified;
  3753     callInfo2.iAlternatingCall       = RMobilePhone::EAlternatingModeUnspecified;    
  3752     callInfo2.iAlternatingCall       = RMobilePhone::EAlternatingModeUnspecified;    
  3754     callInfo2.iDialledParty.iNumberPlan = RMobilePhone::EUnknownNumberingPlan;
  3753     callInfo2.iDialledParty.iNumberPlan = RMobilePhone::EUnknownNumberingPlan;
  3755     callInfo2.iDialledParty.iTypeOfNumber = RMobilePhone::EUnknownNumber;   
  3754     callInfo2.iDialledParty.iTypeOfNumber = RMobilePhone::EUnknownNumber;   
  3756     callInfo2.iDialledParty.iTelNumber.Copy( KPhoneNumber );    
  3755     callInfo2.iDialledParty.iTelNumber.Copy( KPhoneNumber );    
  3757     TMockLtsyCallData2<RMobileCall::TMobileCallParamsV1, RMobileCall::TMobileCallInfoV1> mockData3(0, mobileService2, callParams2, callInfo2);
  3756     TMockLtsyCallData2<RMobileCall::TMobileCallParamsV1, RMobileCall::TMobileCallInfoV1> mockData3(0, mobileService2, callParams, callInfo2);
  3758     TMockLtsyCallData0 mockData4(callId, mobileService2);
  3757     TMockLtsyCallData0 mockData4(callId, mobileService2);
  3759 
  3758 
  3760     RCall::TCallParams callParamsX2;
  3759     RCall::TCallParams callParamsX2;
  3761     TPckg<RCall::TCallParams> pckgCallParamsX2(callParamsX2);
  3760     TPckg<RCall::TCallParams> pckgCallParamsX2(callParamsX2);
  3762 
  3761 
  3807     CleanupClosePushL( call );
  3806     CleanupClosePushL( call );
  3808     ASSERT_EQUALS( KErrNone, error );
  3807     ASSERT_EQUALS( KErrNone, error );
  3809 
  3808 
  3810     // prepare MockLTSY
  3809     // prepare MockLTSY
  3811     CallGetMobileCallInfoL(callId, mobileService, KPhoneNumber);
  3810     CallGetMobileCallInfoL(callId, mobileService, KPhoneNumber);
  3812     RMobileCall::TMobileCallInfoV8 callInfo3;
  3811     callInfo2.iValid = RMobileCall::KCallDialledParty | RMobileCall::KCallAlternating;    
  3813     callInfo3.iValid = RMobileCall::KCallDialledParty | RMobileCall::KCallAlternating;    
  3812     callInfo2.iService   = mobileService;
  3814     callInfo3.iService   = mobileService;
  3813     callInfo2.iStatus    = RMobileCall::EStatusUnknown;
  3815     callInfo3.iStatus    = RMobileCall::EStatusUnknown;
  3814     callInfo2.iCallId    =-1;
  3816     callInfo3.iCallId    =-1;
  3815     callInfo2.iExitCode  =0; 
  3817     callInfo3.iExitCode  =0; 
  3816     callInfo2.iEmergency =0;
  3818     callInfo3.iEmergency =0;
  3817     callInfo2.iForwarded =0; 
  3819     callInfo3.iForwarded =0; 
  3818     callInfo2.iPrivacy               = RMobilePhone::EPrivacyUnspecified;
  3820     callInfo3.iPrivacy               = RMobilePhone::EPrivacyUnspecified;
  3819     callInfo2.iAlternatingCall       = RMobilePhone::EAlternatingModeUnspecified;    
  3821     callInfo3.iAlternatingCall       = RMobilePhone::EAlternatingModeUnspecified;    
  3820     callInfo2.iDialledParty.iNumberPlan = RMobilePhone::EUnknownNumberingPlan;
  3822     callInfo3.iDialledParty.iNumberPlan = RMobilePhone::EUnknownNumberingPlan;
  3821     callInfo2.iDialledParty.iTypeOfNumber = RMobilePhone::EUnknownNumber;   
  3823     callInfo3.iDialledParty.iTypeOfNumber = RMobilePhone::EUnknownNumber;   
  3822     callInfo2.iDialledParty.iTelNumber.Copy( KPhoneNumber );
  3824     callInfo3.iDialledParty.iTelNumber.Copy( KPhoneNumber );
  3823     TMockLtsyCallData2<RMobileCall::TMobileCallParamsV1, RMobileCall::TMobileCallInfoV1> mockData5(0, mobileService, callParams, callInfo2);
  3825     TMockLtsyCallData2<RMobileCall::TMobileCallParamsV1, RMobileCall::TMobileCallInfoV1> mockData5(0, mobileService, callParams, callInfo3);
       
  3826     mockData5.SerialiseL(expectData);
  3824     mockData5.SerialiseL(expectData);
  3827 
  3825 
  3828     iMockLTSY.ExpectL(EEtelCallDial, expectData);
  3826     iMockLTSY.ExpectL(EEtelCallDial, expectData);
  3829     mockData0.SerialiseL(completeData);
  3827     mockData0.SerialiseL(completeData);
  3830     iMockLTSY.CompleteL(EEtelCallDial, KErrNone, completeData);
  3828     iMockLTSY.CompleteL(EEtelCallDial, KErrNone, completeData);