rtp/rtpstack/tsrc/ut_rtpstack/inc/UT_CRtpAPI.h
branchRCL_3
changeset 44 0dcb073356a5
parent 43 b5e99d8877c7
equal deleted inserted replaced
43:b5e99d8877c7 44:0dcb073356a5
    63      : public CEUnitTestSuiteClass,
    63      : public CEUnitTestSuiteClass,
    64      public MRtpErrNotify,
    64      public MRtpErrNotify,
    65      public MRtpObserver,
    65      public MRtpObserver,
    66      public MNonRTPDataObserver,
    66      public MNonRTPDataObserver,
    67      public MRtcpObserver,
    67      public MRtcpObserver,
    68      public MSRTPReKeyingObserver,
    68       public MSRTPReKeyingObserver
    69      public MRtpPostProcessingObserver
       
    70     {
    69     {
    71     public:     // Constructors and destructors
    70     public:     // Constructors and destructors
    72 
    71 
    73         /**
    72         /**
    74          * Two phase construction
    73          * Two phase construction
   102         void RrReceived( TRtpId aStreamId, TRtpSSRC aSSRC ) ;                           
   101         void RrReceived( TRtpId aStreamId, TRtpSSRC aSSRC ) ;                           
   103 
   102 
   104 		void SRTPMasterKeyStaleEvent(const CSRTPSession&  aSession);
   103 		void SRTPMasterKeyStaleEvent(const CSRTPSession&  aSession);
   105 		void SRTPMasterKeyStaleEvent(const CSRTPStream&  aStream);
   104 		void SRTPMasterKeyStaleEvent(const CSRTPStream&  aStream);
   106 		
   105 		
   107         void ReadyToSendRtpPacket( TRtpId aTranStreamId, TPtr8 &aPacket );
       
   108 		
       
   109     private:    // New methods
   106     private:    // New methods
   110 
   107 
   111          void SetupL();
   108          void SetupL();
   112          void Hex(HBufC8& aString);
   109          void Hex(HBufC8& aString);
   113         
   110         
   120         
   117         
   121         
   118         
   122          void UT_CRtpAPI_StartConnectionL();
   119          void UT_CRtpAPI_StartConnectionL();
   123         
   120         
   124         
   121         
   125          void UT_CRtpAPI_StartConnection_OneL();
   122          void UT_CRtpAPI_StartConnection_1L();
   126         
   123         
   127         
   124         
   128          void UT_CRtpAPI_CancelStartL();
   125          void UT_CRtpAPI_CancelStartL();
   129         
   126         
   130         
   127         
   181          void UT_CRtpAPI_SendRtpPacket_1L();
   178          void UT_CRtpAPI_SendRtpPacket_1L();
   182         
   179         
   183         
   180         
   184          void UT_CRtpAPI_SendRtpPacket_2L();
   181          void UT_CRtpAPI_SendRtpPacket_2L();
   185         
   182         
   186          void UT_CRtpAPI_SendRtpPacket_ThreeL();	
   183          void UT_CRtpAPI_SendRtpPacket_3L();	
   187         
   184         
   188          void UT_CRtpAPI_SendDataLL();
   185          void UT_CRtpAPI_SendDataLL();
   189         
   186         
   190         
   187         
   191          void UT_CRtpAPI_CancelSendL();
   188          void UT_CRtpAPI_CancelSendL();
   241         
   238         
   242          void UT_CRtpAPI_CustomCommandAsyncL();
   239          void UT_CRtpAPI_CustomCommandAsyncL();
   243         
   240         
   244         
   241         
   245          void UT_CRtpAPI_VersionL();
   242          void UT_CRtpAPI_VersionL();
   246          
   243         
   247          void UT_CRtpAPI_RegisterRtpPostProcessingObserverL();
       
   248          
       
   249          void UT_CRtpAPI_SendRtpPacketWithCSRCL();
       
   250          
       
   251          void UT_CRtpAPI_UnregisterRtpPostProcessingObserverL();
       
   252 
   244 
   253     private:    // Data
   245     private:    // Data
   254 
   246 
   255         EUNIT_DECLARE_TEST_TABLE; 
   247         EUNIT_DECLARE_TEST_TABLE; 
   256 
   248 
   262         //SRTPSession Data
   254         //SRTPSession Data
   263         TInetAddr iDestination;
   255         TInetAddr iDestination;
   264 		TBuf8<32>       iMKI;
   256 		TBuf8<32>       iMKI;
   265 		TBuf8<32> iRFC3711_TestMasterKey128bits;	     
   257 		TBuf8<32> iRFC3711_TestMasterKey128bits;	     
   266 	    TBuf8<32> iRFC3711_TestMasterSalt112bits;
   258 	    TBuf8<32> iRFC3711_TestMasterSalt112bits;
   267 	    TBuf8<32>       iSalt;
   259 	           TBuf8<32>       iSalt;
   268         TBuf8<32>       iKey;
   260         TBuf8<32>       iKey;
   269         TBool iIsCallBackReceived;
       
   270     };
   261     };
   271 
   262 
   272 #endif      //  __UT_CRTPAPI_H__
   263 #endif      //  __UT_CRTPAPI_H__
   273 
   264 
   274 // End of file
   265 // End of file