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