|
1 /* |
|
2 * 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.h |
|
15 * |
|
16 */ |
|
17 #ifndef _T_VIMPSTEngineServiceTableFetcher_H_ |
|
18 #define _T_VIMPSTEngineServiceTableFetcher_H_ |
|
19 |
|
20 // EXTERNAL INCLUDES |
|
21 #include <CEUnitTestSuiteClass.h> |
|
22 |
|
23 #include <spdefinitions.h> |
|
24 |
|
25 //Forward declarations |
|
26 class CVIMPSTEngineServiceTableFetcher; |
|
27 class CSPProperty; |
|
28 class CSPEntry; |
|
29 class CSPSettings; |
|
30 |
|
31 class T_VIMPSTEngineServiceTableFetcher : public CEUnitTestSuiteClass |
|
32 { |
|
33 public: |
|
34 |
|
35 static T_VIMPSTEngineServiceTableFetcher* NewLC(); |
|
36 ~T_VIMPSTEngineServiceTableFetcher(); |
|
37 |
|
38 private: |
|
39 |
|
40 void ConstructL(); |
|
41 void SetupL(); |
|
42 void Setup1L(); |
|
43 void Teardown(); |
|
44 |
|
45 void TestConstructionL(); |
|
46 void TestConstructionWithValidServicesL(); |
|
47 void TestConstructionWithInValidServicesL(); |
|
48 |
|
49 void GetMasterServiceIdsNoServicesL(); |
|
50 |
|
51 void CreateSpEntryL( TInt aServiceId, |
|
52 TServicePropertyName aName, |
|
53 TInt aValue ); |
|
54 |
|
55 void CreateSpEntry1L( TInt aServiceId, |
|
56 TServicePropertyName aName, |
|
57 const TDesC& aValue ); |
|
58 |
|
59 void CreateSpEntry1L( TInt aServiceId, |
|
60 TServicePropertyName aName, |
|
61 TOnOff aValue ); |
|
62 |
|
63 void GetMasterServiceIdsServicesMatchContactViewUidValidServiceL(); |
|
64 void GetMasterServiceIdsServicesMatchContactViewUidInValidServiceL(); |
|
65 void GetMasterServiceIdsServicesNoMatchContactViewUidL(); |
|
66 |
|
67 void GetContactStoreIdPropertyNotFoundL(); |
|
68 void GetContactStoreIdPropertyFoundL(); |
|
69 void GetContactStoreIdPropertyFoundWithContactUriDomainL(); |
|
70 |
|
71 |
|
72 void GetBrandIdLPropertyNotFoundL(); |
|
73 void GetBrandIdLPropertyFoundL(); |
|
74 |
|
75 void FindPropertyNotFoundL(); |
|
76 void FindPropertyFoundL(); |
|
77 |
|
78 |
|
79 void PropertyBrandVersionNotFoundL(); |
|
80 void PropertyBrandVersionFoundL(); |
|
81 void PropertyBrandLanguageNotFoundL(); |
|
82 void PropertyBrandLanguageFoundL(); |
|
83 void GetServiceNameNotFoundL(); |
|
84 void GetServiceNameFoundL(); |
|
85 |
|
86 void XimpAdapterUidNotFoundL(); |
|
87 void XimpAdapterUidFoundL(); |
|
88 |
|
89 void PresenceRequestStatusNotFoundL(); |
|
90 void PresenceRequestStatusFoundWithEOffL(); |
|
91 void PresenceRequestStatusFoundWithEOnL(); |
|
92 |
|
93 void ShutDownPhonebookL(); |
|
94 |
|
95 void DoHandleNotifyChangeL_withOutNewServiceL(); |
|
96 void DoHandleNotifyChangeL_withNewServiceL(); |
|
97 |
|
98 private: |
|
99 |
|
100 T_VIMPSTEngineServiceTableFetcher() {}; |
|
101 |
|
102 private: |
|
103 CVIMPSTEngineServiceTableFetcher* iServiceTableFetcher; |
|
104 |
|
105 // Own: service provider settings |
|
106 CSPSettings* iSpSettings; |
|
107 |
|
108 EUNIT_DECLARE_TEST_TABLE; |
|
109 }; |
|
110 |
|
111 #endif // _T_CSCPUtility_H_ |
|
112 |
|
113 // end of file |