|
1 /* |
|
2 * Copyright (c) 2004 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 // CLASS HEADER |
|
22 #include "ut_cmcesipmanager.h" |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/EUnitMacros.h> |
|
26 #include <sipmanagedprofile.h> |
|
27 |
|
28 |
|
29 // INTERNAL INCLUDES |
|
30 #include "MCETestHelper.h" |
|
31 |
|
32 #include "mceactionset.h" |
|
33 #include "mcesipsession.h" |
|
34 #include "mceservercore.h" |
|
35 #include "mcecssession.h" |
|
36 #include "mcecssessionimplementation.h" |
|
37 #include "mcesipconnection.h" |
|
38 #include "mcecomsession.h" |
|
39 |
|
40 |
|
41 #define MCE_INCOMING_REQUEST_POSTCONDITION \ |
|
42 MCE_CHECK_MEMORY_LEAVE( iStorage->iSipSentResponse && \ |
|
43 iStorage->iSipSentResponse->StatusCode() == KMceSipServerInternalError ) |
|
44 |
|
45 // CONSTRUCTION |
|
46 UT_CMceSipManager* UT_CMceSipManager::NewL() |
|
47 { |
|
48 UT_CMceSipManager* self = UT_CMceSipManager::NewLC(); |
|
49 CleanupStack::Pop(); |
|
50 |
|
51 return self; |
|
52 } |
|
53 |
|
54 UT_CMceSipManager* UT_CMceSipManager::NewLC() |
|
55 { |
|
56 UT_CMceSipManager* self = new( ELeave ) UT_CMceSipManager(); |
|
57 CleanupStack::PushL( self ); |
|
58 |
|
59 self->ConstructL(); |
|
60 |
|
61 return self; |
|
62 } |
|
63 |
|
64 // Destructor (virtual by CBase) |
|
65 UT_CMceSipManager::~UT_CMceSipManager() |
|
66 { |
|
67 } |
|
68 |
|
69 // Default constructor |
|
70 UT_CMceSipManager::UT_CMceSipManager() |
|
71 { |
|
72 } |
|
73 |
|
74 // Second phase construct |
|
75 void UT_CMceSipManager::ConstructL() |
|
76 { |
|
77 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
|
78 // It generates the test case table. |
|
79 CEUnitTestSuiteClass::ConstructL(); |
|
80 } |
|
81 |
|
82 // METHODS |
|
83 |
|
84 |
|
85 |
|
86 void UT_CMceSipManager::SetupL( ) |
|
87 { |
|
88 CMCETls::OpenL(); |
|
89 SdpCodecStringPool::OpenL(); |
|
90 |
|
91 iIds.iAppUID = 1; |
|
92 |
|
93 |
|
94 iStorage = CMCETls::Storage(); |
|
95 iServerCore = CMceServerCore::NewL(); |
|
96 iSession = CMceCsSession::NewL( *iServerCore ); |
|
97 iSession->SetClientUidL( iIds, RMessage2() ); |
|
98 |
|
99 iManager = &iServerCore->Manager(); |
|
100 |
|
101 iManager->ConnectionL( iManager->ProfileL( 1 ) ); |
|
102 |
|
103 } |
|
104 |
|
105 void UT_CMceSipManager::Teardown( ) |
|
106 { |
|
107 CMCETls::Close(); |
|
108 delete iSession; |
|
109 delete iServerCore; |
|
110 |
|
111 SdpCodecStringPool::Close(); |
|
112 |
|
113 } |
|
114 |
|
115 |
|
116 void UT_CMceSipManager::UT_CMceSipManager_ProfileL_1_L() |
|
117 { |
|
118 TInt error = KErrNone; |
|
119 |
|
120 CSIPProfile& profile = iManager->ProfileL( 1 ); |
|
121 EUNIT_ASSERT( &profile != NULL ); |
|
122 |
|
123 TRAP( error, CSIPProfile& profile1 = iManager->ProfileL( 100 ) ); |
|
124 EUNIT_ASSERT( error != KErrNone ); |
|
125 |
|
126 CSIPProfile& profile1 = iManager->ProfileL( 1 ); |
|
127 EUNIT_ASSERT( &profile1 != NULL ); |
|
128 |
|
129 TRAP( error, CSIPProfile& profile2 = iManager->ProfileL( 100 ) ); |
|
130 EUNIT_ASSERT( error != KErrNone ); |
|
131 |
|
132 } |
|
133 |
|
134 |
|
135 void UT_CMceSipManager::UT_CMceSipManager_ProfileL_2_L() |
|
136 { |
|
137 TInt error = KErrNone; |
|
138 |
|
139 CSIPAddress* defAor = CSIPAddress::DecodeL( KSIPProfileDefAOR ); |
|
140 CleanupStack::PushL( defAor ); |
|
141 |
|
142 CSIPAddress* reqUri = CSIPAddress::DecodeL( KRequestUri ); |
|
143 CleanupStack::PushL( reqUri ); |
|
144 |
|
145 CSIPAddress* forwarded = CSIPAddress::DecodeL( KForwarded ); |
|
146 CleanupStack::PushL( forwarded ); |
|
147 |
|
148 // Matches with existing profile by to header |
|
149 |
|
150 CSIPProfile& profile1 = iManager->ProfileL( 1, reqUri->Uri8() ); |
|
151 EUNIT_ASSERT( &profile1 != NULL ); |
|
152 EUNIT_ASSERT( iManager->iProfiles.Count() == 1 ); |
|
153 |
|
154 // Matches with existing profile by request uri |
|
155 CSIPProfile& profile2 = iManager->ProfileL( 1, reqUri->Uri8() ); |
|
156 EUNIT_ASSERT( &profile2 != NULL ); |
|
157 EUNIT_ASSERT( iManager->iProfiles.Count() == 1 ); |
|
158 |
|
159 |
|
160 // Matches with not existing profile by to header |
|
161 iManager->iProfiles.ResetAndDestroy(); |
|
162 CSIPProfile& profile3 = iManager->ProfileL( 1, reqUri->Uri8() ); |
|
163 EUNIT_ASSERT( &profile3 != NULL ); |
|
164 EUNIT_ASSERT( iManager->iProfiles.Count() == 1 ); |
|
165 |
|
166 // Matches with not existing profile by request uri |
|
167 iManager->iProfiles.ResetAndDestroy(); |
|
168 CSIPProfile& profile4 = iManager->ProfileL( 1, reqUri->Uri8() ); |
|
169 EUNIT_ASSERT( &profile4 != NULL ); |
|
170 EUNIT_ASSERT( iManager->iProfiles.Count() == 1 ); |
|
171 |
|
172 // Does not match |
|
173 TRAP( error, CSIPProfile& profile5 = iManager->ProfileL( 1, forwarded->Uri8() ) ); |
|
174 EUNIT_ASSERT( error != KErrNone ); |
|
175 |
|
176 CleanupStack::PopAndDestroy( forwarded ); |
|
177 CleanupStack::PopAndDestroy( reqUri ); |
|
178 CleanupStack::PopAndDestroy( defAor ); |
|
179 } |
|
180 |
|
181 void UT_CMceSipManager::UT_CMceSipManager_ConnectionLL() |
|
182 { |
|
183 CSIPProfile& profile = iManager->ProfileL( 1 ); |
|
184 CMceSipConnection& connection = iManager->ConnectionL( profile ); |
|
185 EUNIT_ASSERT( &connection != NULL ); |
|
186 } |
|
187 |
|
188 void UT_CMceSipManager::UT_CMceSipManager_IncomingRequestL() |
|
189 { |
|
190 |
|
191 CSIPServerTransaction* srvtransaction = |
|
192 MCETestHelper::ServerTransactionL( SipStrConsts::EInvite, ETrue ); |
|
193 |
|
194 EUNIT_ASSERT( iManager->iClients[0]->Implementation().SubSessions().Count() == 0 ); |
|
195 |
|
196 iManager->IncomingRequest( 1, srvtransaction ); |
|
197 MCE_INCOMING_REQUEST_POSTCONDITION |
|
198 |
|
199 iStorage->ExecuteCallback(); |
|
200 MCE_INCOMING_REQUEST_POSTCONDITION |
|
201 |
|
202 EUNIT_ASSERT( iManager->iClients[0]->Implementation().SubSessions().Count() == 1 ); |
|
203 |
|
204 srvtransaction = |
|
205 MCETestHelper::ServerTransactionL( SipStrConsts::EMessage, EFalse ); |
|
206 |
|
207 iManager->IncomingRequest( 1, srvtransaction ); |
|
208 EUNIT_ASSERT( iManager->iClients[0]->Implementation().SubSessions().Count() == 1 ); |
|
209 |
|
210 |
|
211 srvtransaction = |
|
212 CSIPServerTransaction::NewL( SIPStrings::StringF( SipStrConsts::EInvite )); |
|
213 CleanupStack::PushL( srvtransaction ); |
|
214 |
|
215 CUri8* uri = CUri8::NewLC(); //OK |
|
216 MCE_SET_URIL( uri ); |
|
217 |
|
218 CSIPRequestElements* requestelements = CSIPRequestElements::NewL( uri ); |
|
219 CleanupStack::Pop( uri ); |
|
220 CleanupStack::PushL( requestelements ); |
|
221 |
|
222 CSIPFromHeader* fromheader = CSIPFromHeader::DecodeL(_L8("User <user2@host>")); |
|
223 CleanupStack::PushL( fromheader ); |
|
224 |
|
225 requestelements->SetFromHeaderL(fromheader); |
|
226 CleanupStack::Pop( fromheader ); |
|
227 |
|
228 requestelements->SetMethodL( SIPStrings::StringF( SipStrConsts::EInvite ) ); |
|
229 srvtransaction->SetRequestElements( requestelements ); |
|
230 CleanupStack::Pop( requestelements ); |
|
231 CleanupStack::Pop( srvtransaction ); |
|
232 |
|
233 iManager->IncomingRequest( 1, srvtransaction ); |
|
234 EUNIT_ASSERT( iManager->iClients[0]->Implementation().SubSessions().Count() == 1 ); |
|
235 } |
|
236 |
|
237 void UT_CMceSipManager::UT_CMceSipManager_TimedOutL() |
|
238 { |
|
239 CSIPServerTransaction* trx = NULL; |
|
240 iManager->TimedOut( *trx ); |
|
241 |
|
242 } |
|
243 |
|
244 void UT_CMceSipManager::UT_CMceSipManager_ProfileRegistryEventOccurredL() |
|
245 { |
|
246 |
|
247 iManager->ProfileRegistryEventOccurred( 1, MSIPProfileRegistryObserver::EProfileUpdated ); |
|
248 |
|
249 } |
|
250 |
|
251 void UT_CMceSipManager::UT_CMceSipManager_ProfileRegistryErrorOccurredL() |
|
252 { |
|
253 |
|
254 iManager->ProfileRegistryErrorOccurred( 1, KErrServerTerminated ); |
|
255 |
|
256 } |
|
257 |
|
258 void UT_CMceSipManager::UT_CMceSipManager_MediaErrorL() |
|
259 { |
|
260 |
|
261 iManager->MediaError( KErrServerTerminated ); |
|
262 |
|
263 } |
|
264 |
|
265 void UT_CMceSipManager::UT_CMceSipManager_NextDialogIdL() |
|
266 { |
|
267 |
|
268 iManager->iNextDialogId = 0; |
|
269 EUNIT_ASSERT( iManager->NextDialogId() == 1 ); |
|
270 EUNIT_ASSERT( iManager->NextDialogId() == 2 ); |
|
271 EUNIT_ASSERT( iManager->NextDialogId() == 3 ); |
|
272 EUNIT_ASSERT( iManager->NextDialogId() == 4 ); |
|
273 |
|
274 |
|
275 } |
|
276 |
|
277 |
|
278 void UT_CMceSipManager::UT_CMceSipManager_UnRegisterClientL() |
|
279 { |
|
280 EUNIT_ASSERT( iManager->iClients.Count() == 1 ); |
|
281 |
|
282 CMceCsSession* session = CMceCsSession::NewL( *iServerCore ); |
|
283 CleanupStack::PushL( session ); |
|
284 iIds.iAppUID = 2; |
|
285 session->SetClientUidL( iIds, RMessage2() ); |
|
286 |
|
287 CMceCsSession* session2 = CMceCsSession::NewL( *iServerCore ); |
|
288 CleanupStack::PushL( session2 ); |
|
289 iIds.iAppUID = 3; |
|
290 session2->SetClientUidL( iIds, RMessage2() ); |
|
291 |
|
292 |
|
293 EUNIT_ASSERT( iManager->iClients.Count() == 3 ); |
|
294 |
|
295 CleanupStack::PopAndDestroy( session2 ); |
|
296 |
|
297 EUNIT_ASSERT( iManager->iClients.Count() == 2 ); |
|
298 |
|
299 session = iManager->iClients[1]; |
|
300 iManager->UnRegisterClient( *session ); |
|
301 EUNIT_ASSERT( iManager->iClients.Count() == 1 ); |
|
302 |
|
303 CleanupStack::PopAndDestroy( session ); |
|
304 |
|
305 EUNIT_ASSERT( iManager->iClients.Count() == 1 ); |
|
306 |
|
307 |
|
308 } |
|
309 |
|
310 void UT_CMceSipManager::UT_CMceSipManager_CreateSubSessionL_1L() |
|
311 { |
|
312 |
|
313 iIds.iProfileID = 1; |
|
314 iIds.iManagerType = KMceCSSIPSession; |
|
315 iIds.iDialogType = KMceDlgTypeInvite; |
|
316 |
|
317 CDesC8ArrayFlat* params = new (ELeave) CDesC8ArrayFlat( KMceArrayGranularity ); |
|
318 CleanupStack::PushL( params ); |
|
319 params->AppendL( _L8("User <user2@host>") ); |
|
320 params->AppendL( _L8("User <user@host>") ); |
|
321 |
|
322 CMceCsSubSession* session = |
|
323 iManager->CreateSubSessionL( *iSession, iIds, *params ); |
|
324 |
|
325 CleanupStack::PopAndDestroy( params ); |
|
326 CleanupStack::PushL( session ); |
|
327 EUNIT_ASSERT( session != NULL ); |
|
328 EUNIT_ASSERT( session->Dialog() != NULL ); |
|
329 EUNIT_ASSERT( session->DialogId() > 0 ); |
|
330 EUNIT_ASSERT( &session->SIPConnection() != NULL ); |
|
331 EUNIT_ASSERT( session->SIPConnection().iSessions.Count() == 1 ); |
|
332 |
|
333 CleanupStack::PopAndDestroy( session ); |
|
334 } |
|
335 |
|
336 void UT_CMceSipManager::UT_CMceSipManager_CreateSubSessionL_2L() |
|
337 { |
|
338 iIds.iProfileID = 1; |
|
339 iIds.iManagerType = KMceCSSIPSession; |
|
340 iIds.iDialogType = KMceDlgTypeInvite; |
|
341 |
|
342 CDesC8ArrayFlat* params = new (ELeave) CDesC8ArrayFlat( KMceArrayGranularity ); |
|
343 CleanupStack::PushL( params ); |
|
344 params->AppendL( _L8("User <user2@host>") ); |
|
345 params->AppendL( _L8("User <user@host>") ); |
|
346 |
|
347 CMceCsSubSession* session = |
|
348 iManager->CreateSubSessionL( *iSession, iIds, *params ); |
|
349 |
|
350 CleanupStack::PopAndDestroy( params ); |
|
351 CleanupStack::PushL( session ); |
|
352 EUNIT_ASSERT( session != NULL ); |
|
353 EUNIT_ASSERT( session->Dialog() != NULL ); |
|
354 EUNIT_ASSERT( session->DialogId() > 0 ); |
|
355 EUNIT_ASSERT( &session->SIPConnection() != NULL ); |
|
356 EUNIT_ASSERT( session->SIPConnection().iSessions.Count() == 1 ); |
|
357 |
|
358 CleanupStack::PopAndDestroy( session ); |
|
359 } |
|
360 |
|
361 void UT_CMceSipManager::UT_CMceSipManager_CreateSubSessionL_3L() |
|
362 { |
|
363 CMceSipConnection& connection = iManager->ConnectionL( iManager->ProfileL( 1 ) ); |
|
364 |
|
365 CSIPServerTransaction* srvtransaction = |
|
366 MCETestHelper::ServerTransactionL( SipStrConsts::EInvite, ETrue ); |
|
367 CleanupStack::PushL( srvtransaction ); |
|
368 iManager->CreateSubSessionL( srvtransaction, *iSession, connection ); |
|
369 CleanupStack::Pop( srvtransaction ); |
|
370 } |
|
371 |
|
372 void UT_CMceSipManager::UT_CMceSipManager_CreateSubSessionNoProfileL() |
|
373 { |
|
374 |
|
375 iIds.iProfileID = 0; |
|
376 iIds.iManagerType = KMceCSSIPSession; |
|
377 iIds.iDialogType = KMceDlgTypeInvite; |
|
378 |
|
379 CDesC8ArrayFlat* params = new (ELeave) CDesC8ArrayFlat( KMceArrayGranularity ); |
|
380 CleanupStack::PushL( params ); |
|
381 params->AppendL( _L8("User <user2@host>") ); |
|
382 params->AppendL( _L8("User <user@host>") ); |
|
383 params->AppendL( _L8("6") ); |
|
384 |
|
385 CMceCsSubSession* session = |
|
386 iManager->CreateSubSessionL( *iSession, iIds, *params ); |
|
387 |
|
388 CleanupStack::PopAndDestroy( params ); |
|
389 CleanupStack::PushL( session ); |
|
390 EUNIT_ASSERT( session != NULL ); |
|
391 EUNIT_ASSERT( session->Dialog() != NULL ); |
|
392 EUNIT_ASSERT( session->DialogId() > 0 ); |
|
393 EUNIT_ASSERT( &session->SIPConnection() != NULL ); |
|
394 EUNIT_ASSERT( session->SIPConnection().iSessions.Count() == 1 ); |
|
395 |
|
396 CleanupStack::PopAndDestroy( session ); |
|
397 } |
|
398 |
|
399 void UT_CMceSipManager::UT_CMceSipManager_UnRegisterSubSessionL() |
|
400 { |
|
401 iIds.iProfileID = 1; |
|
402 iIds.iManagerType = KMceCSSIPSession; |
|
403 iIds.iDialogType = KMceDlgTypeInvite; |
|
404 |
|
405 CMceSipConnection& connection = iManager->ConnectionL( iManager->ProfileL( 1 ) ); |
|
406 |
|
407 |
|
408 CDesC8ArrayFlat* params = new (ELeave) CDesC8ArrayFlat( KMceArrayGranularity ); |
|
409 CleanupStack::PushL( params ); |
|
410 params->AppendL( _L8("User <user2@host>") ); |
|
411 params->AppendL( _L8("User <user@host>") ); |
|
412 TInt i = 0; |
|
413 for( i = 0;i<4;i++ ) |
|
414 { |
|
415 CMceCsSubSession* session = |
|
416 iManager->CreateSubSessionL( *iSession, iIds, *params ); |
|
417 CleanupStack::PushL( session ); |
|
418 EUNIT_ASSERT( &session->SIPConnection() == &connection ); |
|
419 EUNIT_ASSERT( connection.iSessions.Count() == 1+i ); |
|
420 } |
|
421 |
|
422 for( i = 0;i<4;i++ ) |
|
423 { |
|
424 EUNIT_ASSERT( connection.iSessions.Count() == 4-i ); |
|
425 CleanupStack::PopAndDestroy(); |
|
426 } |
|
427 //After all CMceCsSubSession have been delete, all profile has been delete |
|
428 EUNIT_ASSERT( iManager->iProfiles.Count() == 0 ); |
|
429 CleanupStack::PopAndDestroy( params ); |
|
430 |
|
431 } |
|
432 |
|
433 void UT_CMceSipManager::UT_CMceSipManager_UnRegisterSubSessionNoProfileL() |
|
434 { |
|
435 iIds.iProfileID = 0; |
|
436 iIds.iManagerType = KMceCSSIPSession; |
|
437 iIds.iDialogType = KMceDlgTypeInvite; |
|
438 |
|
439 CMceSipConnection& connection = iManager->ConnectionL( 6 ); |
|
440 |
|
441 |
|
442 CDesC8ArrayFlat* params = new (ELeave) CDesC8ArrayFlat( KMceArrayGranularity ); |
|
443 CleanupStack::PushL( params ); |
|
444 params->AppendL( _L8("User <user2@host>") ); |
|
445 params->AppendL( _L8("User <user@host>") ); |
|
446 params->AppendL( _L8("6") ); |
|
447 TInt i = 0; |
|
448 for( i = 0;i<4;i++ ) |
|
449 { |
|
450 CMceCsSubSession* session = |
|
451 iManager->CreateSubSessionL( *iSession, iIds, *params ); |
|
452 CleanupStack::PushL( session ); |
|
453 EUNIT_ASSERT( &session->SIPConnection() == &connection ); |
|
454 EUNIT_ASSERT( connection.iSessions.Count() == 1+i ); |
|
455 } |
|
456 |
|
457 for( i = 0;i<4;i++ ) |
|
458 { |
|
459 EUNIT_ASSERT( connection.iSessions.Count() == 4-i ); |
|
460 CleanupStack::PopAndDestroy(); |
|
461 } |
|
462 |
|
463 CleanupStack::PopAndDestroy( params ); |
|
464 |
|
465 } |
|
466 |
|
467 void UT_CMceSipManager::UT_CMceSipManager_MediaManagerL() |
|
468 { |
|
469 EUNIT_ASSERT( &iManager->MediaManager() != NULL ); |
|
470 |
|
471 } |
|
472 |
|
473 void UT_CMceSipManager::UT_CMceSipManager_SIPClientL() |
|
474 { |
|
475 EUNIT_ASSERT( &iManager->SIPClient() != NULL ); |
|
476 } |
|
477 |
|
478 void UT_CMceSipManager::UT_CMceSipManager_OrphanSubSessionCountL() |
|
479 { |
|
480 EUNIT_ASSERT( iManager->OrphanSubSessionCount() == 0 ); |
|
481 } |
|
482 |
|
483 |
|
484 // TEST TABLE |
|
485 |
|
486 EUNIT_BEGIN_TEST_TABLE( |
|
487 UT_CMceSipManager, |
|
488 "UT_CMceSipManager", |
|
489 "UNIT" ) |
|
490 |
|
491 EUNIT_TEST( |
|
492 "ProfileL - test ", |
|
493 "CMceSipManager", |
|
494 "ProfileL", |
|
495 "FUNCTIONALITY", |
|
496 SetupL, UT_CMceSipManager_ProfileL_1_L, Teardown) |
|
497 |
|
498 EUNIT_TEST( |
|
499 "ProfileL - test ", |
|
500 "CMceSipManager", |
|
501 "ProfileL", |
|
502 "FUNCTIONALITY", |
|
503 SetupL, UT_CMceSipManager_ProfileL_2_L, Teardown) |
|
504 |
|
505 EUNIT_TEST( |
|
506 "ConnectionL - test ", |
|
507 "CMceSipManager", |
|
508 "ConnectionL", |
|
509 "FUNCTIONALITY", |
|
510 SetupL, UT_CMceSipManager_ConnectionLL, Teardown) |
|
511 |
|
512 |
|
513 EUNIT_TEST( |
|
514 "IncomingRequest - test ", |
|
515 "CMceSipManager", |
|
516 "IncomingRequest", |
|
517 "FUNCTIONALITY", |
|
518 SetupL, UT_CMceSipManager_IncomingRequestL, Teardown) |
|
519 |
|
520 EUNIT_TEST( |
|
521 "TimedOut - test ", |
|
522 "CMceSipManager", |
|
523 "TimedOut", |
|
524 "FUNCTIONALITY", |
|
525 SetupL, UT_CMceSipManager_TimedOutL, Teardown) |
|
526 |
|
527 EUNIT_TEST( |
|
528 "ProfileRegistryEventOccurred - test ", |
|
529 "CMceSipManager", |
|
530 "ProfileRegistryEventOccurred", |
|
531 "FUNCTIONALITY", |
|
532 SetupL, UT_CMceSipManager_ProfileRegistryEventOccurredL, Teardown) |
|
533 |
|
534 EUNIT_TEST( |
|
535 "ProfileRegistryErrorOccurred - test ", |
|
536 "CMceSipManager", |
|
537 "ProfileRegistryErrorOccurred", |
|
538 "FUNCTIONALITY", |
|
539 SetupL, UT_CMceSipManager_ProfileRegistryErrorOccurredL, Teardown) |
|
540 |
|
541 EUNIT_TEST( |
|
542 "MediaError - test ", |
|
543 "CMceSipManager", |
|
544 "MediaError", |
|
545 "FUNCTIONALITY", |
|
546 SetupL, UT_CMceSipManager_MediaErrorL, Teardown) |
|
547 |
|
548 EUNIT_TEST( |
|
549 "NextDialogId - test ", |
|
550 "CMceSipManager", |
|
551 "NextDialogId", |
|
552 "FUNCTIONALITY", |
|
553 SetupL, UT_CMceSipManager_NextDialogIdL, Teardown) |
|
554 |
|
555 EUNIT_TEST( |
|
556 "UnRegisterClient - test ", |
|
557 "CMceSipManager", |
|
558 "UnRegisterClient", |
|
559 "FUNCTIONALITY", |
|
560 SetupL, UT_CMceSipManager_UnRegisterClientL, Teardown) |
|
561 |
|
562 EUNIT_TEST( |
|
563 "CreateSubSessionL - MO test ", |
|
564 "CMceSipManager", |
|
565 "CreateSubSessionL", |
|
566 "FUNCTIONALITY", |
|
567 SetupL, UT_CMceSipManager_CreateSubSessionL_1L, Teardown) |
|
568 |
|
569 EUNIT_TEST( |
|
570 "CreateSubSessionL - MO test ", |
|
571 "CMceSipManager", |
|
572 "CreateSubSessionL", |
|
573 "FUNCTIONALITY", |
|
574 SetupL, UT_CMceSipManager_CreateSubSessionL_2L, Teardown) |
|
575 EUNIT_TEST( |
|
576 "CreateSubSessionL - MT test ", |
|
577 "CMceSipManager", |
|
578 "CreateSubSessionL", |
|
579 "FUNCTIONALITY", |
|
580 SetupL, UT_CMceSipManager_CreateSubSessionL_3L, Teardown) |
|
581 |
|
582 EUNIT_TEST( |
|
583 "CreateSubSessionL - MT test ", |
|
584 "CMceSipManager", |
|
585 "CreateSubSessionL", |
|
586 "FUNCTIONALITY", |
|
587 SetupL, UT_CMceSipManager_CreateSubSessionNoProfileL, Teardown) |
|
588 |
|
589 EUNIT_TEST( |
|
590 "UnRegisterSubSession - test ", |
|
591 "CMceSipManager", |
|
592 "UnRegisterSubSession", |
|
593 "FUNCTIONALITY", |
|
594 SetupL, UT_CMceSipManager_UnRegisterSubSessionL, Teardown) |
|
595 |
|
596 EUNIT_TEST( |
|
597 "UnRegisterSubSessionNoProfile - test ", |
|
598 "CMceSipManager", |
|
599 "UnRegisterSubSessionNoProfile", |
|
600 "FUNCTIONALITY", |
|
601 SetupL, UT_CMceSipManager_UnRegisterSubSessionNoProfileL, Teardown) |
|
602 |
|
603 EUNIT_TEST( |
|
604 "MediaManager - test ", |
|
605 "CMceSipManager", |
|
606 "MediaManager", |
|
607 "FUNCTIONALITY", |
|
608 SetupL, UT_CMceSipManager_MediaManagerL, Teardown) |
|
609 |
|
610 EUNIT_TEST( |
|
611 "SIPClient - test ", |
|
612 "CMceSipManager", |
|
613 "SIPClient", |
|
614 "FUNCTIONALITY", |
|
615 SetupL, UT_CMceSipManager_SIPClientL, Teardown) |
|
616 |
|
617 EUNIT_TEST( |
|
618 "OrphanSubSessionCount - test ", |
|
619 "CMceSipManager", |
|
620 "OrphanSubSessionCount", |
|
621 "FUNCTIONALITY", |
|
622 SetupL, UT_CMceSipManager_OrphanSubSessionCountL, Teardown) |
|
623 |
|
624 |
|
625 EUNIT_END_TEST_TABLE |
|
626 |
|
627 // END OF FILE |