mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_muspropertymonitor.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_CMusPropertyMonitor_H__
    19 #ifndef __UT_CMusPropertyMonitor_H__
    20 #define __UT_CMusPropertyMonitor_H__
    20 #define __UT_CMusPropertyMonitor_H__
    21 
    21 
    22 
    22 
       
    23 // USER INCLUDES
       
    24 
       
    25 #include "mmuscallstateobserver.h" 
       
    26 
    23 //  EXTERNAL INCLUDES
    27 //  EXTERNAL INCLUDES
    24 #include <digia/eunit/ceunittestsuiteclass.h>
    28 #include <digia/eunit/ceunittestsuiteclass.h>
    25 #include <digia/eunit/eunitmacros.h>
    29 #include <digia/eunit/eunitmacros.h>
    26 
    30 
    27 //  FORWARD DECLARATIONS
    31 //  FORWARD DECLARATIONS
    36 //  CLASS DEFINITION
    40 //  CLASS DEFINITION
    37 /**
    41 /**
    38  * Tester class for CMusTsyPropertyMonitor. 
    42  * Tester class for CMusTsyPropertyMonitor. 
    39  * 
    43  * 
    40  */
    44  */
    41 NONSHARABLE_CLASS( UT_CMusPropertyMonitor ): public CEUnitTestSuiteClass
    45 NONSHARABLE_CLASS( UT_CMusPropertyMonitor ): public CEUnitTestSuiteClass,
       
    46                                                     MMusCallStateObserver
    42     {
    47     {
    43     public:     // Constructors and destructors
    48     public:     // Constructors and destructors
    44 
    49 
    45         /**
    50         /**
    46          * Two phase construction
    51          * Two phase construction
    50                 
    55                 
    51         /**
    56         /**
    52          * Destructor
    57          * Destructor
    53          */
    58          */
    54         ~UT_CMusPropertyMonitor();
    59         ~UT_CMusPropertyMonitor();
       
    60         
       
    61 
       
    62     public:     // MMusCallStateObserver
       
    63 
       
    64         virtual void MusCallStateChanged();
       
    65 
    55 
    66 
    56     private: // Constructors and destructors
    67     private: // Constructors and destructors
    57 
    68 
    58         UT_CMusPropertyMonitor();
    69         UT_CMusPropertyMonitor();
    59         void ConstructL();
    70         void ConstructL();
    66 
    77 
    67     private: // Test methdods
    78     private: // Test methdods
    68     
    79     
    69         void UT_CMusPropertyMonitor_RunLL();
    80         void UT_CMusPropertyMonitor_RunLL();
    70         void UT_CMusPropertyMonitor_DoCancelL();
    81         void UT_CMusPropertyMonitor_DoCancelL();
    71         void UT_CMusPropertyMonitor_RunErrorL(); 
    82         void UT_CMusPropertyMonitor_RunErrorL();
       
    83         void UT_CMusPropertyMonitor_IsCallConnected();
    72 
    84 
    73     private:    // Data
    85     private:    // Data
    74         CMusPropertyMonitor* iMusPropertyMonitor;
    86         CMusPropertyMonitor* iMusPropertyMonitor;
       
    87         TBool iMusCallStateObserverInovked;
       
    88        
    75 
    89 
    76         EUNIT_DECLARE_TEST_TABLE;
    90         EUNIT_DECLARE_TEST_TABLE;
    77 
    91 
    78     };
    92     };
    79 
    93