mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengoutsession.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_MUSENGOUTSESSION_H__
       
    20 #define __UT_MUSENGOUTSESSION_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 #include <digia/eunit/eunitmacros.h>
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CMusEngLiveSession;
       
    29 class CMusEngObserverStub;
       
    30 
       
    31 // CONSTANTS
       
    32 _LIT8( KMusPPreferredIdentityTestHeader, "P-Preferred-Identity: sip:user@domain.com" );
       
    33 _LIT8( KMusTestUri, "sip:user@domain.com" );
       
    34 
       
    35 
       
    36 //  CLASS DEFINITION
       
    37 /**
       
    38  * Tester class for CMusEngOutSession. 
       
    39  * Since CMusEngOutSession is abstract, it is tested via object of its'
       
    40  * concrete child class CMusEngLiveSession. Only concrete implementations
       
    41  * are tested in this tester class. 
       
    42  * 
       
    43  */
       
    44 NONSHARABLE_CLASS( UT_CMusEngOutSession ): public CEUnitTestSuiteClass
       
    45     {
       
    46     public:     // Constructors and destructors
       
    47 
       
    48         /**
       
    49          * Two phase construction
       
    50          */
       
    51         static UT_CMusEngOutSession* NewL();
       
    52         static UT_CMusEngOutSession* NewLC();
       
    53                 
       
    54         /**
       
    55          * Destructor
       
    56          */
       
    57         ~UT_CMusEngOutSession();
       
    58 
       
    59     private: // Constructors and destructors
       
    60 
       
    61         UT_CMusEngOutSession();
       
    62         void ConstructL();
       
    63         
       
    64     private: // Test case setup and teardown
       
    65 
       
    66         void SetupL();
       
    67 
       
    68         void Teardown();
       
    69 
       
    70     private: // Test methdods
       
    71     
       
    72         void UT_CMusEngOutSession_InviteLL();
       
    73         void UT_CMusEngOutSession_CancelInviteLL();
       
    74         void UT_CMusEngOutSession_EstablishSessionLL();
       
    75         void UT_CMusEngOutSession_HandleTerminationL();
       
    76         void UT_CMusEngOutSession_AdjustVideoCodecLL();
       
    77         void UT_CMusEngOutSession_AdjustAudioCodecLL();
       
    78         void UT_CMusEngOutSession_CreateMceSessionStructureLL();
       
    79 
       
    80     private:    // Data
       
    81 
       
    82         CMusEngLiveSession* iLiveSession;
       
    83         CMusEngObserverStub* iObserver;
       
    84 
       
    85         EUNIT_DECLARE_TEST_TABLE;
       
    86 
       
    87     };
       
    88 
       
    89 #endif      //  __UT_MUSENGOUTSESSION_H__
       
    90 
       
    91 // End of file