mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/src/ut_muscallconferenceeventmonitor.cpp
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
   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();