mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_mustsypropertymonitor.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
    18 
    18 
    19 #ifndef __UT_CMusTsyPropertyMonitor_H__
    19 #ifndef __UT_CMusTsyPropertyMonitor_H__
    20 #define __UT_CMusTsyPropertyMonitor_H__
    20 #define __UT_CMusTsyPropertyMonitor_H__
    21 
    21 
    22 
    22 
    23 // USER INCLUDE
       
    24 #include "mmuscallstateobserver.h"
       
    25 
       
    26 //  EXTERNAL INCLUDES
    23 //  EXTERNAL INCLUDES
    27 #include <digia/eunit/ceunittestsuiteclass.h>
    24 #include <digia/eunit/ceunittestsuiteclass.h>
    28 #include <digia/eunit/eunitmacros.h>
    25 #include <digia/eunit/eunitmacros.h>
    29 
    26 
    30 //  FORWARD DECLARATIONS
    27 //  FORWARD DECLARATIONS
    31 class CMusCommonObserverStub;
    28 class CMusCommonObserverStub;
    32 class CMusTsyPropertyMonitor;
    29 class CMusTsyPropertyMonitor;
    33 class CRepository;
       
    34 
    30 
    35 // Next row is to disable warning emerging from EUnit code.
    31 // Next row is to disable warning emerging from EUnit code.
    36 // Placement is due to a fact that most test case files
    32 // Placement is due to a fact that most test case files
    37 // include this file. Directive can be removed when 
    33 // include this file. Directive can be removed when 
    38 // EUnit is fixed.  
    34 // EUnit is fixed.  
    41 //  CLASS DEFINITION
    37 //  CLASS DEFINITION
    42 /**
    38 /**
    43  * Tester class for CMusTsyPropertyMonitor. 
    39  * Tester class for CMusTsyPropertyMonitor. 
    44  * 
    40  * 
    45  */
    41  */
    46 NONSHARABLE_CLASS( UT_CMusTsyPropertyMonitor ): public CEUnitTestSuiteClass,
    42 NONSHARABLE_CLASS( UT_CMusTsyPropertyMonitor ): public CEUnitTestSuiteClass
    47                                                        MMusCallStateObserver
       
    48     {
    43     {
    49     public:     // Constructors and destructors
    44     public:     // Constructors and destructors
    50 
    45 
    51         /**
    46         /**
    52          * Two phase construction
    47          * Two phase construction
    53          */
    48          */
    54         static UT_CMusTsyPropertyMonitor* NewL();
    49         static UT_CMusTsyPropertyMonitor* NewL();
    55         static UT_CMusTsyPropertyMonitor* NewLC();
    50         static UT_CMusTsyPropertyMonitor* NewLC();
    56 
    51                 
    57         /**
    52         /**
    58          * Destructor
    53          * Destructor
    59          */
    54          */
    60         ~UT_CMusTsyPropertyMonitor();
    55         ~UT_CMusTsyPropertyMonitor();
    61         
       
    62     
       
    63     public:     // MMusCallStateObserver
       
    64 
       
    65         virtual void MusCallStateChanged();
       
    66 
       
    67 
    56 
    68     private: // Constructors and destructors
    57     private: // Constructors and destructors
    69 
    58 
    70         UT_CMusTsyPropertyMonitor();
    59         UT_CMusTsyPropertyMonitor();
    71         void ConstructL();
    60         void ConstructL();
    72         
    61         
    73     private: // Test case setup and teardown
    62     private: // Test case setup and teardown
    74 
    63 
    75         void SetupL();
    64         void SetupL();
       
    65         void Setup2L();
    76         void Teardown();
    66         void Teardown();
    77 
    67 
    78     private: // Test methdods
    68     private: // Test methdods
    79     
    69     
    80         void UT_CMusTsyPropertyMonitor_NewLL();
    70         void UT_CMusTsyPropertyMonitor_NewLL();
    81         void UT_CMusTsyPropertyMonitor_RunLL();
    71         void UT_CMusTsyPropertyMonitor_RunLL();
    82         void UT_CMusTsyPropertyMonitor_DoCancelL();
    72         void UT_CMusTsyPropertyMonitor_DoCancelL();
    83         void UT_CMusTsyPropertyMonitor_RunErrorL(); 
    73         void UT_CMusTsyPropertyMonitor_RunErrorL(); 
    84         void UT_CMusTsyPropertyMonitor_AddCallMonitorLL();
    74         void UT_CMusTsyPropertyMonitor_AddCallMonitorLL();
    85         void UT_CMusTsyPropertyMonitor_RemoveCallMonitorL();
    75         void UT_CMusTsyPropertyMonitor_RemoveCallMonitorL();
    86         void UT_CMusTsyPropertyMonitor_MonitorCSCallLL();
       
    87         void UT_CMusTsyPropertyMonitor_MonitorVoipCallLL();
       
    88         void UT_CMusTsyPropertyMonitor_MonitorCallLL();
    76         void UT_CMusTsyPropertyMonitor_MonitorCallLL();
       
    77         void UT_CMusTsyPropertyMonitor_MonitorCallL_2L();
    89         void UT_CMusTsyPropertyMonitor_RemoveUnUsedCallMonitorsL();
    78         void UT_CMusTsyPropertyMonitor_RemoveUnUsedCallMonitorsL();
    90         void UT_CMusTsyPropertyMonitor_CheckCallCriteriaLL();
       
    91         void UT_CMusTsyPropertyMonitor_IsDataReadyLL();
       
    92 
    79 
    93     private:    // Data
    80     private:    // Data
    94         CMusTsyPropertyMonitor* iMusTsyPropertyMonitor;
    81         CMusTsyPropertyMonitor* iMusTsyPropertyMonitor;
    95         RMobilePhone iPhone;
    82         RMobilePhone iPhone;
    96         CRepository* iMusCentralRepository ; 
    83         
    97         
    84         
    98 
    85 
    99         EUNIT_DECLARE_TEST_TABLE;
    86         EUNIT_DECLARE_TEST_TABLE;
   100 
    87 
   101     };
    88     };