telephonyserver/etelmultimode/TETEL/te_EtelMM/TE_mmphone.cpp
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
child 66 07a122eea281
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
    84 	TestMobileMmsFunctionality(mmPhone, reqStatus);
    84 	TestMobileMmsFunctionality(mmPhone, reqStatus);
    85 	TestMobileAPNControlList(mmPhone, reqStatus);
    85 	TestMobileAPNControlList(mmPhone, reqStatus);
    86 	TestMobileAPNControlListServiceStatus(mmPhone, reqStatus);
    86 	TestMobileAPNControlListServiceStatus(mmPhone, reqStatus);
    87 	TestMobileAirTime(mmPhone, reqStatus);
    87 	TestMobileAirTime(mmPhone, reqStatus);
    88 	TestTerminateAllCalls(mmPhone, reqStatus);
    88 	TestTerminateAllCalls(mmPhone, reqStatus);
       
    89 	TestTerminateActiveCalls(mmPhone, reqStatus);
    89 	TestMobileAutoRedial(mmPhone, reqStatus);
    90 	TestMobileAutoRedial(mmPhone, reqStatus);
    90 	TestMobilePersonalisation(mmPhone, reqStatus);
    91 	TestMobilePersonalisation(mmPhone, reqStatus);
    91 	TestSmartCardHandling(mmPhone, reqStatus);
    92 	TestSmartCardHandling(mmPhone, reqStatus);
    92 	TestGBAAuthenticationL(mmPhone, reqStatus);
    93 	TestGBAAuthenticationL(mmPhone, reqStatus);
    93 	TestMBMSAuthenticationL(mmPhone, reqStatus);
    94 	TestMBMSAuthenticationL(mmPhone, reqStatus);
  5657 	aPhone.TerminateAllCalls(aReqStatus);
  5658 	aPhone.TerminateAllCalls(aReqStatus);
  5658 	aPhone.CancelAsyncRequest(EMobilePhoneTerminateAllCalls);
  5659 	aPhone.CancelAsyncRequest(EMobilePhoneTerminateAllCalls);
  5659 	User::WaitForRequest(aReqStatus);
  5660 	User::WaitForRequest(aReqStatus);
  5660 	TEST(aReqStatus.Int() == KErrCancel);
  5661 	TEST(aReqStatus.Int() == KErrCancel);
  5661 	}	
  5662 	}	
  5662 	
  5663 
       
  5664 void CTestPhone::TestTerminateActiveCalls(RMobilePhone& aPhone, TRequestStatus &aReqStatus)
       
  5665     {
       
  5666     //Test asynchronous TerminateActiveCalls - just returns KErrNone
       
  5667     
       
  5668     aPhone.TerminateActiveCalls(aReqStatus);
       
  5669     User::WaitForRequest(aReqStatus);
       
  5670     TEST(aReqStatus.Int()==KErrNone);
       
  5671     if (KErrNone == aReqStatus.Int())
       
  5672         INFO_PRINTF2(_L("Test %d - RMobilePhone::TerminateActiveCalls (async) passed"), iTestCount++);
       
  5673     else
       
  5674         ERR_PRINTF2(_L("Test %d - RMobilePhone::TerminateActiveCalls (async) failed"), iTestCount++);
       
  5675     //Test asynchronous TerminateActiveCalls & Cancel
       
  5676     
       
  5677     aPhone.TerminateActiveCalls(aReqStatus);
       
  5678     aPhone.CancelAsyncRequest(EMobilePhoneTerminateActiveCalls);
       
  5679     User::WaitForRequest(aReqStatus);
       
  5680     TEST(aReqStatus.Int() == KErrCancel);
       
  5681     if (KErrCancel == aReqStatus.Int())
       
  5682         INFO_PRINTF2(_L("Test %d - Cancelation of  RMobilePhone::TerminateActiveCalls (async) passed"), iTestCount++);
       
  5683     else
       
  5684         ERR_PRINTF2(_L("Test %d - Cancelation of  RMobilePhone::TerminateActiveCalls (async) failed"), iTestCount++);
       
  5685     }   
  5663 
  5686 
  5664 /**************************************************************/
  5687 /**************************************************************/
  5665 //
  5688 //
  5666 // Testing asynchronous retrieve of detected network list
  5689 // Testing asynchronous retrieve of detected network list
  5667 //
  5690 //