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