multimediacommscontroller/mmccinterface/tsrc/ut_interface/src/UT_CMCCCodecInformation.cpp
branchRCL_3
changeset 59 b0e4b01681c5
parent 42 817c922b90eb
equal deleted inserted replaced
55:f72c4fccd381 59:b0e4b01681c5
   807         }
   807         }
   808     }
   808     }
   809 
   809 
   810 void UT_CMccCodecInformation::UT_CMccCodecInformation_SetKeepAliveTimerL(  )
   810 void UT_CMccCodecInformation::UT_CMccCodecInformation_SetKeepAliveTimerL(  )
   811     {
   811     {
   812     const TInt KNum25 = 25;
   812     for( TInt k = 0; k < iCount; k++ )
   813     const TInt KSecsToMicroSecs = 1000000;
   813         {
   814     for( TInt k = 0; k < iCount; k++ )
   814         EUNIT_ASSERT_EQUALS( iCodecArray[k]->SetKeepAliveTimer( 25 ), KErrNone );
   815         {
   815         }
   816         EUNIT_ASSERT_EQUALS( iCodecArray[k]->SetKeepAliveTimer( KNum25 ), KErrNone );
   816     }
   817         EUNIT_ASSERT_EQUALS( iCodecArray[k]->KeepAliveTimerMicroSecs(), KNum25 * KSecsToMicroSecs );
       
   818         }
       
   819     }
       
   820     
       
   821 void UT_CMccCodecInformation::UT_CMccCodecInformation_SetKeepAliveTimerMicroSecsL(  )
       
   822     {
       
   823     const TInt KNum2000000 = 2000000;
       
   824     const TInt KSecsToMicroSecs = 1000000;
       
   825     for( TInt k = 0; k < iCount; k++ )
       
   826         {
       
   827         EUNIT_ASSERT_EQUALS( iCodecArray[k]->SetKeepAliveTimerMicroSecs( 2000000 ), KErrNone );
       
   828         EUNIT_ASSERT_EQUALS( iCodecArray[k]->KeepAliveTimer(), KNum2000000 / KSecsToMicroSecs );
       
   829         }
       
   830     }    
       
   831 
   817 
   832 void UT_CMccCodecInformation::UT_CMccCodecInformation_SetKeepAlivePTL(  )
   818 void UT_CMccCodecInformation::UT_CMccCodecInformation_SetKeepAlivePTL(  )
   833     {
   819     {
   834     for( TInt k = 0; k < iCount; k++ )
   820     for( TInt k = 0; k < iCount; k++ )
   835         {
   821         {
  1227         {
  1213         {
  1228         EUNIT_ASSERT_EQUALS( iCodecArray[k]->KeepAliveTimer(), 
  1214         EUNIT_ASSERT_EQUALS( iCodecArray[k]->KeepAliveTimer(), 
  1229                              iCodecArray[k]->iKeepAliveTimer );
  1215                              iCodecArray[k]->iKeepAliveTimer );
  1230         }
  1216         }
  1231     }
  1217     }
  1232     
       
  1233 void UT_CMccCodecInformation::UT_CMccCodecInformation_KeepAliveTimerMicroSecsL(  )
       
  1234     {
       
  1235     for( TInt k = 0; k < iCount; k++ )
       
  1236         {
       
  1237         EUNIT_ASSERT_EQUALS( iCodecArray[k]->KeepAliveTimerMicroSecs(), 
       
  1238                              iCodecArray[k]->iKeepAliveTimerMicroSecs );
       
  1239         }
       
  1240     }    
       
  1241 
  1218 
  1242 void UT_CMccCodecInformation::UT_CMccCodecInformation_KeepAlivePTL(  )
  1219 void UT_CMccCodecInformation::UT_CMccCodecInformation_KeepAlivePTL(  )
  1243     {
  1220     {
  1244     for( TInt k = 0; k < iCount; k++ )
  1221     for( TInt k = 0; k < iCount; k++ )
  1245         {
  1222         {
  1754     "SetKeepAliveTimer - test ",
  1731     "SetKeepAliveTimer - test ",
  1755     "CMccCodecInformation",
  1732     "CMccCodecInformation",
  1756     "SetKeepAliveTimer",
  1733     "SetKeepAliveTimer",
  1757     "FUNCTIONALITY",
  1734     "FUNCTIONALITY",
  1758     SetupL, UT_CMccCodecInformation_SetKeepAliveTimerL, Teardown)
  1735     SetupL, UT_CMccCodecInformation_SetKeepAliveTimerL, Teardown)
  1759     
       
  1760 EUNIT_TEST(
       
  1761     "SetKeepAliveTimerMicroSecs - test ",
       
  1762     "CMccCodecInformation",
       
  1763     "SetKeepAliveTimerMicroSecs",
       
  1764     "FUNCTIONALITY",
       
  1765     SetupL, UT_CMccCodecInformation_SetKeepAliveTimerMicroSecsL, Teardown)    
       
  1766 
  1736 
  1767 EUNIT_TEST(
  1737 EUNIT_TEST(
  1768     "SetKeepAlivePT - test ",
  1738     "SetKeepAlivePT - test ",
  1769     "CMccCodecInformation",
  1739     "CMccCodecInformation",
  1770     "SetKeepAlivePT",
  1740     "SetKeepAlivePT",
  1985     "KeepAliveTimer - test ",
  1955     "KeepAliveTimer - test ",
  1986     "CMccCodecInformation",
  1956     "CMccCodecInformation",
  1987     "KeepAliveTimer",
  1957     "KeepAliveTimer",
  1988     "FUNCTIONALITY",
  1958     "FUNCTIONALITY",
  1989     SetupL, UT_CMccCodecInformation_KeepAliveTimerL, Teardown)
  1959     SetupL, UT_CMccCodecInformation_KeepAliveTimerL, Teardown)
  1990     
       
  1991 EUNIT_TEST(
       
  1992     "KeepAliveTimerMicroSecs - test ",
       
  1993     "CMccCodecInformation",
       
  1994     "KeepAliveTimerMicroSecs",
       
  1995     "FUNCTIONALITY",
       
  1996     SetupL, UT_CMccCodecInformation_KeepAliveTimerMicroSecsL, Teardown)    
       
  1997 
  1960 
  1998 EUNIT_TEST(
  1961 EUNIT_TEST(
  1999     "KeepAlivePT - test ",
  1962     "KeepAlivePT - test ",
  2000     "CMccCodecInformation",
  1963     "CMccCodecInformation",
  2001     "KeepAlivePT",
  1964     "KeepAlivePT",