mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengreceivesession.h
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     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_MUSENGRECEIVESESSION_H__
       
    20 #define __UT_MUSENGRECEIVESESSION_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 #include <digia/eunit/eunitmacros.h>
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CMceInSession;
       
    29 class CMusEngReceiveSession;
       
    30 class CLcSessionObserverStub;
       
    31 class CMceVideoStream;
       
    32 class CMceAudioStream;
       
    33 class CLcUiProviderStub;
       
    34 
       
    35 #include <e32def.h>
       
    36 #ifndef NONSHARABLE_CLASS
       
    37     #define NONSHARABLE_CLASS(x) class x
       
    38 #endif
       
    39 
       
    40 //  CLASS DEFINITION
       
    41 /**
       
    42  *
       
    43  */
       
    44 NONSHARABLE_CLASS( UT_CMusEngReceiveSession ): public CEUnitTestSuiteClass
       
    45     {
       
    46     public:     // Constructors and destructors
       
    47 
       
    48         /**
       
    49          * Two phase construction
       
    50          */
       
    51         static UT_CMusEngReceiveSession* NewL();
       
    52         static UT_CMusEngReceiveSession* NewLC();
       
    53         
       
    54         /**
       
    55          * Destructor
       
    56          */
       
    57         ~UT_CMusEngReceiveSession();
       
    58 
       
    59     private: // Constructors and destructors
       
    60 
       
    61         UT_CMusEngReceiveSession();
       
    62         void ConstructL();
       
    63         
       
    64     private: // Test case setup and teardown
       
    65 
       
    66         void SetupL();
       
    67 
       
    68         void Teardown();
       
    69 
       
    70     private: // Test helpers
       
    71     
       
    72         CMceVideoStream* ConstructVideoInStreamLC();
       
    73         CMceVideoStream* ConstructVideoOutStreamLC();
       
    74         CMceAudioStream* ConstructAudioInStreamLC();
       
    75         CMceAudioStream* ConstructAudioOutStreamLC();
       
    76         CMceInSession* ConstructInSessionLC( TInt aVideoStreamCount,
       
    77                                              TInt aAudioStreamCount,
       
    78                                              TBool aConstructSinks = ETrue );
       
    79 
       
    80     private: // Test methdods
       
    81     
       
    82         void UT_NewLL();
       
    83         void UT_LcSessionStateL();
       
    84         void UT_EstablishLcSessionL();
       
    85         void UT_TerminateLcSessionL();
       
    86         void UT_RemoteVideoPlayerL();        
       
    87         void UT_RemoteDisplayName();        
       
    88         void UT_HandleSessionStateChangedL();
       
    89         void UT_AdjustVideoCodecLL();
       
    90         void UT_AdjustAudioCodecLL();
       
    91         void UT_DoCodecSelectionLL();
       
    92         void UT_IncomingSessionL();
       
    93         void UT_IncomingUpdateL();
       
    94         void UT_StreamStateChangedL();
       
    95         void UT_CompleteSessionStructureL_WithoutSessionL();
       
    96         void UT_CompleteSessionStructureL_WithoutStreamsL();
       
    97         void UT_CompleteSessionStructureL_WithOutgoingStreamL();
       
    98         void UT_CompleteSessionStructureL_WithVideoInL();
       
    99         void UT_CompleteSessionStructureL_WithVideoOutBoundToVideoInL();
       
   100         void UT_CompleteSessionStructureL_WithVideoInBoundToVideoOutL();
       
   101         void UT_CompleteSessionStructureL_WithMultipleVideoInsL();
       
   102         void UT_CompleteSessionStructureL_WithVideoAndMultipleAudioInsL();
       
   103         void UT_CompleteSessionStructureL_OperatorVariant();   
       
   104         void UT_CompleteSessionStructureL_SdpBandwidthAttributesL();   
       
   105         void UT_ParseAssertedIdentityL();
       
   106         void UT_ContactSavingLL();
       
   107         void UT_IsDisplayActive();
       
   108         void UT_InactivityTimeoutL();
       
   109         
       
   110     private:    // Data
       
   111 
       
   112         CMusEngReceiveSession* iReceiveSession;
       
   113         CLcSessionObserverStub* iLcSessionObserver;
       
   114         CLcUiProviderStub* iLcUiProvider;
       
   115 
       
   116         EUNIT_DECLARE_TEST_TABLE;
       
   117 
       
   118     };
       
   119 
       
   120 #endif      //  __UT_MUSENGRECEIVESESSION_H__
       
   121 
       
   122 // End of file