equal
deleted
inserted
replaced
96 } |
96 } |
97 |
97 |
98 void UT_SRTPAuthentication_NULL::Teardown( ) |
98 void UT_SRTPAuthentication_NULL::Teardown( ) |
99 { |
99 { |
100 delete iAuthenticator; |
100 delete iAuthenticator; |
101 iAuthenticator = NULL; |
101 |
102 |
|
103 delete iRFC2202_Test1_Key_160bits; |
102 delete iRFC2202_Test1_Key_160bits; |
104 delete iRFC2202_Test1_Data_16bits; |
103 delete iRFC2202_Test1_Data_16bits; |
105 delete iRFC2202_Test1_Tag_80bits; |
104 delete iRFC2202_Test1_Tag_80bits; |
106 |
|
107 iRFC2202_Test1_Key_160bits = NULL; |
|
108 iRFC2202_Test1_Data_16bits = NULL; |
|
109 iRFC2202_Test1_Tag_80bits = NULL; |
|
110 } |
105 } |
111 |
106 |
112 void UT_SRTPAuthentication_NULL::UT_AuthenticateL_RFC2202_Test1_EightyL( ) |
107 void UT_SRTPAuthentication_NULL::UT_AuthenticateL_RFC2202_Test1_80L( ) |
113 { |
108 { |
114 HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test1_Key_160bits, |
109 HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test1_Key_160bits, |
115 *iRFC2202_Test1_Data_16bits, |
110 *iRFC2202_Test1_Data_16bits, |
116 KNullDesC8); |
111 KNullDesC8); |
117 |
112 |
153 EUNIT_TEST( |
148 EUNIT_TEST( |
154 "AuthenticateL - 1 80 bits", |
149 "AuthenticateL - 1 80 bits", |
155 "SRTPAuthentication_NULL", |
150 "SRTPAuthentication_NULL", |
156 "AuthenticateL", |
151 "AuthenticateL", |
157 "FUNCTIONALITY", |
152 "FUNCTIONALITY", |
158 SetupL, UT_AuthenticateL_RFC2202_Test1_EightyL, Teardown) |
153 SetupL, UT_AuthenticateL_RFC2202_Test1_80L, Teardown) |
159 |
154 |
160 |
155 |
161 EUNIT_END_TEST_TABLE |
156 EUNIT_END_TEST_TABLE |
162 |
157 |
163 // END OF FILE |
158 // END OF FILE |