1 /* |
|
2 * t_vimpstengineservicetablefetcher.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_vimpstengineservicetablefetcher.cpp |
|
15 * |
|
16 */ |
|
17 #include <EUnitMacros.h> |
|
18 #include <TEUnitAssertionInfo.h> |
|
19 #include <CEUnitAllocTestCaseDecorator.h> |
|
20 #include "t_vimpstengineservicetablefetcher.h" |
|
21 |
|
22 #include "cvimpstengineservicetablefetcher.h" |
|
23 #include "vimpstextentionuiuid.h" |
|
24 |
|
25 #include <spsettings.h> |
|
26 #include <spentry.h> |
|
27 #include <spproperty.h> |
|
28 |
|
29 #include "s_cch.h" |
|
30 |
|
31 #include "tvimpstenums.h" |
|
32 |
|
33 extern TBool createService ; |
|
34 extern TBool tryPresenceSubServiceAvailable ; |
|
35 extern MyCchService* myService; |
|
36 |
|
37 _LIT( KDbName, "contacts.cdb"); |
|
38 _LIT( KDbNameURI, "cntdb://c:contacts.cdb"); |
|
39 _LIT( KServiceName, "TestService"); |
|
40 |
|
41 |
|
42 T_VIMPSTEngineServiceTableFetcher* T_VIMPSTEngineServiceTableFetcher::NewLC() |
|
43 { |
|
44 T_VIMPSTEngineServiceTableFetcher* self = new( ELeave ) T_VIMPSTEngineServiceTableFetcher; |
|
45 CleanupStack::PushL( self ); |
|
46 self->ConstructL(); |
|
47 return self; |
|
48 } |
|
49 |
|
50 T_VIMPSTEngineServiceTableFetcher::~T_VIMPSTEngineServiceTableFetcher() |
|
51 { |
|
52 } |
|
53 |
|
54 void T_VIMPSTEngineServiceTableFetcher::ConstructL() |
|
55 { |
|
56 CEUnitTestSuiteClass::ConstructL(); |
|
57 } |
|
58 |
|
59 void T_VIMPSTEngineServiceTableFetcher::SetupL() |
|
60 { |
|
61 iServiceTableFetcher = CVIMPSTEngineServiceTableFetcher::NewL(); |
|
62 iSpSettings = CSPSettings::NewL(); |
|
63 } |
|
64 |
|
65 void T_VIMPSTEngineServiceTableFetcher::Setup1L() |
|
66 { |
|
67 } |
|
68 |
|
69 void T_VIMPSTEngineServiceTableFetcher::Teardown() |
|
70 { |
|
71 delete myService; |
|
72 myService = NULL; |
|
73 createService = EFalse; |
|
74 tryPresenceSubServiceAvailable = EFalse; |
|
75 |
|
76 delete iServiceTableFetcher; |
|
77 //delete iSpSettings; only 1 instance of SPSettings is created this will be deleted by iServiceTableFetcher |
|
78 } |
|
79 |
|
80 |
|
81 void T_VIMPSTEngineServiceTableFetcher::TestConstructionL() |
|
82 { |
|
83 |
|
84 EUNIT_ASSERT( iServiceTableFetcher ); |
|
85 |
|
86 } |
|
87 |
|
88 |
|
89 void T_VIMPSTEngineServiceTableFetcher::TestConstructionWithValidServicesL() |
|
90 { |
|
91 |
|
92 iSpSettings = CSPSettings::NewL(); |
|
93 |
|
94 createService = ETrue; |
|
95 tryPresenceSubServiceAvailable = ETrue; //atleast 1 subservice is valid |
|
96 |
|
97 CreateSpEntryL( 1, EPropertyContactViewPluginId, KIMCONTACTSEXTNIMPLEMENTATIONUID ); |
|
98 |
|
99 iServiceTableFetcher = CVIMPSTEngineServiceTableFetcher::NewL(); |
|
100 |
|
101 EUNIT_ASSERT( iServiceTableFetcher ); |
|
102 |
|
103 } |
|
104 |
|
105 |
|
106 void T_VIMPSTEngineServiceTableFetcher::TestConstructionWithInValidServicesL() |
|
107 { |
|
108 |
|
109 iSpSettings = CSPSettings::NewL(); |
|
110 |
|
111 CreateSpEntryL( 1, EPropertyContactViewPluginId, KIMCONTACTSEXTNIMPLEMENTATIONUID ); |
|
112 |
|
113 iServiceTableFetcher = CVIMPSTEngineServiceTableFetcher::NewL(); |
|
114 |
|
115 EUNIT_ASSERT( iServiceTableFetcher ); |
|
116 |
|
117 } |
|
118 |
|
119 |
|
120 |
|
121 void T_VIMPSTEngineServiceTableFetcher::GetMasterServiceIdsNoServicesL() |
|
122 { |
|
123 RArray<TUint32> services; |
|
124 |
|
125 iServiceTableFetcher->GetMasterServiceIdsL(services); |
|
126 |
|
127 EUNIT_ASSERT_EQUALS( 0, services.Count() ); |
|
128 |
|
129 services.Close(); |
|
130 } |
|
131 |
|
132 |
|
133 void T_VIMPSTEngineServiceTableFetcher::GetMasterServiceIdsServicesMatchContactViewUidInValidServiceL() |
|
134 { |
|
135 RArray<TUint32> services; |
|
136 |
|
137 CreateSpEntryL( 1, EPropertyContactViewPluginId, KIMCONTACTSEXTNIMPLEMENTATIONUID ); |
|
138 |
|
139 iServiceTableFetcher->GetMasterServiceIdsL(services); |
|
140 |
|
141 EUNIT_ASSERT_EQUALS( 1, services.Count() ); |
|
142 |
|
143 services.Close(); |
|
144 } |
|
145 |
|
146 void T_VIMPSTEngineServiceTableFetcher::GetMasterServiceIdsServicesMatchContactViewUidValidServiceL() |
|
147 { |
|
148 RArray<TUint32> services; |
|
149 |
|
150 createService = ETrue; |
|
151 tryPresenceSubServiceAvailable = ETrue; //atleast 1 subservice is valid |
|
152 |
|
153 CreateSpEntryL( 1, EPropertyContactViewPluginId, KIMCONTACTSEXTNIMPLEMENTATIONUID ); |
|
154 |
|
155 iServiceTableFetcher->GetMasterServiceIdsL(services); |
|
156 |
|
157 EUNIT_ASSERT_EQUALS( 1, services.Count() ); |
|
158 |
|
159 services.Close(); |
|
160 } |
|
161 |
|
162 |
|
163 void T_VIMPSTEngineServiceTableFetcher::GetMasterServiceIdsServicesNoMatchContactViewUidL() |
|
164 { |
|
165 RArray<TUint32> services; |
|
166 |
|
167 CreateSpEntryL( 1, EPropertyContactViewPluginId, 0x20010000 ); |
|
168 |
|
169 iServiceTableFetcher->GetMasterServiceIdsL(services); |
|
170 |
|
171 EUNIT_ASSERT_EQUALS( 0, services.Count() ); |
|
172 |
|
173 services.Close(); |
|
174 } |
|
175 |
|
176 void T_VIMPSTEngineServiceTableFetcher::CreateSpEntryL( TInt aServiceId, |
|
177 TServicePropertyName aName, |
|
178 TInt aValue ) |
|
179 { |
|
180 CSPProperty* property = CSPProperty::NewL(); |
|
181 CleanupStack::PushL( property ); |
|
182 property->SetName( aName ); |
|
183 property->SetValue( aValue ); |
|
184 |
|
185 CSPEntry* entry = CSPEntry::NewL(); |
|
186 CleanupStack::PushL( entry ); |
|
187 entry->SetServiceId( aServiceId ); |
|
188 entry->SetServiceName(KServiceName() ); |
|
189 |
|
190 entry->AddPropertyL( *property ); |
|
191 |
|
192 CSPEntry* testEntry = CSPEntry::NewLC(); |
|
193 TInt result = iSpSettings->FindEntryL( entry->GetServiceId(), *testEntry ); |
|
194 if( result == KErrNone ) |
|
195 { |
|
196 iSpSettings->UpdateEntryL( *entry ); |
|
197 } |
|
198 else |
|
199 { |
|
200 iSpSettings->AddEntryL( *entry ); |
|
201 } |
|
202 CleanupStack::PopAndDestroy( 3 ); |
|
203 } |
|
204 |
|
205 void T_VIMPSTEngineServiceTableFetcher::CreateSpEntry1L( TInt aServiceId, |
|
206 TServicePropertyName aName, |
|
207 const TDesC& aValue ) |
|
208 { |
|
209 CSPProperty* property = CSPProperty::NewL(); |
|
210 CleanupStack::PushL( property ); |
|
211 property->SetName( aName ); |
|
212 property->SetValue( aValue ); |
|
213 |
|
214 CSPEntry* entry = CSPEntry::NewL(); |
|
215 CleanupStack::PushL( entry ); |
|
216 entry->SetServiceId( aServiceId ); |
|
217 entry->SetServiceName(KServiceName() ); |
|
218 |
|
219 entry->AddPropertyL( *property ); |
|
220 |
|
221 CSPEntry* testEntry = CSPEntry::NewLC(); |
|
222 TInt result = iSpSettings->FindEntryL( entry->GetServiceId(), *testEntry ); |
|
223 if( result == KErrNone ) |
|
224 { |
|
225 iSpSettings->UpdateEntryL( *entry ); |
|
226 } |
|
227 else |
|
228 { |
|
229 iSpSettings->AddEntryL( *entry ); |
|
230 } |
|
231 CleanupStack::PopAndDestroy( 3 ); |
|
232 |
|
233 } |
|
234 |
|
235 |
|
236 void T_VIMPSTEngineServiceTableFetcher::CreateSpEntry1L( TInt aServiceId, |
|
237 TServicePropertyName aName, |
|
238 TOnOff aValue ) |
|
239 { |
|
240 CSPProperty* property = CSPProperty::NewL(); |
|
241 CleanupStack::PushL( property ); |
|
242 property->SetName( aName ); |
|
243 property->SetValue( aValue ); |
|
244 |
|
245 CSPEntry* entry = CSPEntry::NewL(); |
|
246 CleanupStack::PushL( entry ); |
|
247 entry->SetServiceId( aServiceId ); |
|
248 entry->SetServiceName(KServiceName() ); |
|
249 |
|
250 entry->AddPropertyL( *property ); |
|
251 |
|
252 CSPEntry* testEntry = CSPEntry::NewLC(); |
|
253 TInt result = iSpSettings->FindEntryL( entry->GetServiceId(), *testEntry ); |
|
254 if( result == KErrNone ) |
|
255 { |
|
256 iSpSettings->UpdateEntryL( *entry ); |
|
257 } |
|
258 else |
|
259 { |
|
260 iSpSettings->AddEntryL( *entry ); |
|
261 } |
|
262 CleanupStack::PopAndDestroy( 3 ); |
|
263 |
|
264 } |
|
265 |
|
266 |
|
267 void T_VIMPSTEngineServiceTableFetcher::GetContactStoreIdPropertyNotFoundL() |
|
268 { |
|
269 |
|
270 HBufC* contactStoreId = HBufC::NewL(500); |
|
271 CleanupStack::PushL(contactStoreId); |
|
272 |
|
273 TPtr storeNamePtr = contactStoreId->Des(); |
|
274 |
|
275 iServiceTableFetcher->GetContactStoreIdL(1, storeNamePtr); |
|
276 |
|
277 EUNIT_ASSERT_EQUALS( 0, storeNamePtr.Length() ); |
|
278 |
|
279 CleanupStack::PopAndDestroy( contactStoreId ); |
|
280 |
|
281 } |
|
282 |
|
283 |
|
284 void T_VIMPSTEngineServiceTableFetcher::GetContactStoreIdPropertyFoundL() |
|
285 { |
|
286 |
|
287 HBufC* contactStoreId = HBufC::NewL(500); |
|
288 CleanupStack::PushL(contactStoreId); |
|
289 //contactStoreId->Des().Copy(_L("1_contacts.cdb")); |
|
290 |
|
291 TPtr storeNamePtr = contactStoreId->Des(); |
|
292 |
|
293 CreateSpEntry1L( 1, EPropertyContactStoreId, KDbName() ); |
|
294 |
|
295 iServiceTableFetcher->GetContactStoreIdL(1, storeNamePtr); |
|
296 |
|
297 if (storeNamePtr.Compare(KDbName)) |
|
298 { |
|
299 User::Leave( KErrArgument ); |
|
300 } |
|
301 |
|
302 CleanupStack::PopAndDestroy( contactStoreId ); |
|
303 |
|
304 } |
|
305 |
|
306 void T_VIMPSTEngineServiceTableFetcher::GetContactStoreIdPropertyFoundWithContactUriDomainL() |
|
307 { |
|
308 |
|
309 HBufC* contactStoreId = HBufC::NewL(500); |
|
310 CleanupStack::PushL(contactStoreId); |
|
311 |
|
312 TPtr storeNamePtr = contactStoreId->Des(); |
|
313 |
|
314 CreateSpEntry1L( 1, EPropertyContactStoreId, KDbNameURI() ); |
|
315 |
|
316 iServiceTableFetcher->GetContactStoreIdL(1, storeNamePtr); |
|
317 |
|
318 if (storeNamePtr.Compare(KDbNameURI)) |
|
319 { |
|
320 User::Leave( KErrArgument ); |
|
321 } |
|
322 |
|
323 CleanupStack::PopAndDestroy( contactStoreId ); |
|
324 |
|
325 } |
|
326 |
|
327 |
|
328 void T_VIMPSTEngineServiceTableFetcher::GetBrandIdLPropertyNotFoundL() |
|
329 { |
|
330 |
|
331 HBufC8* brandId = HBufC8::NewL(500); |
|
332 CleanupStack::PushL(brandId); |
|
333 |
|
334 TPtr8 brandIdPtr = brandId->Des(); |
|
335 |
|
336 iServiceTableFetcher->GetBrandIdL(1, brandIdPtr); |
|
337 |
|
338 EUNIT_ASSERT_EQUALS( 0, brandIdPtr.Length() ); |
|
339 |
|
340 CleanupStack::PopAndDestroy( brandId ); |
|
341 |
|
342 } |
|
343 |
|
344 |
|
345 void T_VIMPSTEngineServiceTableFetcher::GetBrandIdLPropertyFoundL() |
|
346 { |
|
347 |
|
348 HBufC8* brandId = HBufC8::NewL(500); |
|
349 CleanupStack::PushL(brandId); |
|
350 |
|
351 TPtr8 brandIdPtr = brandId->Des(); |
|
352 |
|
353 CreateSpEntry1L( 1, EPropertyBrandId, _L("MyBrand") ); |
|
354 |
|
355 iServiceTableFetcher->GetBrandIdL(1, brandIdPtr); |
|
356 |
|
357 if (brandIdPtr.Compare(_L8("MyBrand"))) |
|
358 { |
|
359 User::Leave( KErrArgument ); |
|
360 } |
|
361 |
|
362 CleanupStack::PopAndDestroy( brandId ); |
|
363 |
|
364 } |
|
365 |
|
366 |
|
367 |
|
368 void T_VIMPSTEngineServiceTableFetcher::FindPropertyNotFoundL() |
|
369 { |
|
370 TInt err = iServiceTableFetcher->FindPropertyL(1, EPropertyContactViewPluginId); |
|
371 |
|
372 EUNIT_ASSERT_EQUALS( KErrNotFound, err ); |
|
373 |
|
374 } |
|
375 |
|
376 void T_VIMPSTEngineServiceTableFetcher::FindPropertyFoundL() |
|
377 { |
|
378 CreateSpEntryL( 1, EPropertyContactViewPluginId, 12234 ); |
|
379 |
|
380 TInt err = iServiceTableFetcher->FindPropertyL(1, EPropertyContactViewPluginId); |
|
381 |
|
382 EUNIT_ASSERT_EQUALS( KErrNone, err ); |
|
383 } |
|
384 |
|
385 |
|
386 void T_VIMPSTEngineServiceTableFetcher::PropertyBrandVersionNotFoundL() |
|
387 { |
|
388 TInt version = iServiceTableFetcher->PropertyBrandVersionL(1); |
|
389 |
|
390 EUNIT_ASSERT_EQUALS( KErrNotFound, version ); |
|
391 |
|
392 } |
|
393 |
|
394 void T_VIMPSTEngineServiceTableFetcher::PropertyBrandVersionFoundL() |
|
395 { |
|
396 CreateSpEntryL( 1, EPropertyBrandVersion, 1 ); |
|
397 |
|
398 TInt version = iServiceTableFetcher->PropertyBrandVersionL(1); |
|
399 |
|
400 EUNIT_ASSERT_EQUALS( 1, version ); |
|
401 } |
|
402 |
|
403 |
|
404 void T_VIMPSTEngineServiceTableFetcher::PropertyBrandLanguageNotFoundL() |
|
405 { |
|
406 TLanguage lang = iServiceTableFetcher->PropertyBrandLanguageL(1); |
|
407 |
|
408 EUNIT_ASSERT_EQUALS( ELangInternationalEnglish, lang ); //if not found default is set to english |
|
409 |
|
410 } |
|
411 |
|
412 void T_VIMPSTEngineServiceTableFetcher::PropertyBrandLanguageFoundL() |
|
413 { |
|
414 CreateSpEntryL( 1, EPropertyBrandLanguage, ELangFrench ); |
|
415 |
|
416 TLanguage lang = iServiceTableFetcher->PropertyBrandLanguageL(1); |
|
417 |
|
418 EUNIT_ASSERT_EQUALS( ELangFrench, lang ); |
|
419 } |
|
420 |
|
421 |
|
422 void T_VIMPSTEngineServiceTableFetcher::GetServiceNameNotFoundL() |
|
423 { |
|
424 |
|
425 HBufC* name = HBufC::NewL(500); |
|
426 CleanupStack::PushL(name); |
|
427 |
|
428 TPtr namePtr = name->Des(); |
|
429 |
|
430 iServiceTableFetcher->GetServiceNameL(1, namePtr); |
|
431 |
|
432 EUNIT_ASSERT_EQUALS( 0, namePtr.Length() ); |
|
433 |
|
434 CleanupStack::PopAndDestroy( name ); |
|
435 |
|
436 } |
|
437 |
|
438 |
|
439 void T_VIMPSTEngineServiceTableFetcher::GetServiceNameFoundL() |
|
440 { |
|
441 |
|
442 HBufC* name = HBufC::NewL(500); |
|
443 CleanupStack::PushL(name); |
|
444 |
|
445 TPtr namePtr = name->Des(); |
|
446 |
|
447 CreateSpEntry1L( 1, EPropertyBrandId, _L("MyBrand") ); |
|
448 |
|
449 iServiceTableFetcher->GetServiceNameL(1, namePtr); |
|
450 |
|
451 if (namePtr.Compare(KServiceName())) |
|
452 { |
|
453 User::Leave( KErrArgument ); |
|
454 } |
|
455 |
|
456 CleanupStack::PopAndDestroy( name ); |
|
457 |
|
458 } |
|
459 |
|
460 |
|
461 void T_VIMPSTEngineServiceTableFetcher::XimpAdapterUidNotFoundL() |
|
462 { |
|
463 TInt ximpAdapter = iServiceTableFetcher->XimpAdapterUidL(1); |
|
464 |
|
465 EUNIT_ASSERT_EQUALS( KErrNotFound, ximpAdapter ); |
|
466 |
|
467 } |
|
468 |
|
469 void T_VIMPSTEngineServiceTableFetcher::XimpAdapterUidFoundL() |
|
470 { |
|
471 CreateSpEntryL( 1, EPropertyPCSPluginId, 0x2000 ); |
|
472 |
|
473 TInt ximpAdapter = iServiceTableFetcher->XimpAdapterUidL(1); |
|
474 |
|
475 EUNIT_ASSERT_EQUALS( ximpAdapter, 0x2000 ); |
|
476 } |
|
477 |
|
478 |
|
479 void T_VIMPSTEngineServiceTableFetcher::PresenceRequestStatusNotFoundL() |
|
480 { |
|
481 TVIMPSTEnums::TVIMPSTPresenceRequestStatus ret = iServiceTableFetcher->PresenceRequestStatusL(1); |
|
482 |
|
483 EUNIT_ASSERT_EQUALS( TVIMPSTEnums::ESVCEPresenceRequestStatusUnKnown, ret ); |
|
484 |
|
485 } |
|
486 |
|
487 void T_VIMPSTEngineServiceTableFetcher::PresenceRequestStatusFoundWithEOffL() |
|
488 { |
|
489 CreateSpEntry1L( 1, ESubPropertyPresenceRequestPreference, EOff ); |
|
490 |
|
491 TVIMPSTEnums::TVIMPSTPresenceRequestStatus ret = iServiceTableFetcher->PresenceRequestStatusL(1); |
|
492 |
|
493 EUNIT_ASSERT_EQUALS( ret, TVIMPSTEnums::ESVCEPresenceRequestStatusAlwaysAsk ); |
|
494 } |
|
495 |
|
496 void T_VIMPSTEngineServiceTableFetcher::PresenceRequestStatusFoundWithEOnL() |
|
497 { |
|
498 CreateSpEntry1L( 1, ESubPropertyPresenceRequestPreference, EOn ); |
|
499 |
|
500 TVIMPSTEnums::TVIMPSTPresenceRequestStatus ret = iServiceTableFetcher->PresenceRequestStatusL(1); |
|
501 |
|
502 EUNIT_ASSERT_EQUALS( ret, TVIMPSTEnums::ESVCEPresenceRequestStatusAutoAccept ); |
|
503 } |
|
504 |
|
505 |
|
506 void T_VIMPSTEngineServiceTableFetcher::ShutDownPhonebookL() |
|
507 { |
|
508 //nothing to worry over here |
|
509 iServiceTableFetcher->ShutDownPhonebookL(); |
|
510 } |
|
511 |
|
512 void T_VIMPSTEngineServiceTableFetcher::DoHandleNotifyChangeL_withNewServiceL() |
|
513 { |
|
514 //nothing to worry over here |
|
515 MVIMPSTEngine * engine = NULL; |
|
516 iServiceTableFetcher->DoHandleNotifyChangeL(3, ETrue, engine); |
|
517 } |
|
518 void T_VIMPSTEngineServiceTableFetcher::DoHandleNotifyChangeL_withOutNewServiceL() |
|
519 { |
|
520 //nothing to worry over here |
|
521 MVIMPSTEngine * engine = NULL; |
|
522 iServiceTableFetcher->DoHandleNotifyChangeL(3, EFalse, engine); |
|
523 } |
|
524 |
|
525 |
|
526 EUNIT_BEGIN_TEST_TABLE( T_VIMPSTEngineServiceTableFetcher, "T_VIMPSTEngineServiceTableFetcher", "" ) |
|
527 |
|
528 EUNIT_TEST( "TestConstructionL ", |
|
529 "T_VIMPSTEngineServiceTableFetcher", |
|
530 "ConstructionL", |
|
531 "FUNCTIONALITY", SetupL, TestConstructionL, Teardown ) |
|
532 EUNIT_TEST( "TestConstructionWithValidServicesL ", |
|
533 "T_VIMPSTEngineServiceTableFetcher", |
|
534 "ConstructionL", |
|
535 "FUNCTIONALITY", Setup1L, TestConstructionWithValidServicesL, Teardown ) |
|
536 EUNIT_TEST( "TestConstructionWithInValidServicesL ", |
|
537 "T_VIMPSTEngineServiceTableFetcher", |
|
538 "ConstructionL", |
|
539 "FUNCTIONALITY", Setup1L, TestConstructionWithInValidServicesL, Teardown ) |
|
540 EUNIT_TEST("GetMasterServiceIdsNoServicesL ", |
|
541 "T_VIMPSTEngineServiceTableFetcher", |
|
542 "GetMasterServiceIds", |
|
543 "FUNCTIONALITY", SetupL, GetMasterServiceIdsNoServicesL, Teardown ) |
|
544 EUNIT_TEST( "GetMasterServiceIdsServicesMatchContactViewUidValidServiceL ", |
|
545 "T_VIMPSTEngineServiceTableFetcher", |
|
546 "GetMasterServiceIds", |
|
547 "FUNCTIONALITY", SetupL, GetMasterServiceIdsServicesMatchContactViewUidValidServiceL, Teardown ) |
|
548 EUNIT_TEST( "GetMasterServiceIdsServicesMatchContactViewUidInValidServiceL ", |
|
549 "T_VIMPSTEngineServiceTableFetcher", |
|
550 "GetMasterServiceIds", |
|
551 "FUNCTIONALITY", SetupL, GetMasterServiceIdsServicesMatchContactViewUidInValidServiceL, Teardown ) |
|
552 EUNIT_TEST( "GetMasterServiceIdsServicesNoMatchContactViewUidL ", |
|
553 "T_VIMPSTEngineServiceTableFetcher", |
|
554 "GetMasterServiceIds", |
|
555 "FUNCTIONALITY", SetupL, GetMasterServiceIdsServicesNoMatchContactViewUidL, Teardown ) |
|
556 EUNIT_TEST( "GetContactStoreIdPropertyNotFoundL ", |
|
557 "T_VIMPSTEngineServiceTableFetcher", |
|
558 "GetMasterServiceIds", |
|
559 "FUNCTIONALITY", SetupL, GetContactStoreIdPropertyNotFoundL, Teardown ) |
|
560 EUNIT_TEST( "GetContactStoreIdPropertyFoundL ", |
|
561 "T_VIMPSTEngineServiceTableFetcher", |
|
562 "GetContactStoreId", |
|
563 "FUNCTIONALITY", SetupL, GetContactStoreIdPropertyFoundL, Teardown ) |
|
564 EUNIT_TEST("GetContactStoreIdPropertyFoundWithContactUriDomainL ", |
|
565 "T_VIMPSTEngineServiceTableFetcher", |
|
566 "TestAllFunctionsL", |
|
567 "GetContactStoreId", SetupL, GetContactStoreIdPropertyFoundWithContactUriDomainL, Teardown ) |
|
568 EUNIT_TEST( "GetBrandIdLPropertyNotFoundL ", |
|
569 "T_VIMPSTEngineServiceTableFetcher", |
|
570 "GetBrandIdL", |
|
571 "FUNCTIONALITY", SetupL, GetBrandIdLPropertyNotFoundL, Teardown ) |
|
572 EUNIT_TEST( "GetBrandIdLPropertyFoundL ", |
|
573 "T_VIMPSTEngineServiceTableFetcher", |
|
574 "GetBrandIdL", |
|
575 "FUNCTIONALITY",SetupL, GetBrandIdLPropertyFoundL, Teardown ) |
|
576 EUNIT_TEST("FindPropertyNotFoundL ", |
|
577 "T_VIMPSTEngineServiceTableFetcher", |
|
578 "FindProperty", |
|
579 "FUNCTIONALITY", SetupL, FindPropertyNotFoundL, Teardown ) |
|
580 EUNIT_TEST( "FindPropertyFoundL ", |
|
581 "T_VIMPSTEngineServiceTableFetcher", |
|
582 "FindProperty", |
|
583 "FUNCTIONALITY", SetupL, FindPropertyFoundL, Teardown ) |
|
584 EUNIT_TEST( "PropertyBrandVersionNotFoundL ", |
|
585 "T_VIMPSTEngineServiceTableFetcher", |
|
586 "PropertyBrandVersion", |
|
587 "FUNCTIONALITY", SetupL, PropertyBrandVersionNotFoundL, Teardown ) |
|
588 EUNIT_TEST( "PropertyBrandVersionFoundL ", |
|
589 "T_VIMPSTEngineServiceTableFetcher", |
|
590 "PropertyBrandVersion", |
|
591 "FUNCTIONALITY", SetupL, PropertyBrandVersionFoundL, Teardown ) |
|
592 EUNIT_TEST( "PropertyBrandLanguageNotFoundL ", |
|
593 "T_VIMPSTEngineServiceTableFetcher", |
|
594 "PropertyBrandVersion", |
|
595 "FUNCTIONALITY", SetupL, PropertyBrandLanguageNotFoundL, Teardown ) |
|
596 EUNIT_TEST( "PropertyBrandLanguageFoundL ", |
|
597 "T_VIMPSTEngineServiceTableFetcher", |
|
598 "PropertyBrandVersion", |
|
599 "FUNCTIONALITY", SetupL, PropertyBrandLanguageFoundL, Teardown ) |
|
600 EUNIT_TEST( "GetServiceNameNotFoundL ", |
|
601 "T_VIMPSTEngineServiceTableFetcher", |
|
602 "GetServiceName", |
|
603 "FUNCTIONALITY", SetupL, GetServiceNameNotFoundL, Teardown ) |
|
604 EUNIT_TEST( "GetServiceNameFoundL ", |
|
605 "T_VIMPSTEngineServiceTableFetcher", |
|
606 "GetServiceName", |
|
607 "FUNCTIONALITY", SetupL, GetServiceNameFoundL, Teardown ) |
|
608 EUNIT_TEST( "XimpAdapterUidNotFoundL ", |
|
609 "T_VIMPSTEngineServiceTableFetcher", |
|
610 "XimpAdapterUid", |
|
611 "FUNCTIONALITY", SetupL, XimpAdapterUidNotFoundL, Teardown ) |
|
612 EUNIT_TEST( "XimpAdapterUidFoundL ", |
|
613 "T_VIMPSTEngineServiceTableFetcher", |
|
614 "XimpAdapterUid", |
|
615 "FUNCTIONALITY",SetupL, XimpAdapterUidFoundL, Teardown ) |
|
616 EUNIT_TEST( "PresenceRequestStatusNotFoundL ", |
|
617 "T_VIMPSTEngineServiceTableFetcher", |
|
618 "PresenceRequestStatus", |
|
619 "FUNCTIONALITY", SetupL, PresenceRequestStatusNotFoundL, Teardown ) |
|
620 EUNIT_TEST( "PresenceRequestStatusFoundWithEOffL ", |
|
621 "T_VIMPSTEngineServiceTableFetcher", |
|
622 "PresenceRequestStatus", |
|
623 "FUNCTIONALITY", SetupL, PresenceRequestStatusFoundWithEOffL, Teardown ) |
|
624 EUNIT_TEST("PresenceRequestStatusFoundWithEOnL ", |
|
625 "T_VIMPSTEngineServiceTableFetcher", |
|
626 "PresenceRequestStatus", |
|
627 "FUNCTIONALITY", SetupL, PresenceRequestStatusFoundWithEOnL, Teardown ) |
|
628 EUNIT_TEST("ShutDownPhonebookL ", |
|
629 "T_VIMPSTEngineServiceTableFetcher", |
|
630 "ShutDownPhonebookL", |
|
631 "FUNCTIONALITY", SetupL, ShutDownPhonebookL, Teardown ) |
|
632 EUNIT_TEST("DoHandleNotifyChangeL_withOutNewServiceL ", |
|
633 "T_VIMPSTEngineServiceTableFetcher", |
|
634 "ShutDownPhonebookL", |
|
635 "FUNCTIONALITY", SetupL, DoHandleNotifyChangeL_withOutNewServiceL, Teardown ) |
|
636 EUNIT_TEST("DoHandleNotifyChangeL_withNewServiceL ", |
|
637 "T_VIMPSTEngineServiceTableFetcher", |
|
638 "ShutDownPhonebookL", |
|
639 "FUNCTIONALITY", SetupL, DoHandleNotifyChangeL_withNewServiceL, Teardown ) |
|
640 |
|
641 EUNIT_END_TESTCASE_TABLE |
|
642 |
|
643 // END OF FILE |
|