mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengclipsession.h
changeset 0 f0cf47e981f9
child 19 95754dcd27ad
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_MUSENGCLIPSESSION_H__
       
    20 #define __UT_MUSENGCLIPSESSION_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 #include <digia/eunit/eunitmacros.h>
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CMusEngClipSession;
       
    29 class CMusEngObserverStub;
       
    30 
       
    31 // CONSTANTS
       
    32 _LIT8( KMusSipUri, "sip:user@domain.com" );
       
    33 
       
    34 //  CLASS DEFINITION
       
    35 /**
       
    36  * Tester class for CMusEngClipSession. 
       
    37  * Tests only implementations that are not tested in ancestor classes.
       
    38  * 
       
    39  */
       
    40 NONSHARABLE_CLASS( UT_CMusEngClipSession ): public CEUnitTestSuiteClass
       
    41     {
       
    42     public:     // Constructors and destructors
       
    43 
       
    44         /**
       
    45          * Two phase construction
       
    46          */
       
    47         static UT_CMusEngClipSession* NewL();
       
    48         static UT_CMusEngClipSession* NewLC();
       
    49         
       
    50         /**
       
    51          * Destructor
       
    52          */
       
    53         ~UT_CMusEngClipSession();
       
    54 
       
    55     private: // Constructors and destructors
       
    56 
       
    57         UT_CMusEngClipSession();
       
    58         void ConstructL();
       
    59         
       
    60     private: // Test case setup and teardown
       
    61 
       
    62         void SetupL();
       
    63         void Setup2L();
       
    64 
       
    65         void Teardown();
       
    66 
       
    67     private: // Test methdods
       
    68     
       
    69         void UT_NewLL();
       
    70         void UT_SetClipLL();
       
    71         void UT_FastForwardLL();
       
    72         void UT_FastRewindLL();
       
    73         void UT_PositionLL();
       
    74         void UT_DurationLL();
       
    75         void UT_SetPositionLL();
       
    76         void UT_TranscodeLToAvcL();
       
    77         void UT_TranscodeLToH263L();
       
    78         void UT_CancelTranscodeLL();
       
    79         void UT_PlayLL();
       
    80         void UT_PauseLL();
       
    81         void UT_IsPlayingLL();
       
    82         void UT_CompleteSessionStructureLL();
       
    83         void UT_StreamStateChangedL();
       
    84         void UT_StreamStateChangedWithSourceL();
       
    85         void UT_StreamStateChangedWithSinkL();
       
    86         void UT_AddAmrCodecLL();
       
    87         void UT_AddVideoCodecLL();
       
    88         void UT_HasClipEndedL();
       
    89         void UT_ConstructAudioStructureLL();
       
    90         void UT_ConstructAudioStructureL_OperatorVariantL();
       
    91         void UT_EstablishSessionLL();
       
    92         
       
    93     private:    // Data
       
    94 
       
    95         CMusEngClipSession* iClipSession;
       
    96         CMusEngObserverStub* iObserver;
       
    97 
       
    98         EUNIT_DECLARE_TEST_TABLE;
       
    99 
       
   100     };
       
   101 
       
   102 #endif      //  __UT_MUSENGCLIPSESSION_H__
       
   103 
       
   104 // End of file