multimediacommscontroller/mmccrtpsourcesink/tsrc/ut_rtpsourcesink/inc/UT_CMccRtpSender.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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 
       
    20 
       
    21 #ifndef __UT_CMccRtpSender_H__
       
    22 #define __UT_CMccRtpSender_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 
       
    27 #include "mccrtpsender.h"
       
    28 #include "rtpdef.h"
       
    29 #include "rtpapi.h"
       
    30 
       
    31 //  FORWARD DECLARATIONS
       
    32 
       
    33 //  CLASS DEFINITION
       
    34 /**
       
    35  *
       
    36  * EUnitWizard generated test class. 
       
    37  *
       
    38  */
       
    39 class UT_CMccRtpSender : 
       
    40     public CEUnitTestSuiteClass, 
       
    41     public MRtpErrNotify, 
       
    42     public MMccRtpSenderObserver
       
    43     {
       
    44     public:     // Constructors and destructors
       
    45 
       
    46         /**
       
    47          * Two phase construction
       
    48          */
       
    49         static UT_CMccRtpSender* NewL();
       
    50         static UT_CMccRtpSender* NewLC();
       
    51 
       
    52         /**
       
    53          * Destructor
       
    54          */
       
    55         ~UT_CMccRtpSender();
       
    56 
       
    57     private:    // Constructors and destructors
       
    58 
       
    59         UT_CMccRtpSender();
       
    60         void ConstructL();
       
    61         
       
    62     protected: // From MRtpErrNotify
       
    63     
       
    64         void ErrorNotify( TInt aErrCode );
       
    65         
       
    66     protected: // From MMccRtpSenderObserver
       
    67     
       
    68         void SendErrorOccured( TInt aError );
       
    69    
       
    70     private:    // New methods
       
    71 
       
    72          void SetupL();
       
    73         
       
    74          void Teardown();        
       
    75         
       
    76          void UT_CMccRtpSender_SendRtpPacketTest();
       
    77          
       
    78          void UT_CMccRtpSender_SendDataLL();
       
    79 
       
    80          void UT_CMccRtpSender_ClearTest();   
       
    81 
       
    82          void UT_CMccRtpSender_SendingTimeoutTest();
       
    83         
       
    84          void UT_CMccRtpSender_MarkerBasedClearingTest();
       
    85          
       
    86          void UT_CMccRtpSender_MarkerBasedClearingTest2();
       
    87 
       
    88     private:    // Data
       
    89 
       
    90         CRtpAPI* iRtpApi;
       
    91         CMccRtpSender* iSender;
       
    92         TInt iLastError;
       
    93         
       
    94 		EUNIT_DECLARE_TEST_TABLE; 
       
    95 		
       
    96     };
       
    97 
       
    98 #endif      //  __UT_CMccRtpSender_H__
       
    99 
       
   100 // End of file