mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/src/ut_muscallconferenceeventmonitor.cpp
branchRCL_3
changeset 22 73a1feb507fb
parent 21 33a5d2bbf6fc
child 23 bc78a40cd63c
equal deleted inserted replaced
21:33a5d2bbf6fc 22:73a1feb507fb
   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->Cancel(); // Cancel the active object    
   168     iConferenceCallEventMonitor->SetStateL( NMusSessionInformationApi::ENoCall );                               
   169     iConferenceCallEventMonitor->RunL();
   169     iConferenceCallEventMonitor->Cancel(); // Cancel the active object    
   170     RProperty::Get( NMusSessionInformationApi::KCategoryUid,
   170     iConferenceCallEventMonitor->RunL();
   171                      NMusSessionInformationApi::KMusCallEvent,
   171     RProperty::Get( NMusSessionInformationApi::KCategoryUid,
   172                      val );
   172                      NMusSessionInformationApi::KMusCallEvent,
   173     EUNIT_ASSERT( val==NMusSessionInformationApi::EConferenceTerminated);
   173                      val );
       
   174     EUNIT_ASSERT( val==NMusSessionInformationApi::ENoCall);
   174 
   175 
   175     RTelHelper::SetConfEvent( RMobileConferenceCall::EConferenceSwapped );
   176     RTelHelper::SetConfEvent( RMobileConferenceCall::EConferenceSwapped );
   176     iConferenceCallEventMonitor->SetStateL( NMusSessionInformationApi::ENoCall );                               
   177     iConferenceCallEventMonitor->SetStateL( NMusSessionInformationApi::ENoCall );                               
   177     iConferenceCallEventMonitor->Cancel(); // Cancel the active object    
   178     iConferenceCallEventMonitor->Cancel(); // Cancel the active object    
   178     iConferenceCallEventMonitor->RunL();
   179     iConferenceCallEventMonitor->RunL();