mmsharing/mmshengine/tsrc/ut_engine/inc/ut_musengoutsession.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:12:07 +0300
branchRCL_3
changeset 32 73a1feb507fb
parent 0 f0cf47e981f9
child 33 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_MUSENGOUTSESSION_H__
#define __UT_MUSENGOUTSESSION_H__


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

//  FORWARD DECLARATIONS
class CMusEngLiveSession;
class CLcSessionObserverStub;
class CLcUiProviderStub;
class CMusEngObserverStub;

// CONSTANTS
_LIT8( KMusPPreferredIdentityTestHeader, "P-Preferred-Identity: sip:user@domain.com" );
_LIT8( KMusTestUri, "sip:user@domain.com" );


//  CLASS DEFINITION
/**
 * Tester class for CMusEngOutSession. 
 * Since CMusEngOutSession is abstract, it is tested via object of its'
 * concrete child class CMusEngLiveSession. Only concrete implementations
 * are tested in this tester class. 
 * 
 */
NONSHARABLE_CLASS( UT_CMusEngOutSession ): public CEUnitTestSuiteClass
    {
    public:     // Constructors and destructors

        /**
         * Two phase construction
         */
        static UT_CMusEngOutSession* NewL();
        static UT_CMusEngOutSession* NewLC();
                
        /**
         * Destructor
         */
        ~UT_CMusEngOutSession();

    private: // Constructors and destructors

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

        void SetupL();

        void Teardown();

    private: // Test methdods
    
        void UT_EstablishLcSessionL();
        void UT_EstablishLcSession_RecipientResolvingL();
        void UT_EstablishLcSession_RegistrationPendingL();
        void UT_TerminateLcSessionL();
        void UT_EstablishSessionLL();
        void UT_HandleTerminationL();
        void UT_HandleRecipientNotFoundTerminationL();
        void UT_AdjustVideoCodecLL();
        void UT_AdjustAudioCodecLL();
        void UT_CreateMceSessionStructureLL();
        void UT_ConstructLL();
        void UT_ContactSavingLL();
        void UT_RemoteAddressLL();
        void UT_RemoteDisplayNameL();

    private:    // Data

        CMusEngLiveSession* iLiveSession;
        CLcSessionObserverStub* iLcSessionObserver;
        CLcUiProviderStub* iLcUiProvider;
        CMusEngObserverStub* iAudioRoutingObserver;

        EUNIT_DECLARE_TEST_TABLE;
    };

#endif      //  __UT_MUSENGOUTSESSION_H__

// End of file