mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengmceutils.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:12:07 +0300
branchRCL_3
changeset 22 73a1feb507fb
parent 0 f0cf47e981f9
child 23 bc78a40cd63c
permissions -rw-r--r--
Revision: 201032 Kit: 201035

/*
* 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_MUSENGMCEUTILS_H__
#define __UT_MUSENGMCEUTILS_H__


//  EXTERNAL INCLUDES
#include <digia/eunit/ceunittestsuiteclass.h>
#include <digia/eunit/eunitmacros.h>


//  FORWARD DECLARATIONS
class CMceManager;
class CMusSipProfileHandler;
class CMceSession;
class CMusEngObserverStub;
class CMceDisplaySink;

#ifndef NONSHARABLE_CLASS
    #define NONSHARABLE_CLASS(x) class x
#endif

//  CLASS DEFINITION
/**
 * Tester class for MusEngMceUtils. 
 * 
 */
NONSHARABLE_CLASS( UT_MusEngMceUtils ): 
    public CEUnitTestSuiteClass
    {
    public:     // Constructors and destructors

        /**
         * Two phase construction
         */
        static UT_MusEngMceUtils* NewL();
        static UT_MusEngMceUtils* NewLC();
                
        /**
         * Destructor
         */
        ~UT_MusEngMceUtils();
        
        
    private: // Constructors and destructors

        UT_MusEngMceUtils();
        void ConstructL();
        
    private: // Test case setup and teardown

        void SetupL();
        void Setup2L();

        void Teardown();

    private: // Test methdods
    
        void UT_IsVideoInStreamL();
        void UT_IsVideoOutStreamL();
        void UT_IsAudioInStreamL();
        void UT_GetVideoOutStreamLL();
        void UT_GetVideoInStreamLL();
        void UT_GetRecordingStreamL();
        void UT_GetMediaSinkFromStreamL();
        void UT_GetMediaSinkLFromStreamL();
        void UT_GetMediaSinkFromSessionL();
        void UT_GetMediaSinkLFromSessionL();
        void UT_GetCameraLL();
        void UT_GetFileSourceLL();
        void UT_GetDisplayL();
        void UT_GetDisplayLL();
        void UT_AddDisplayLL();
        void UT_AddSpeakerLL();
        void UT_DisableStreamLL();
        void UT_GetReceivingDisplayL();
        void UT_GetReceivingDisplayLL();
        void UT_GetVfDisplayL();
        void UT_EnableInactivityTimerL();
        
    private:    // Data

        CMceManager* iManager;
        CMusSipProfileHandler* iProfileHandler;
        CMusEngObserverStub* iObserver;
        CMceSession* iEmptySession;
        CMceSession* iVideoOutSession;
        CMceSession* iVideoInSession;
        
        CMceDisplaySink* iReceivingDisplay; // Not owned

        EUNIT_DECLARE_TEST_TABLE;

    };

#endif      //  __UT_MUSENGMCEUTILS_H__

// End of file