mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_muscallmonitorbase.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
    25 #include <digia/eunit/eunitmacros.h>
    25 #include <digia/eunit/eunitmacros.h>
    26 #include "etelmm.h"
    26 #include "etelmm.h"
    27 #include "muscallmonitorbase.h"
    27 #include "muscallmonitorbase.h"
    28 #include "mussesseioninformationapi.h"
    28 #include "mussesseioninformationapi.h"
    29 #include "mmustsypropertyobserver.h"
    29 #include "mmustsypropertyobserver.h"
    30 #include "mmuscallstateobserver.h"
       
    31 
       
    32 
    30 
    33 // Forward declaration
    31 // Forward declaration
    34 
    32 
    35 // Next row is to disable warning emerging from EUnit code.
    33 // Next row is to disable warning emerging from EUnit code.
    36 // Placement is due to a fact that most test case files
    34 // Placement is due to a fact that most test case files
    42 							
    40 							
    43     {
    41     {
    44 public:
    42 public:
    45     
    43     
    46     CMusCallMonitorMock( const RMobileCall& aCall,
    44     CMusCallMonitorMock( const RMobileCall& aCall,
    47     					MMusTsyPropertyObserver& aObserver,
    45     					MMusTsyPropertyObserver& aObserver );
    48     					MMusCallStateObserver& aCallStateObserver );
       
    49     ~CMusCallMonitorMock();
    46     ~CMusCallMonitorMock();
    50     
    47     
    51     private:
    48     private:
    52 
    49 
    53     void RunL();
    50     void RunL();
    60 /**
    57 /**
    61  * Tester class for CMusCallMonitorBase. 
    58  * Tester class for CMusCallMonitorBase. 
    62  * 
    59  * 
    63  */
    60  */
    64 NONSHARABLE_CLASS( UT_CMusCallMonitorBase ): public CEUnitTestSuiteClass,
    61 NONSHARABLE_CLASS( UT_CMusCallMonitorBase ): public CEUnitTestSuiteClass,
    65 											MMusTsyPropertyObserver,
    62 											MMusTsyPropertyObserver
    66 											MMusCallStateObserver
       
    67     {
    63     {
    68     public:
    64     public:
    69         //Two phase construction
    65         //Two phase construction
    70         static UT_CMusCallMonitorBase* NewL();
    66         static UT_CMusCallMonitorBase* NewL();
    71         static UT_CMusCallMonitorBase* NewLC();
    67         static UT_CMusCallMonitorBase* NewLC();
    80      * @param aCallName The name of the call
    76      * @param aCallName The name of the call
    81      */
    77      */
    82     virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal,
    78     virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal,
    83     									 TName& aCallName );
    79     									 TName& aCallName );
    84     
    80     
    85     public:    // from MMusCallStateObserver.
       
    86     virtual void MusCallStateChanged();
       
    87     
       
    88 
    81 
    89     private: // Constructor
    82     private: // Constructor
    90         UT_CMusCallMonitorBase();
    83         UT_CMusCallMonitorBase();
    91         void ConstructL();
    84         void ConstructL();
    92 
    85 
    97         void Teardown();
    90         void Teardown();
    98 
    91 
    99     private: // Test methdods
    92     private: // Test methdods
   100         void UT_SetStateLL();
    93         void UT_SetStateLL();
   101         void UT_SetCallInfoLL();
    94         void UT_SetCallInfoLL();
   102         void UT_RunErrorL();     
    95         void UT_RunErrorL();
   103         void UT_CMusCallMonitorBase_IsDataReadyLL();
    96         
       
    97         void UT_SetClirSettingL();
       
    98         void UT_SetTerminatingPrivacyL();
       
    99         void UT_RemovePrefixL();
   104         
   100         
   105     
   101     
   106     private:    // Data        
   102     private:    // Data        
   107         CMusCallMonitorBase* iCallMonitorBase;
   103         CMusCallMonitorBase* iCallMonitorBase;
   108         RMobileCall iCall;
   104         RMobileCall iCall;
   109         TBool iCallStateObserverInvoked;
       
   110 
   105 
   111         EUNIT_DECLARE_TEST_TABLE;
   106         EUNIT_DECLARE_TEST_TABLE;
   112 
   107 
   113     };
   108     };
   114 
   109