mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_muscallstatusmonitor.h
changeset 0 f0cf47e981f9
child 22 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_CMusCallStatusMonitor_H__
       
    20 #define __UT_CMusCallStatusMonitor_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 #include <digia/eunit/eunitmacros.h>
       
    26 #include "etelmm.h"
       
    27 #include "mussesseioninformationapi.h"
       
    28 #include "mmustsypropertyobserver.h"
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class CMusCommonObserverStub;
       
    32 class CMusCallStatusMonitor;
       
    33 
       
    34 // Next row is to disable warning emerging from EUnit code.
       
    35 // Placement is due to a fact that most test case files
       
    36 // include this file. Directive can be removed when 
       
    37 // EUnit is fixed.  
       
    38 #pragma warn_illtokenpasting off
       
    39 
       
    40 //  CLASS DEFINITION
       
    41 /**
       
    42  * Tester class for MusCallMonitor. 
       
    43  * 
       
    44  */
       
    45 NONSHARABLE_CLASS( UT_CMusCallStatusMonitor ): public CEUnitTestSuiteClass,
       
    46 													 MMusTsyPropertyObserver
       
    47     {
       
    48     public:     // Constructors and destructors
       
    49 
       
    50         /**
       
    51          * Two phase construction
       
    52          */
       
    53         static UT_CMusCallStatusMonitor* NewL();
       
    54         static UT_CMusCallStatusMonitor* NewLC();
       
    55                 
       
    56         /**
       
    57          * Destructor
       
    58          */
       
    59         ~UT_CMusCallStatusMonitor();
       
    60         
       
    61     public:    // from MMusTsyPropertyObserver.
       
    62     
       
    63     /**
       
    64      * Notify call state changed
       
    65      * @param aVal The call status
       
    66      * @param aCallName The name of the call
       
    67      */
       
    68     virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal,
       
    69     									 TName& aCallName );
       
    70 
       
    71     private: // Constructors and destructors
       
    72 
       
    73         UT_CMusCallStatusMonitor();
       
    74         void ConstructL();
       
    75         
       
    76     private: // Test case setup and teardown
       
    77 
       
    78         void SetupL();
       
    79         void Teardown();
       
    80 
       
    81     private: // Test methdods
       
    82     
       
    83         void UT_CMusCallStatusMonitor_NewLL();
       
    84         void UT_CMusCallStatusMonitor_CheckStateLL();
       
    85         void UT_CMusCallStatusMonitor_RunLL();
       
    86         void UT_CMusCallStatusMonitor_DoCancelL();
       
    87         void UT_CMusCallStatusMonitor_RunErrorL();        
       
    88     private:    // Data
       
    89         CMusCallStatusMonitor* iCallStatusMonitor;
       
    90         RMobileCall iCall;
       
    91         
       
    92 
       
    93         EUNIT_DECLARE_TEST_TABLE;
       
    94 
       
    95     };
       
    96 
       
    97 #endif      //  __UT_CMusCallStatusMonitor_H__
       
    98 
       
    99 // End of file