diff -r 000000000000 -r f0cf47e981f9 mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengclipsession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengclipsession.h Thu Dec 17 08:44:37 2009 +0200 @@ -0,0 +1,104 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef __UT_MUSENGCLIPSESSION_H__ +#define __UT_MUSENGCLIPSESSION_H__ + + +// EXTERNAL INCLUDES +#include +#include + +// FORWARD DECLARATIONS +class CMusEngClipSession; +class CMusEngObserverStub; + +// CONSTANTS +_LIT8( KMusSipUri, "sip:user@domain.com" ); + +// CLASS DEFINITION +/** + * Tester class for CMusEngClipSession. + * Tests only implementations that are not tested in ancestor classes. + * + */ +NONSHARABLE_CLASS( UT_CMusEngClipSession ): public CEUnitTestSuiteClass + { + public: // Constructors and destructors + + /** + * Two phase construction + */ + static UT_CMusEngClipSession* NewL(); + static UT_CMusEngClipSession* NewLC(); + + /** + * Destructor + */ + ~UT_CMusEngClipSession(); + + private: // Constructors and destructors + + UT_CMusEngClipSession(); + void ConstructL(); + + private: // Test case setup and teardown + + void SetupL(); + void Setup2L(); + + void Teardown(); + + private: // Test methdods + + void UT_NewLL(); + void UT_SetClipLL(); + void UT_FastForwardLL(); + void UT_FastRewindLL(); + void UT_PositionLL(); + void UT_DurationLL(); + void UT_SetPositionLL(); + void UT_TranscodeLToAvcL(); + void UT_TranscodeLToH263L(); + void UT_CancelTranscodeLL(); + void UT_PlayLL(); + void UT_PauseLL(); + void UT_IsPlayingLL(); + void UT_CompleteSessionStructureLL(); + void UT_StreamStateChangedL(); + void UT_StreamStateChangedWithSourceL(); + void UT_StreamStateChangedWithSinkL(); + void UT_AddAmrCodecLL(); + void UT_AddVideoCodecLL(); + void UT_HasClipEndedL(); + void UT_ConstructAudioStructureLL(); + void UT_ConstructAudioStructureL_OperatorVariantL(); + void UT_EstablishSessionLL(); + + private: // Data + + CMusEngClipSession* iClipSession; + CMusEngObserverStub* iObserver; + + EUNIT_DECLARE_TEST_TABLE; + + }; + +#endif // __UT_MUSENGCLIPSESSION_H__ + +// End of file