mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengtwowayrecvsession.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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_MUSENGTWOWAYRECVSESSION_H__
       
    20 #define __UT_MUSENGTWOWAYRECVSESSION_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <ceunittestsuiteclass.h>
       
    25 #include <eunitmacros.h>
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CMceInSession;
       
    29 class CMusEngTwoWayRecvSession;
       
    30 class CMusEngReceiveSession;
       
    31 class CMceVideoStream;
       
    32 class CMceAudioStream;
       
    33 class CLcSessionObserverStub;
       
    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_CMusEngTwoWayRecvSession ): public CEUnitTestSuiteClass
       
    45     {
       
    46     public:     // Constructors and destructors
       
    47 
       
    48         /**
       
    49          * Two phase construction
       
    50          */
       
    51         static UT_CMusEngTwoWayRecvSession* NewL();
       
    52         static UT_CMusEngTwoWayRecvSession* NewLC();
       
    53         
       
    54         /**
       
    55          * Destructor
       
    56          */
       
    57         ~UT_CMusEngTwoWayRecvSession();
       
    58 
       
    59     private: // Constructors and destructors
       
    60 
       
    61         UT_CMusEngTwoWayRecvSession();
       
    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         CMceInSession* ConstructTwoWayInSessionLC( TBool aConstructSinks = ETrue );
       
    81     
       
    82     private: // Test methdods
       
    83     
       
    84         void UT_NewLL();
       
    85         void UT_EnableDisplayLL();
       
    86         void UT_SetOrientationLL();
       
    87         void UT_OrientationLL();
       
    88         void UT_SetLocalRectLL();
       
    89         void UT_SetRectsLL();
       
    90         void UT_CameraL();
       
    91         void UT_LocalVideoPlayerL();
       
    92         void UT_HandleSessionStateChangedL();
       
    93         void UT_AdjustVideoCodecLL();
       
    94         void UT_AdjustAudioCodecLL();
       
    95         void UT_DoCodecSelectionLL();
       
    96         void UT_IncomingSessionL();        
       
    97         void UT_CompleteSessionStructureL_WithoutSessionL();
       
    98         void UT_CompleteSessionStructureL_WithoutStreamsL();
       
    99         void UT_CompleteSessionStructureL_WithOutgoingStreamL();
       
   100         void UT_CompleteSessionStructureL_WithVideoInL();
       
   101         void UT_CompleteSessionStructureL_WithVideoOutBoundToVideoInL();
       
   102         void UT_CompleteSessionStructureL_WithVideoInBoundToVideoOutL();
       
   103         void UT_CompleteSessionStructureL_WithMultipleVideoInsL();
       
   104         void UT_CompleteSessionStructureL_WithVideoAndMultipleAudioInsL();
       
   105         void UT_CompleteSessionStructureL_OperatorVariant();
       
   106                 
       
   107     private:    // Data
       
   108 
       
   109         CMusEngTwoWayRecvSession* iReceiveSession;
       
   110         CLcSessionObserverStub* iLcSessionObserver;
       
   111 
       
   112         EUNIT_DECLARE_TEST_TABLE;
       
   113     };
       
   114 
       
   115 #endif      //  __UT_MUSENGRECEIVESESSION_H__
       
   116 
       
   117 // End of file