mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/src/ut_muscallconferenceeventmonitor.cpp
branchRCL_3
changeset 21 33a5d2bbf6fc
parent 0 f0cf47e981f9
child 22 73a1feb507fb
equal deleted inserted replaced
20:2d2c7d1515f7 21:33a5d2bbf6fc
   162     RProperty::Get( NMusSessionInformationApi::KCategoryUid,
   162     RProperty::Get( NMusSessionInformationApi::KCategoryUid,
   163                      NMusSessionInformationApi::KMusCallEvent,
   163                      NMusSessionInformationApi::KMusCallEvent,
   164                      val );
   164                      val );
   165     EUNIT_ASSERT( val==NMusSessionInformationApi::EConferenceCall);
   165     EUNIT_ASSERT( val==NMusSessionInformationApi::EConferenceCall);
   166 
   166 
   167     RTelHelper::SetConfEvent( RMobileConferenceCall::EConferenceTerminated );
   167     RTelHelper::SetConfEvent( RMobileConferenceCall::EConferenceTerminated );                               
   168     iConferenceCallEventMonitor->SetStateL( NMusSessionInformationApi::ENoCall );                               
   168     iConferenceCallEventMonitor->Cancel(); // Cancel the active object    
   169     iConferenceCallEventMonitor->Cancel(); // Cancel the active object    
   169     iConferenceCallEventMonitor->RunL();
   170     iConferenceCallEventMonitor->RunL();
   170     RProperty::Get( NMusSessionInformationApi::KCategoryUid,
   171     RProperty::Get( NMusSessionInformationApi::KCategoryUid,
   171                      NMusSessionInformationApi::KMusCallEvent,
   172                      NMusSessionInformationApi::KMusCallEvent,
   172                      val );
   173                      val );
   173     EUNIT_ASSERT( val==NMusSessionInformationApi::EConferenceTerminated);
   174     EUNIT_ASSERT( val==NMusSessionInformationApi::ENoCall);
       
   175 
   174 
   176     RTelHelper::SetConfEvent( RMobileConferenceCall::EConferenceSwapped );
   175     RTelHelper::SetConfEvent( RMobileConferenceCall::EConferenceSwapped );
   177     iConferenceCallEventMonitor->SetStateL( NMusSessionInformationApi::ENoCall );                               
   176     iConferenceCallEventMonitor->SetStateL( NMusSessionInformationApi::ENoCall );                               
   178     iConferenceCallEventMonitor->Cancel(); // Cancel the active object    
   177     iConferenceCallEventMonitor->Cancel(); // Cancel the active object    
   179     iConferenceCallEventMonitor->RunL();
   178     iConferenceCallEventMonitor->RunL();