|
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: |
|
15 : |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CVIMPSTSTORAGECONTACT_UT_H |
|
22 #define CVIMPSTSTORAGECONTACT_UT_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <StifLogger.h> |
|
26 #include <TestScripterInternal.h> |
|
27 #include <StifTestModule.h> |
|
28 #include <TestclassAssert.h> |
|
29 |
|
30 #define TEST_CLASS_VERSION_MAJOR 0 |
|
31 #define TEST_CLASS_VERSION_MINOR 0 |
|
32 #define TEST_CLASS_VERSION_BUILD 0 |
|
33 |
|
34 // Logging path |
|
35 _LIT( KCVIMPSTStorageContact_UTLogPath, "//logs//testframework//CVIMPSTStorageContact_UT//" ); |
|
36 // Log file |
|
37 _LIT( KCVIMPSTStorageContact_UTLogFile, "CVIMPSTStorageContact_UT.txt" ); |
|
38 _LIT( KCVIMPSTStorageContact_UTLogFileWithTitle, "CVIMPSTStorageContact_UT_[%S].txt" ); |
|
39 |
|
40 class CCVIMPSTStorageContact_UT; |
|
41 |
|
42 |
|
43 /** |
|
44 * CCVIMPSTStorageContact_UT test class for STIF Test Framework TestScripter. |
|
45 * ?other_description_lines |
|
46 * |
|
47 * @lib ?library |
|
48 * @since ?Series60_version |
|
49 */ |
|
50 NONSHARABLE_CLASS(CCVIMPSTStorageContact_UT) : public CScriptBase |
|
51 { |
|
52 public: // Constructors and destructor |
|
53 |
|
54 /** |
|
55 * Two-phased constructor. |
|
56 */ |
|
57 static CCVIMPSTStorageContact_UT* NewL( CTestModuleIf& aTestModuleIf ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CCVIMPSTStorageContact_UT(); |
|
63 |
|
64 public: // New functions |
|
65 |
|
66 /** |
|
67 * ?member_description. |
|
68 * @since ?Series60_version |
|
69 * @param ?arg1 ?description |
|
70 * @return ?description |
|
71 */ |
|
72 //?type ?member_function( ?type ?arg1 ); |
|
73 |
|
74 /* |
|
75 * Test case to test NewL function |
|
76 */ |
|
77 TInt Test_NewL( CStifItemParser& aItem ); |
|
78 |
|
79 /* |
|
80 * This is a test function. |
|
81 * It tests getting and setting userid for a contact. |
|
82 */ |
|
83 TInt Test_SetUserId_UserIdL( CStifItemParser& aItem ); |
|
84 |
|
85 /* |
|
86 * This is a test function. |
|
87 * It tests getting and setting avatar content. |
|
88 */ |
|
89 TInt Test_AvatarContentL( CStifItemParser& aItem ); |
|
90 |
|
91 /* |
|
92 * This is a test function. |
|
93 * It tests getting and setting displayName for a contact. |
|
94 */ |
|
95 TInt Test_DisplayNameL( CStifItemParser& aItem ); |
|
96 |
|
97 /* |
|
98 * This is a test function. |
|
99 * It tests getting and setting the presence status for a contact. |
|
100 */ |
|
101 TInt Test_PresenceStatusL( CStifItemParser& aItem ); |
|
102 |
|
103 /* |
|
104 * This is a test function. |
|
105 * It tests getting and setting the status text for a contact. |
|
106 */ |
|
107 TInt Test_StatusTextL( CStifItemParser& aItem ); |
|
108 |
|
109 /* |
|
110 * This is a test function. |
|
111 * It tests getting and setting the avatar index for a contact. |
|
112 */ |
|
113 TInt Test_AvatarIndexL( CStifItemParser& aItem ); |
|
114 |
|
115 /* |
|
116 * This is test function. |
|
117 * It tests the getting ContactLink functionality for a contact. |
|
118 */ |
|
119 TInt Test_ContactLinkL( CStifItemParser& aItem ); |
|
120 |
|
121 |
|
122 public: // Functions from base classes |
|
123 |
|
124 /** |
|
125 * From CScriptBase Runs a script line. |
|
126 * @since ?Series60_version |
|
127 * @param aItem Script line containing method name and parameters |
|
128 * @return Symbian OS error code |
|
129 */ |
|
130 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
131 |
|
132 protected: // New functions |
|
133 |
|
134 /** |
|
135 * ?member_description. |
|
136 * @since ?Series60_version |
|
137 * @param ?arg1 ?description |
|
138 * @return ?description |
|
139 */ |
|
140 |
|
141 protected: // Functions from base classes |
|
142 |
|
143 /** |
|
144 * From ?base_class ?member_description |
|
145 */ |
|
146 |
|
147 private: |
|
148 |
|
149 /** |
|
150 * C++ default constructor. |
|
151 */ |
|
152 CCVIMPSTStorageContact_UT( CTestModuleIf& aTestModuleIf ); |
|
153 |
|
154 /** |
|
155 * By default Symbian 2nd phase constructor is private. |
|
156 */ |
|
157 void ConstructL(); |
|
158 |
|
159 // Prohibit copy constructor if not deriving from CBase. |
|
160 // ?classname( const ?classname& ); |
|
161 // Prohibit assigment operator if not deriving from CBase. |
|
162 // ?classname& operator=( const ?classname& ); |
|
163 |
|
164 /** |
|
165 * Frees all resources allocated from test methods. |
|
166 * @since ?Series60_version |
|
167 */ |
|
168 void Delete(); |
|
169 |
|
170 /** |
|
171 * Test methods are listed below. |
|
172 */ |
|
173 |
|
174 /** |
|
175 * Method used to log version of test class |
|
176 */ |
|
177 void SendTestClassVersion(); |
|
178 |
|
179 //ADD NEW METHOD DEC HERE |
|
180 //[TestMethods] - Do not remove |
|
181 |
|
182 public: // Data |
|
183 // ?one_line_short_description_of_data |
|
184 //?data_declaration; |
|
185 |
|
186 protected: // Data |
|
187 // ?one_line_short_description_of_data |
|
188 //?data_declaration; |
|
189 |
|
190 private: // Data |
|
191 |
|
192 // ?one_line_short_description_of_data |
|
193 //?data_declaration; |
|
194 |
|
195 // Reserved pointer for future extension |
|
196 //TAny* iReserved; |
|
197 |
|
198 public: // Friend classes |
|
199 //?friend_class_declaration; |
|
200 protected: // Friend classes |
|
201 //?friend_class_declaration; |
|
202 private: // Friend classes |
|
203 //?friend_class_declaration; |
|
204 |
|
205 }; |
|
206 |
|
207 #endif // CVIMPSTSTORAGECONTACT_UT_H |
|
208 |
|
209 // End of File |