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