diff -r ccd8e69b5392 -r 496ad160a278 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 Fri Jun 11 13:36:18 2010 +0300 @@ -0,0 +1,92 @@ +/* +* 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 CLcSessionObserverStub; +class CLcUiProviderStub; +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 Teardown(); + + private: // Test methdods + + void UT_NewLL(); + void UT_CompleteSessionStructureLL(); + void UT_StreamStateChangedL(); + void UT_StreamStateChangedWithSourceL(); + void UT_StreamStateChangedWithSinkL(); + void UT_AddAmrCodecLL(); + void UT_AddVideoCodecLL(); + void UT_ConstructAudioStructureLL(); + void UT_ConstructAudioStructureL_OperatorVariantL(); + void UT_EstablishSessionLL(); + + private: // Data + + CMusEngClipSession* iClipSession; + CLcSessionObserverStub* iLcSessionObserver; + CLcUiProviderStub* iLcUiProvider; + CMusEngObserverStub* iAudioRoutingObserver; + + EUNIT_DECLARE_TEST_TABLE; + }; + +#endif // __UT_MUSENGCLIPSESSION_H__ + +// End of file