realtimenetprots/rtp/cfrtp/test/te_cfrtp/inc/te_cfrtpsuitestepbase.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /**
       
     2 * Copyright (c) 2008-2009 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 /**
       
    22  @file 
       
    23  @internalAll
       
    24 */
       
    25 
       
    26 #if (!defined __TE_CFRTP_STEP_BASE__)
       
    27 #define __TE_CFRTP_STEP_BASE__
       
    28 
       
    29 
       
    30 
       
    31 #include <e32base.h>
       
    32 #include <e32cons.h>
       
    33 
       
    34 #include <in_sock.h>
       
    35 #include <es_sock.h>
       
    36 #include <test/testexecutestepbase.h>
       
    37 
       
    38 #include "rtp_uid.h"
       
    39 
       
    40 #include <cs_subconparams.h>
       
    41 #include <commdbconnpref.h>
       
    42 #include "rtp_subconparams.h"
       
    43 #include "dummy_rtp_subconparams.h"
       
    44 
       
    45 /* The Sections in the config file */
       
    46 _LIT(KTe_Cfrtp_LocalAddr,"LOCALADDR");
       
    47 
       
    48 _LIT(KTe_Cfrtp_DestIpAddr1,"DESTIPADDR1");
       
    49 _LIT(KTe_Cfrtp_DestIpAddr2,"DESTIPADDR2");
       
    50 
       
    51 _LIT(KTe_Cfrtp_MaxDropOut,"MAXDROPOUT");
       
    52 _LIT(KTe_Cfrtp_MaxMisOrder,"MAXMISORDER");
       
    53 _LIT(KTe_Cfrtp_MinSequential,"MINSEQUENTIAL");
       
    54 _LIT(KTe_Cfrtp_AutoSend,"AUTOSEND");
       
    55 _LIT(KTe_Cfrtp_RtpTimeConv,"RTPTIMECONV");
       
    56 _LIT(KTe_Cfrtp_RtpTimeNow,"RTPTIMENOW");
       
    57 _LIT(KTe_Cfrtp_BandWidth,"BANDWIDTH");
       
    58 _LIT(KTe_Cfrtp_TierId,"TIERID");
       
    59 
       
    60 _LIT(KTe_Cfrtp_CNAME1,"CNAME1");
       
    61 
       
    62 _LIT(KTe_Cfrtp_DestPort1,"DESTRTPPORT1");
       
    63 _LIT(KTe_Cfrtp_DestPort2,"DESTRTPPORT2");
       
    64 _LIT(KTe_Cfrtp_LocalPort1,"LOCALRTPPORT1");
       
    65 _LIT(KTe_Cfrtp_RtcpInterval,"RTCPINTERVAL");
       
    66 
       
    67 /* Section where all the default values are present */
       
    68 _LIT(KTe_Cfrtp_SectDefault,"DefaultSection");
       
    69 
       
    70 
       
    71 /****************************************************************************
       
    72 * The reason to have a new step base is that it is very much possible
       
    73 * that the all individual test steps have project related common variables 
       
    74 * and members 
       
    75 * and this is the place to define these common variable and members.
       
    76 * 
       
    77 ****************************************************************************/
       
    78 class CTe_CfrtpSuiteStepBase : public CTestStep
       
    79 	{
       
    80 public:
       
    81 	virtual ~CTe_CfrtpSuiteStepBase();
       
    82 	CTe_CfrtpSuiteStepBase();
       
    83 	virtual TVerdict doTestStepPreambleL(); 
       
    84 	virtual TVerdict doTestStepPostambleL();
       
    85 	virtual TInt InitSubConL();
       
    86 	virtual TInt InitSocketsL();
       
    87 	virtual TInt InitDummySubConL(CSubConRTPGenericParamSetDummy::TTestcaseId aTestId);
       
    88 
       
    89 protected:
       
    90     RSocketServ    iSocketServ; 
       
    91     RConnection    iCon;
       
    92     RSubConnection iSubCon;
       
    93 	RSocket        iRtpSocket;
       
    94 	RSocket        iRtcpSocket;
       
    95 	
       
    96 	/* Initialization Parameters for RTP Stack */
       
    97 	TInetAddr iIpAddrLocal;
       
    98 	TInetAddr iIpAddrDest1; /* Destination where packets needs to be send */
       
    99 	TInetAddr iIpAddrDest2;
       
   100 	
       
   101 	TInt iDestPort1;
       
   102 	TInt iDestPort2;
       
   103 	
       
   104 	TInt  iLocalPort1;
       
   105 	TInt  iMaxDropOut, iMaxMisOrder, iBandWidth, iRtpTimeNow, iRtpTimeConv;
       
   106 	TInt  iMinSeq;
       
   107 	TUint iTierId;
       
   108 	TBool iAutoSend;
       
   109 	TInt iRtcpInterval;
       
   110 	
       
   111 	TBuf8<100> iCName;
       
   112 	};
       
   113 
       
   114 #endif