1 /* |
|
2 * t_vimpstenginesessioncntxtobserver.cpp ::Copyright (c) 2009 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:t_vimpstenginesessioncntxtobserver.cpp |
|
15 * |
|
16 */ |
|
17 #include <EUnitMacros.h> |
|
18 #include <TEUnitAssertionInfo.h> |
|
19 #include <CEUnitAllocTestCaseDecorator.h> |
|
20 #include "t_vimpstenginesessioncntxtobserver.h" |
|
21 |
|
22 #include <spentry.h> |
|
23 #include <spsettings.h> |
|
24 #include <spproperty.h> |
|
25 |
|
26 #include "cvimpstenginesessioncntxtobserver.h" |
|
27 |
|
28 #include "s_ximpclient.h" |
|
29 #include "s_ximpcontext.h" |
|
30 #include "s_ximpidentity.h" |
|
31 #include "s_presencefeatures.h" |
|
32 #include "s_presentitygroups.h" |
|
33 #include "s_ximprequestcompleteevent.h" |
|
34 #include "s_ximppresensitypresenceevent.h" |
|
35 #include "s_ximppresensitygroupcontentevent.h" |
|
36 #include "s_ximpcontextstateevent.h" |
|
37 #include "s_ximppresencegrantrequestlistevent.h" |
|
38 #include "s_ximpsearchevent.h" |
|
39 #include "s_ximpsearchkeysevent.h" |
|
40 #include "s_presenceblockinfo.h" |
|
41 |
|
42 |
|
43 #include "mvimpstenginesessioncntxtobserver.h" |
|
44 |
|
45 extern TInt32 gMXIMPRequestCompleteEventStubInterfaceId; |
|
46 extern TXIMPRequestId gMXIMPRequestCompleteEventStubRequestId; |
|
47 |
|
48 extern TInt gUnBindingLeaves; |
|
49 |
|
50 const TInt KTestServiceId = 5; |
|
51 |
|
52 |
|
53 class dummy_observer: public MVIMPSTEngineSessionCntxtObserver |
|
54 { |
|
55 void HandleSessionContextEventL( const MXIMPContext& /*aContext*/, |
|
56 const MXIMPBase& /*aEvent*/, |
|
57 TXimpOperation /*aXimpOperation = EVIMPSTXimpOperationNoOperation*/ |
|
58 ) |
|
59 { |
|
60 |
|
61 } |
|
62 }; |
|
63 |
|
64 T_VimpstEngineSessionCntxtObserver* T_VimpstEngineSessionCntxtObserver::NewLC() |
|
65 { |
|
66 T_VimpstEngineSessionCntxtObserver* self = |
|
67 new( ELeave ) T_VimpstEngineSessionCntxtObserver; |
|
68 CleanupStack::PushL( self ); |
|
69 self->ConstructL(); |
|
70 return self; |
|
71 } |
|
72 |
|
73 T_VimpstEngineSessionCntxtObserver::~T_VimpstEngineSessionCntxtObserver() |
|
74 { |
|
75 } |
|
76 |
|
77 void T_VimpstEngineSessionCntxtObserver::ConstructL() |
|
78 { |
|
79 CEUnitTestSuiteClass::ConstructL(); |
|
80 } |
|
81 |
|
82 void T_VimpstEngineSessionCntxtObserver::Setup1L() |
|
83 { |
|
84 iTestServiceId = CreateSpEntryL( KTestServiceId ); |
|
85 } |
|
86 |
|
87 void T_VimpstEngineSessionCntxtObserver::Setup2L() |
|
88 { |
|
89 iTestServiceId = CreateSpEntryL( KTestServiceId ); |
|
90 iSessionCntxtObserver = |
|
91 CVIMPSTEngineSessionCntxtObserver::NewL( iTestServiceId ); |
|
92 |
|
93 |
|
94 delete iSessionCntxtObserver->iFeatures; |
|
95 iSessionCntxtObserver->iFeatures = NULL; |
|
96 delete iSessionCntxtObserver->iPresenceCtx; |
|
97 iSessionCntxtObserver->iPresenceCtx = NULL; |
|
98 delete iSessionCntxtObserver->iClient; |
|
99 iSessionCntxtObserver->iClient = NULL; |
|
100 |
|
101 iSessionCntxtObserver->iClient = MXIMPClientStub::NewClientL();; |
|
102 |
|
103 //Create new sink to receive ximp context events |
|
104 iSessionCntxtObserver->iPresenceCtx = |
|
105 iSessionCntxtObserver->iClient->NewPresenceContextLC(); |
|
106 CleanupStack::Pop();// because of LC method |
|
107 |
|
108 iSessionCntxtObserver->iFeatures = |
|
109 MyMPresenceFeatureStub::NewStubL( |
|
110 iSessionCntxtObserver->iPresenceCtx); |
|
111 } |
|
112 |
|
113 void T_VimpstEngineSessionCntxtObserver::Teardown() |
|
114 { |
|
115 if ( iSessionCntxtObserver ) |
|
116 { |
|
117 delete iSessionCntxtObserver; |
|
118 iSessionCntxtObserver = NULL; |
|
119 } |
|
120 } |
|
121 |
|
122 TInt T_VimpstEngineSessionCntxtObserver::CreateSpEntryL( TInt aServiceId ) |
|
123 { |
|
124 CSPSettings* settings = CSPSettings::NewLC(); |
|
125 |
|
126 CSPEntry* entry = CSPEntry::NewLC(); |
|
127 entry->SetServiceId( aServiceId ); |
|
128 |
|
129 CSPEntry* testEntry = CSPEntry::NewLC(); |
|
130 TInt result = settings->FindEntryL( entry->GetServiceId(), *testEntry ); |
|
131 |
|
132 if( result == KErrNone ) |
|
133 { |
|
134 settings->UpdateEntryL( *entry ); |
|
135 } |
|
136 else |
|
137 { |
|
138 settings->AddEntryL( *entry ); |
|
139 } |
|
140 |
|
141 TInt createdServiceId = entry->GetServiceId(); |
|
142 |
|
143 CleanupStack::PopAndDestroy( testEntry ); |
|
144 CleanupStack::PopAndDestroy( entry ); |
|
145 CleanupStack::PopAndDestroy( settings ); |
|
146 |
|
147 return createdServiceId; |
|
148 } |
|
149 |
|
150 void T_VimpstEngineSessionCntxtObserver::T_NewLL() |
|
151 { |
|
152 iSessionCntxtObserver = |
|
153 CVIMPSTEngineSessionCntxtObserver::NewL( iTestServiceId ); |
|
154 |
|
155 EUNIT_ASSERT( iSessionCntxtObserver != NULL ); |
|
156 } |
|
157 |
|
158 void T_VimpstEngineSessionCntxtObserver::T_HandlePresenceContextEventL() |
|
159 { |
|
160 MXIMPContext* context = NULL; |
|
161 MXIMPRequestCompleteEventStub requestCompleteEvent; |
|
162 iSessionCntxtObserver->HandlePresenceContextEvent( |
|
163 *context, requestCompleteEvent ); |
|
164 } |
|
165 |
|
166 void T_VimpstEngineSessionCntxtObserver::T_GetCompletedReqResultL() |
|
167 { |
|
168 TInt result( KErrNotFound ); |
|
169 iSessionCntxtObserver->iReqResult = KErrNone; |
|
170 result = iSessionCntxtObserver->GetCompletedReqResult(); |
|
171 EUNIT_ASSERT( KErrNone == result ); |
|
172 } |
|
173 |
|
174 void T_VimpstEngineSessionCntxtObserver::T_GetRequestMapperL() |
|
175 { |
|
176 CVIMPSTEngineRequestMapper* requestMapper = |
|
177 iSessionCntxtObserver->GetRequestMapper(); |
|
178 EUNIT_ASSERT( requestMapper != NULL ); |
|
179 } |
|
180 |
|
181 void T_VimpstEngineSessionCntxtObserver::T_ServerBindL() |
|
182 { |
|
183 TInt err( KErrNone ); |
|
184 TUid protocolUid( KNullUid ); |
|
185 |
|
186 // Test with bind status EVIMPSTBindDone |
|
187 // -> error code shoud be KErrNotFound |
|
188 iSessionCntxtObserver->iBindStatus = TVIMPSTEnums::EVIMPSTBindDone; |
|
189 err = iSessionCntxtObserver->ServerBindL( protocolUid ); |
|
190 EUNIT_ASSERT( KErrNotFound == err ); |
|
191 |
|
192 // Test with other bind status that EVIMPSTBindDone |
|
193 // -> error code should be KErrNone |
|
194 iSessionCntxtObserver->iBindStatus = TVIMPSTEnums::EVIMPSTBindNotDone; |
|
195 err = iSessionCntxtObserver->ServerBindL( protocolUid ); |
|
196 EUNIT_ASSERT( KErrNone == err ); |
|
197 } |
|
198 |
|
199 void T_VimpstEngineSessionCntxtObserver::T_ServerUnBindL() |
|
200 { |
|
201 TInt err( KErrNone ); |
|
202 TBool doUnsubscribe( EFalse ); |
|
203 |
|
204 // Test different combinations with bind status EVIMPSTBindDone and |
|
205 // binding leaving with KErrGeneral |
|
206 gUnBindingLeaves = KErrGeneral; |
|
207 |
|
208 doUnsubscribe = EFalse; |
|
209 iSessionCntxtObserver->iBindStatus = TVIMPSTEnums::EVIMPSTBindDone; |
|
210 err = iSessionCntxtObserver->ServerUnBindL( doUnsubscribe ); |
|
211 EUNIT_ASSERT( KErrGeneral == err ); |
|
212 |
|
213 doUnsubscribe = ETrue; |
|
214 iSessionCntxtObserver->iBindStatus = TVIMPSTEnums::EVIMPSTBindDone; |
|
215 err = iSessionCntxtObserver->ServerUnBindL( doUnsubscribe ); |
|
216 EUNIT_ASSERT( KErrGeneral == err ); |
|
217 |
|
218 // Test different combinations with bind status EVIMPSTBindDone and |
|
219 // binding not leaving |
|
220 gUnBindingLeaves = KErrNone; |
|
221 |
|
222 doUnsubscribe = EFalse; |
|
223 iSessionCntxtObserver->iBindStatus = TVIMPSTEnums::EVIMPSTBindDone; |
|
224 err = iSessionCntxtObserver->ServerUnBindL( doUnsubscribe ); |
|
225 EUNIT_ASSERT( KErrNone == err ); |
|
226 |
|
227 doUnsubscribe = ETrue; |
|
228 iSessionCntxtObserver->iBindStatus = TVIMPSTEnums::EVIMPSTBindDone; |
|
229 err = iSessionCntxtObserver->ServerUnBindL( doUnsubscribe ); |
|
230 EUNIT_ASSERT( KErrNone == err ); |
|
231 |
|
232 // Test with bind status EVIMPSTBindFailureMode |
|
233 iSessionCntxtObserver->iBindStatus = TVIMPSTEnums::EVIMPSTBindFailureMode; |
|
234 err = iSessionCntxtObserver->ServerUnBindL( doUnsubscribe ); |
|
235 EUNIT_ASSERT( KErrNotFound == err ); |
|
236 |
|
237 // Test with some other bind status that EVIMPSTBindDone or EVIMPSTBindFailureMode |
|
238 iSessionCntxtObserver->iBindStatus = TVIMPSTEnums::EVIMPSTBindNotDone; |
|
239 err = iSessionCntxtObserver->ServerUnBindL( doUnsubscribe ); |
|
240 EUNIT_ASSERT( KErrNotFound == err ); |
|
241 } |
|
242 |
|
243 void T_VimpstEngineSessionCntxtObserver::T_UriFromXimpOperationLCL() |
|
244 { |
|
245 MPresentityPresenceEventStub event; |
|
246 HBufC* uri = iSessionCntxtObserver->UriFromXimpOperationLC( event ); |
|
247 EUNIT_ASSERT( uri != NULL ) |
|
248 //EUNIT_ASSERT( uri->Des().Compare( KTestIdentity ) == 0 ); |
|
249 CleanupStack::PopAndDestroy( uri ); |
|
250 } |
|
251 void T_VimpstEngineSessionCntxtObserver::T_DoHandlePresenceContextEventLL() |
|
252 { |
|
253 TInt error( KErrNone ); |
|
254 |
|
255 MXIMPContext* context = NULL; |
|
256 |
|
257 // Test with MXIMPRequestCompleteEventStub |
|
258 MXIMPRequestCompleteEventStub requestCompleteEvent; |
|
259 TRAP( error, iSessionCntxtObserver->DoHandlePresenceContextEventL( |
|
260 *context, requestCompleteEvent ) ); |
|
261 if ( KErrNoMemory == error ) |
|
262 { |
|
263 User::Leave( error ); |
|
264 } |
|
265 EUNIT_ASSERT( KErrNone == error ); |
|
266 |
|
267 // Test with MXIMPContextStateEventStub |
|
268 MXIMPContextStateEventStub contextStateEvent; |
|
269 TRAP( error, iSessionCntxtObserver->DoHandlePresenceContextEventL( |
|
270 *context, contextStateEvent ) ); |
|
271 if ( KErrNoMemory == error ) |
|
272 { |
|
273 User::Leave( error ); |
|
274 } |
|
275 EUNIT_ASSERT( KErrNone == error ); |
|
276 |
|
277 // Test with MPresentityPresenceEventStub |
|
278 MPresentityPresenceEventStub presentityPresenceEvent; |
|
279 TRAP( error, iSessionCntxtObserver->DoHandlePresenceContextEventL( |
|
280 *context, presentityPresenceEvent ) ); |
|
281 if ( KErrNoMemory == error ) |
|
282 { |
|
283 User::Leave( error ); |
|
284 } |
|
285 EUNIT_ASSERT( KErrNone == error ); |
|
286 |
|
287 // Test with MPresentityGroupContentEventStub |
|
288 MPresentityGroupContentEventStub presentityGroupContentEvent; |
|
289 TRAP( error, iSessionCntxtObserver->DoHandlePresenceContextEventL( |
|
290 *context, presentityGroupContentEvent ) ); |
|
291 if ( KErrNoMemory == error ) |
|
292 { |
|
293 User::Leave( error ); |
|
294 } |
|
295 EUNIT_ASSERT( KErrNone == error ); |
|
296 |
|
297 // Test with MPresenceGrantRequestListEventStub |
|
298 MPresenceGrantRequestListEventStub presenceGrantRequestListEvent; |
|
299 TRAP( error, iSessionCntxtObserver->DoHandlePresenceContextEventL( |
|
300 *context, presentityGroupContentEvent ) ); |
|
301 if ( KErrNoMemory == error ) |
|
302 { |
|
303 User::Leave( error ); |
|
304 } |
|
305 EUNIT_ASSERT( KErrNone == error ); |
|
306 |
|
307 // Test with MPresenceblockinfostub |
|
308 MPresenceBlockInfoStub presenceblockinfo; |
|
309 TRAP( error, iSessionCntxtObserver->DoHandlePresenceContextEventL( |
|
310 *context, presenceblockinfo ) ); |
|
311 if ( KErrNoMemory == error ) |
|
312 { |
|
313 User::Leave( error ); |
|
314 } |
|
315 EUNIT_ASSERT( KErrNone == error ); |
|
316 |
|
317 // Test with MSearchEventStub |
|
318 MSearchEventStub searchEvent; |
|
319 TRAP( error, iSessionCntxtObserver->DoHandlePresenceContextEventL( |
|
320 *context, searchEvent ) ); |
|
321 if ( KErrNoMemory == error ) |
|
322 { |
|
323 User::Leave( error ); |
|
324 } |
|
325 EUNIT_ASSERT( KErrNone == error ); |
|
326 |
|
327 //Test with MSearchKeysEventStub |
|
328 MSearchKeysEventStub searchKeysEvent; |
|
329 TRAP( error, iSessionCntxtObserver->DoHandlePresenceContextEventL( |
|
330 *context, searchKeysEvent ) ); |
|
331 if ( KErrNoMemory == error ) |
|
332 { |
|
333 User::Leave( error ); |
|
334 } |
|
335 EUNIT_ASSERT( KErrNone == error ); |
|
336 } |
|
337 void T_VimpstEngineSessionCntxtObserver::T_XimpAuthorizationLL() |
|
338 { |
|
339 MPresenceAuthorization& presenceAuthorization = |
|
340 iSessionCntxtObserver->XimpAuthorizationL(); |
|
341 } |
|
342 void T_VimpstEngineSessionCntxtObserver::T_XimpPresenceWatchingLL() |
|
343 { |
|
344 TRAPD( err, |
|
345 MPresenceWatching& presenceWatching = |
|
346 iSessionCntxtObserver->XimpPresenceWatchingL() |
|
347 ); |
|
348 |
|
349 if ( KErrNoMemory == err ) |
|
350 { |
|
351 User::Leave( err ); |
|
352 } |
|
353 |
|
354 EUNIT_ASSERT( KErrNone == err || KErrNotSupported == err ); |
|
355 } |
|
356 void T_VimpstEngineSessionCntxtObserver::T_XimpPresentityGroupsLL() |
|
357 { |
|
358 TRAPD( err, |
|
359 MPresentityGroups& presentityGroups = |
|
360 iSessionCntxtObserver->XimpPresentityGroupsL() |
|
361 ); |
|
362 |
|
363 if ( KErrNoMemory == err ) |
|
364 { |
|
365 User::Leave( err ); |
|
366 } |
|
367 |
|
368 EUNIT_ASSERT( KErrNone == err || KErrNotSupported == err ); |
|
369 } |
|
370 void T_VimpstEngineSessionCntxtObserver::T_XimpPresencePublishingLL() |
|
371 { |
|
372 TRAPD( err, |
|
373 MPresencePublishing& presencePublishing = |
|
374 iSessionCntxtObserver->XimpPresencePublishingL() |
|
375 ); |
|
376 |
|
377 if ( KErrNoMemory == err ) |
|
378 { |
|
379 User::Leave( err ); |
|
380 } |
|
381 |
|
382 EUNIT_ASSERT( KErrNone == err || KErrNotSupported == err ); |
|
383 } |
|
384 void T_VimpstEngineSessionCntxtObserver::T_XimpPresenceContextL() |
|
385 { |
|
386 MXIMPContext& ximpContext = |
|
387 iSessionCntxtObserver->XimpPresenceContextL(); |
|
388 } |
|
389 void T_VimpstEngineSessionCntxtObserver::T_PresenceObjectFactoryL() |
|
390 { |
|
391 MPresenceObjectFactory& presenceObjectFactory = |
|
392 iSessionCntxtObserver->PresenceObjectFactoryL(); |
|
393 } |
|
394 |
|
395 void T_VimpstEngineSessionCntxtObserver::T_RegisterObserverL() |
|
396 { |
|
397 MVIMPSTEngineSessionCntxtObserver* observer = new dummy_observer; // chauhan |
|
398 iSessionCntxtObserver->RegisterObserver( observer ); |
|
399 EUNIT_ASSERT( iSessionCntxtObserver->iObserverArray.Count() == 1 ); |
|
400 } |
|
401 |
|
402 void T_VimpstEngineSessionCntxtObserver::T_UnRegisterObserverL() |
|
403 { |
|
404 MVIMPSTEngineSessionCntxtObserver* observer = new dummy_observer; // chauhan |
|
405 iSessionCntxtObserver->RegisterObserver( observer ); |
|
406 EUNIT_ASSERT( iSessionCntxtObserver->iObserverArray.Count() == 1 ); |
|
407 |
|
408 iSessionCntxtObserver->UnRegisterObserver( observer ); |
|
409 EUNIT_ASSERT( iSessionCntxtObserver->iObserverArray.Count() == 0 ); |
|
410 } |
|
411 |
|
412 void T_VimpstEngineSessionCntxtObserver::T_IdentifySupportedFeaturesL() |
|
413 { |
|
414 iSessionCntxtObserver->IdentifySupportedFeaturesL(); |
|
415 } |
|
416 |
|
417 void T_VimpstEngineSessionCntxtObserver::T_GetSupportedFeaturesL() |
|
418 { |
|
419 TInt supportedFeatures = |
|
420 iSessionCntxtObserver->GetSupportedFeatures(); |
|
421 } |
|
422 |
|
423 |
|
424 |
|
425 |
|
426 |
|
427 |
|
428 EUNIT_BEGIN_TEST_TABLE( T_VimpstEngineSessionCntxtObserver, "T_VimpstEngineSessionCntxtObserver", "" ) |
|
429 |
|
430 EUNIT_TEST( |
|
431 "NewL - test ", |
|
432 "T_VimpstEngineSessionCntxtObserver", |
|
433 "NewL", |
|
434 "FUNCTIONALITY", |
|
435 Setup1L, T_NewLL, Teardown) |
|
436 |
|
437 EUNIT_TEST( |
|
438 "HandlePresenceContextEvent - test ", |
|
439 "T_VimpstEngineSessionCntxtObserver", |
|
440 "HandlePresenceContextEvent", |
|
441 "FUNCTIONALITY", |
|
442 Setup2L, T_HandlePresenceContextEventL, Teardown) |
|
443 |
|
444 EUNIT_TEST( |
|
445 "GetCompletedReqResult - test ", |
|
446 "T_VimpstEngineSessionCntxtObserver", |
|
447 "GetCompletedReqResult", |
|
448 "FUNCTIONALITY", |
|
449 Setup2L, T_GetCompletedReqResultL, Teardown) |
|
450 |
|
451 EUNIT_TEST( |
|
452 "GetRequestMapper - test ", |
|
453 "T_VimpstEngineSessionCntxtObserver", |
|
454 "GetRequestMapper", |
|
455 "FUNCTIONALITY", |
|
456 Setup2L, T_GetRequestMapperL, Teardown) |
|
457 |
|
458 EUNIT_TEST( |
|
459 "ServerBind - test ", |
|
460 "T_VimpstEngineSessionCntxtObserver", |
|
461 "ServerBind", |
|
462 "FUNCTIONALITY", |
|
463 Setup2L, T_ServerBindL, Teardown) |
|
464 |
|
465 EUNIT_TEST( |
|
466 "ServerUnBind - test ", |
|
467 "T_VimpstEngineSessionCntxtObserver", |
|
468 "ServerUnBind", |
|
469 "FUNCTIONALITY", |
|
470 Setup2L, T_ServerUnBindL, Teardown) |
|
471 |
|
472 EUNIT_TEST( |
|
473 "UriFromXimpOperationLC - test ", |
|
474 "T_VimpstEngineSessionCntxtObserver", |
|
475 "UriFromXimpOperationLC", |
|
476 "FUNCTIONALITY", |
|
477 Setup2L, T_UriFromXimpOperationLCL, Teardown) |
|
478 |
|
479 EUNIT_TEST( |
|
480 "DoHandlePresenceContextEventL - test ", |
|
481 "T_VimpstEngineSessionCntxtObserver", |
|
482 "DoHandlePresenceContextEventL", |
|
483 "FUNCTIONALITY", |
|
484 Setup2L, T_DoHandlePresenceContextEventLL, Teardown) |
|
485 |
|
486 EUNIT_TEST( |
|
487 "XimpAuthorizationL - test ", |
|
488 "T_VimpstEngineSessionCntxtObserver", |
|
489 "XimpAuthorizationL", |
|
490 "FUNCTIONALITY", |
|
491 Setup2L, T_XimpAuthorizationLL, Teardown) |
|
492 |
|
493 EUNIT_TEST( |
|
494 "XimpPresenceWatchingL - test ", |
|
495 "T_VimpstEngineSessionCntxtObserver", |
|
496 "XimpPresenceWatchingL", |
|
497 "FUNCTIONALITY", |
|
498 Setup2L, T_XimpPresenceWatchingLL, Teardown) |
|
499 |
|
500 EUNIT_TEST( |
|
501 "XimpPresentityGroupsL - test ", |
|
502 "T_VimpstEngineSessionCntxtObserver", |
|
503 "XimpPresentityGroupsL", |
|
504 "FUNCTIONALITY", |
|
505 Setup2L, T_XimpPresentityGroupsLL, Teardown) |
|
506 |
|
507 EUNIT_TEST( |
|
508 "XimpPresencePublishingL - test ", |
|
509 "T_VimpstEngineSessionCntxtObserver", |
|
510 "XimpPresencePublishingL", |
|
511 "FUNCTIONALITY", |
|
512 Setup2L, T_XimpPresencePublishingLL, Teardown) |
|
513 |
|
514 EUNIT_TEST( |
|
515 "XimpPresenceContext - test ", |
|
516 "T_VimpstEngineSessionCntxtObserver", |
|
517 "XimpPresenceContext", |
|
518 "FUNCTIONALITY", |
|
519 Setup2L, T_XimpPresenceContextL, Teardown) |
|
520 |
|
521 EUNIT_TEST( |
|
522 "PresenceObjectFactory - test ", |
|
523 "T_VimpstEngineSessionCntxtObserver", |
|
524 "PresenceObjectFactory", |
|
525 "FUNCTIONALITY", |
|
526 Setup2L, T_PresenceObjectFactoryL, Teardown) |
|
527 |
|
528 EUNIT_TEST( |
|
529 "RegisterObserver - test ", |
|
530 "T_VimpstEngineSessionCntxtObserver", |
|
531 "RegisterObserver", |
|
532 "FUNCTIONALITY", |
|
533 Setup2L, T_RegisterObserverL, Teardown) |
|
534 |
|
535 EUNIT_TEST( |
|
536 "UnRegisterObserver - test ", |
|
537 "T_VimpstEngineSessionCntxtObserver", |
|
538 "UnRegisterObserver", |
|
539 "FUNCTIONALITY", |
|
540 Setup2L, T_UnRegisterObserverL, Teardown) |
|
541 |
|
542 EUNIT_TEST( |
|
543 "IdentifySupportedFeatures - test ", |
|
544 "T_VimpstEngineSessionCntxtObserver", |
|
545 "IdentifySupportedFeatures", |
|
546 "FUNCTIONALITY", |
|
547 Setup2L, T_IdentifySupportedFeaturesL, Teardown) |
|
548 |
|
549 EUNIT_TEST( |
|
550 "GetSupportedFeatures - test ", |
|
551 "T_VimpstEngineSessionCntxtObserver", |
|
552 "GetSupportedFeatures", |
|
553 "FUNCTIONALITY", |
|
554 Setup2L, T_GetSupportedFeaturesL, Teardown) |
|
555 |
|
556 |
|
557 EUNIT_END_TESTCASE_TABLE |
|
558 |
|
559 // END OF FILE |
|