mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengreceivesession.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_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 CMusEngObserverStub;
       
    31 class CMceVideoStream;
       
    32 class CMceAudioStream;
       
    33 
       
    34 #include <e32def.h>
       
    35 #ifndef NONSHARABLE_CLASS
       
    36     #define NONSHARABLE_CLASS(x) class x
       
    37 #endif
       
    38 
       
    39 //  CLASS DEFINITION
       
    40 /**
       
    41  *
       
    42  */
       
    43 NONSHARABLE_CLASS( UT_CMusEngReceiveSession ): public CEUnitTestSuiteClass
       
    44     {
       
    45     public:     // Constructors and destructors
       
    46 
       
    47         /**
       
    48          * Two phase construction
       
    49          */
       
    50         static UT_CMusEngReceiveSession* NewL();
       
    51         static UT_CMusEngReceiveSession* NewLC();
       
    52         
       
    53         /**
       
    54          * Destructor
       
    55          */
       
    56         ~UT_CMusEngReceiveSession();
       
    57 
       
    58     private: // Constructors and destructors
       
    59 
       
    60         UT_CMusEngReceiveSession();
       
    61         void ConstructL();
       
    62         
       
    63     private: // Test case setup and teardown
       
    64 
       
    65         void SetupL();
       
    66 
       
    67         void Teardown();
       
    68 
       
    69     private: // Test helpers
       
    70     
       
    71         CMceVideoStream* ConstructVideoInStreamLC();
       
    72         CMceVideoStream* ConstructVideoOutStreamLC();
       
    73         CMceAudioStream* ConstructAudioInStreamLC();
       
    74         CMceAudioStream* ConstructAudioOutStreamLC();
       
    75         CMceInSession* ConstructInSessionLC( TInt aVideoStreamCount,
       
    76                                              TInt aAudioStreamCount,
       
    77                                              TBool aConstructSinks = ETrue );
       
    78 
       
    79     private: // Test methdods
       
    80     
       
    81         void UT_NewLL();
       
    82         void UT_AcceptInvitationLL();
       
    83         void UT_HandleSessionStateChangedL();
       
    84         void UT_AdjustVideoCodecLL();
       
    85         void UT_AdjustAudioCodecLL();
       
    86         void UT_DoCodecSelectionLL();
       
    87         void UT_IncomingSessionL();
       
    88         void UT_IncomingUpdateL();
       
    89         void UT_StreamStateChangedL();
       
    90         
       
    91         // All the following functions test
       
    92         // CMusEngReceiveSession::CompleteSessionStructureL
       
    93         void UT_CompleteSessionStructureL_WithoutSessionL();
       
    94         void UT_CompleteSessionStructureL_WithoutStreamsL();
       
    95         void UT_CompleteSessionStructureL_WithOutgoingStreamL();
       
    96         void UT_CompleteSessionStructureL_WithVideoInL();
       
    97         void UT_CompleteSessionStructureL_WithVideoOutBoundToVideoInL();
       
    98         void UT_CompleteSessionStructureL_WithVideoInBoundToVideoOutL();
       
    99         void UT_CompleteSessionStructureL_WithMultipleVideoInsL();
       
   100         void UT_CompleteSessionStructureL_WithVideoAndMultipleAudioInsL();
       
   101         void UT_CompleteSessionStructureL_OperatorVariant();
       
   102         
       
   103         void UT_ParseAssertedIdentityL();
       
   104         
       
   105     private:    // Data
       
   106 
       
   107         CMusEngReceiveSession* iReceiveSession;
       
   108         CMusEngObserverStub* iObserver;
       
   109 
       
   110         EUNIT_DECLARE_TEST_TABLE;
       
   111 
       
   112     };
       
   113 
       
   114 #endif      //  __UT_MUSENGRECEIVESESSION_H__
       
   115 
       
   116 // End of file