mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/ut_muscallmonitor.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_CMusCallMonitor_H__
       
    20 #define __UT_CMusCallMonitor_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 // Forward declaration
       
    30 class CMusCallMonitor;
       
    31 
       
    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 CMusCallMonitorBase. 
       
    42  * 
       
    43  */
       
    44 NONSHARABLE_CLASS( UT_CMusCallMonitor ): public CEUnitTestSuiteClass,
       
    45 											MMusTsyPropertyObserver
       
    46     {
       
    47     public:
       
    48         //Two phase construction
       
    49         static UT_CMusCallMonitor* NewL();
       
    50         static UT_CMusCallMonitor* NewLC();
       
    51         // Destructor                  
       
    52         ~UT_CMusCallMonitor();
       
    53         
       
    54     public:    // from MMusTsyPropertyObserver.
       
    55     
       
    56     /**
       
    57      * Notify call state changed
       
    58      * @param aVal The call status
       
    59      * @param aCallName The name of the call
       
    60      */
       
    61     virtual void NotifyCallStateChanged( NMusSessionInformationApi::TMusCallEvent aVal,
       
    62     									 TName& aCallName );    
       
    63 
       
    64     private: // Constructor
       
    65         UT_CMusCallMonitor();
       
    66         void ConstructL();
       
    67 
       
    68     private: // Test case setup and teardown
       
    69         void SetupL();
       
    70         void Teardown();
       
    71 
       
    72     private: // Test methdods
       
    73         void UT_CMusCallMonitor_StartMonitorLL();
       
    74         void UT_CMusCallMonitor_StopMonitorLL();
       
    75         void UT_CMusCallMonitor_IsEqualL();     
       
    76         void UT_CMusCallMonitor_IsMonitoredL();  
       
    77     
       
    78     private:    // Data        
       
    79         CMusCallMonitor* iCallMonitor;
       
    80         RMobileLine iLine; 
       
    81 
       
    82         EUNIT_DECLARE_TEST_TABLE;
       
    83 
       
    84     };
       
    85 
       
    86 #endif      //  __UT_CMusCallMonitor_H__
       
    87 
       
    88 // End of file