mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_mustsypropertymonitor.h
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __UT_CMusTsyPropertyMonitor_H__
       
    20 #define __UT_CMusTsyPropertyMonitor_H__
       
    21 
       
    22 
       
    23 // USER INCLUDE
       
    24 #include "mmuscallstateobserver.h"
       
    25 
       
    26 //  EXTERNAL INCLUDES
       
    27 #include <digia/eunit/ceunittestsuiteclass.h>
       
    28 #include <digia/eunit/eunitmacros.h>
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class CMusCommonObserverStub;
       
    32 class CMusTsyPropertyMonitor;
       
    33 class CRepository;
       
    34 
       
    35 // Next row is to disable warning emerging from EUnit code.
       
    36 // Placement is due to a fact that most test case files
       
    37 // include this file. Directive can be removed when 
       
    38 // EUnit is fixed.  
       
    39 #pragma warn_illtokenpasting off
       
    40 
       
    41 //  CLASS DEFINITION
       
    42 /**
       
    43  * Tester class for CMusTsyPropertyMonitor. 
       
    44  * 
       
    45  */
       
    46 NONSHARABLE_CLASS( UT_CMusTsyPropertyMonitor ): public CEUnitTestSuiteClass,
       
    47                                                        MMusCallStateObserver
       
    48     {
       
    49     public:     // Constructors and destructors
       
    50 
       
    51         /**
       
    52          * Two phase construction
       
    53          */
       
    54         static UT_CMusTsyPropertyMonitor* NewL();
       
    55         static UT_CMusTsyPropertyMonitor* NewLC();
       
    56 
       
    57         /**
       
    58          * Destructor
       
    59          */
       
    60         ~UT_CMusTsyPropertyMonitor();
       
    61         
       
    62     
       
    63     public:     // MMusCallStateObserver
       
    64 
       
    65         virtual void MusCallStateChanged();
       
    66 
       
    67 
       
    68     private: // Constructors and destructors
       
    69 
       
    70         UT_CMusTsyPropertyMonitor();
       
    71         void ConstructL();
       
    72         
       
    73     private: // Test case setup and teardown
       
    74 
       
    75         void SetupL();
       
    76         void Teardown();
       
    77 
       
    78     private: // Test methdods
       
    79     
       
    80         void UT_CMusTsyPropertyMonitor_NewLL();
       
    81         void UT_CMusTsyPropertyMonitor_RunLL();
       
    82         void UT_CMusTsyPropertyMonitor_DoCancelL();
       
    83         void UT_CMusTsyPropertyMonitor_RunErrorL(); 
       
    84         void UT_CMusTsyPropertyMonitor_AddCallMonitorLL();
       
    85         void UT_CMusTsyPropertyMonitor_RemoveCallMonitorL();
       
    86         void UT_CMusTsyPropertyMonitor_MonitorCSCallLL();
       
    87         void UT_CMusTsyPropertyMonitor_MonitorVoipCallLL();
       
    88         void UT_CMusTsyPropertyMonitor_MonitorCallLL();
       
    89         void UT_CMusTsyPropertyMonitor_RemoveUnUsedCallMonitorsL();
       
    90         void UT_CMusTsyPropertyMonitor_CheckCallCriteriaLL();
       
    91         void UT_CMusTsyPropertyMonitor_IsDataReadyLL();
       
    92 
       
    93     private:    // Data
       
    94         CMusTsyPropertyMonitor* iMusTsyPropertyMonitor;
       
    95         RMobilePhone iPhone;
       
    96         CRepository* iMusCentralRepository ; 
       
    97         
       
    98 
       
    99         EUNIT_DECLARE_TEST_TABLE;
       
   100 
       
   101     };
       
   102 
       
   103 #endif      //  __UT_CMusTsyPropertyMonitor_H__
       
   104 
       
   105 // End of file