mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_muscalleventmonitor.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_CMusCallEventMonitor_H__
       
    20 #define __UT_CMusCallEventMonitor_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 CMusCallEventMonitor;
       
    32 
       
    33 // Next row is to disable warning emerging from EUnit code.
       
    34 // Placement is due to a fact that most test case files
       
    35 // include this file. Directive can be removed when 
       
    36 // EUnit is fixed.  
       
    37 #pragma warn_illtokenpasting off
       
    38 
       
    39 //  CLASS DEFINITION
       
    40 /**
       
    41  * Tester class for MusCallMonitor. 
       
    42  * 
       
    43  */
       
    44 NONSHARABLE_CLASS( UT_CMusCallEventMonitor ): public CEUnitTestSuiteClass,
       
    45 											   MMusTsyPropertyObserver
       
    46     {
       
    47     public:     // Constructors and destructors
       
    48 
       
    49         /**
       
    50          * Two phase construction
       
    51          */
       
    52         static UT_CMusCallEventMonitor* NewL();
       
    53         static UT_CMusCallEventMonitor* NewLC();
       
    54                 
       
    55         /**
       
    56          * Destructor
       
    57          */
       
    58         ~UT_CMusCallEventMonitor();
       
    59         
       
    60     public:    // from MMusTsyPropertyObserver.
       
    61     
       
    62     /**
       
    63      * Notify call state changed
       
    64      * @param aVal The call status
       
    65      * @param aCallName The name of the call
       
    66      */
       
    67     virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal,
       
    68     									 TName& aCallName );
       
    69     
       
    70 
       
    71     private: // Constructors and destructors
       
    72 
       
    73         UT_CMusCallEventMonitor();
       
    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_CMusCallEventMonitor_NewLL();
       
    84         void UT_CMusCallEventMonitor_RunLL();
       
    85         void UT_CMusCallEventMonitor_DoCancelL();
       
    86         void UT_CMusCallEventMonitor_RunErrorL();        
       
    87     private:    // Data
       
    88         CMusCallEventMonitor* iCallEventMonitor;
       
    89         RMobileCall iCall;
       
    90 
       
    91         EUNIT_DECLARE_TEST_TABLE;
       
    92 
       
    93     };
       
    94 
       
    95 #endif      //  __UT_CMusCallEventMonitor_H__
       
    96 
       
    97 // End of file