|
1 /* |
|
2 * Copyright (c) 2010 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: Declaration of the notification related test cases. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef POSNOTIFICATIONTEST_H_ |
|
19 #define POSNOTIFICATIONTEST_H_ |
|
20 |
|
21 #include <QObject> |
|
22 #include <QtTest/QtTest> |
|
23 #include <EPos_MPosVerificationObserver.h> |
|
24 #include "testconsole.h" |
|
25 |
|
26 |
|
27 class PosNotificationTest : public QObject, public MPosVerificationObserver |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 /** |
|
33 * From MPosVerificationObserver |
|
34 */ |
|
35 void HandleVerifyComplete(int aRequestId, TInt aCompletionCode); |
|
36 |
|
37 private slots: |
|
38 /** |
|
39 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
40 * with single shot request. |
|
41 */ |
|
42 |
|
43 void IssueNotificationRequest1(); |
|
44 /** |
|
45 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
46 * with periodic request. |
|
47 */ |
|
48 void IssueNotificationRequest2(); |
|
49 /** |
|
50 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
51 * with single shot request & the LCS client & requestor identified by "Logical name" |
|
52 */ |
|
53 void IssueNotificationRequest3(); |
|
54 /** |
|
55 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
56 * with single shot request & the LCS client & requestor identified by "Email address." |
|
57 */ |
|
58 |
|
59 void IssueNotificationRequest4(); |
|
60 |
|
61 /** |
|
62 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
63 * with single shot request & the LCS client & requestor identified by "URL" |
|
64 */ |
|
65 void IssueNotificationRequest5(); |
|
66 /** |
|
67 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
68 * with single shot request & the LCS client & requestor identified by |
|
69 * "URL of user in a SIP session" |
|
70 */ |
|
71 void IssueNotificationRequest6(); |
|
72 /** |
|
73 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
74 * with single shot request & the LCS client & requestor identified by |
|
75 * "user Identifier in an IP Multimedia Service session" |
|
76 */ |
|
77 void IssueNotificationRequest7(); |
|
78 /** |
|
79 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
80 * with single shot request. |
|
81 */ |
|
82 void IssueNotificationRequest8(); |
|
83 /** |
|
84 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
85 * with periodic request. |
|
86 */ |
|
87 void IssueNotificationRequest9(); |
|
88 /** |
|
89 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
90 * with single shot request & the LCS client & requestor identified by "Logical name" |
|
91 */ |
|
92 void IssueNotificationRequest10(); |
|
93 /** |
|
94 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
95 * with single shot request & the LCS client & requestor identified by "Email address." |
|
96 */ |
|
97 void IssueNotificationRequest11(); |
|
98 /** |
|
99 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
100 * with ,single shot request & the LCS client & requestor identified by "URL" |
|
101 */ |
|
102 void IssueNotificationRequest12(); |
|
103 /** |
|
104 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
105 * with single shot request & the LCS client & requestor identified by |
|
106 * "URL of user in a SIP session" |
|
107 */ |
|
108 void IssueNotificationRequest13(); |
|
109 /** |
|
110 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
111 * with single shot request & the LCS client & requestor identified by |
|
112 * "Mobile Identification Number" |
|
113 */ |
|
114 void IssueNotificationRequest14(); |
|
115 /** |
|
116 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
117 * with single shot request & the LCS client & requestor identified by |
|
118 * "Mobile Directory Number" |
|
119 */ |
|
120 void IssueNotificationRequest15(); |
|
121 /** |
|
122 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
123 * with single shot request & the LCS client & requestor identified by |
|
124 * "user Identifier in an IP Multimedia Service session" |
|
125 */ |
|
126 void IssueNotificationRequest16(); |
|
127 /** |
|
128 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
129 * with single shot request & empty string for LCS Client & requestor name. |
|
130 */ |
|
131 void IssueNotificationRequest17(); |
|
132 /** |
|
133 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
134 * with single shot request & a long string value for LCS Client & requestor name. |
|
135 */ |
|
136 void IssueNotificationRequest18(); |
|
137 /** |
|
138 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
139 * with default accept policy,single shot request. |
|
140 */ |
|
141 void IssueNotifyVerificationTimeOut1(); |
|
142 /** |
|
143 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
144 * with default reject policy,single shot request. |
|
145 */ |
|
146 void IssueNotifyVerificationTimeOut2(); |
|
147 |
|
148 /** |
|
149 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
150 * with default accept policy,single shot request. |
|
151 */ |
|
152 void IssueNotifyVerificationTimeOut3(); |
|
153 /** |
|
154 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
155 * with default reject policy,single shot request. |
|
156 */ |
|
157 void IssueNotifyVerificationTimeOut4(); |
|
158 /** |
|
159 * To test issuing notificaiton request multiple times using |
|
160 * CPosSUPLPrivacyRequestInfo with single shot with same instance of CPosNetworkPrivacy. |
|
161 */ |
|
162 void IssueMultipleRequests1(); |
|
163 /** |
|
164 * To test issuing notificaiton request multiple times using |
|
165 * CPosGSMPrivacyRequestInfo with single shot using 2 different instances of CPosNetworkPrivacy. |
|
166 */ |
|
167 void IssueMultipleRequests2(); |
|
168 |
|
169 |
|
170 private: |
|
171 /** |
|
172 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
173 * with single shot request. |
|
174 */ |
|
175 void IssueNotificationRequest1L(); |
|
176 /** |
|
177 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
178 * with periodic request. |
|
179 */ |
|
180 void IssueNotificationRequest2L(); |
|
181 /** |
|
182 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
183 * with single shot request & the LCS client & requestor identified by "Logical name" |
|
184 */ |
|
185 void IssueNotificationRequest3L(); |
|
186 /** |
|
187 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
188 * with single shot request & the LCS client & requestor identified by "Email address." |
|
189 */ |
|
190 void IssueNotificationRequest4L(); |
|
191 /** |
|
192 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
193 * with single shot request & the LCS client & requestor identified by "URL" |
|
194 */ |
|
195 void IssueNotificationRequest5L(); |
|
196 /** |
|
197 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
198 * with single shot request & the LCS client & requestor identified by |
|
199 * "URL of user in a SIP session" |
|
200 */ |
|
201 void IssueNotificationRequest6L(); |
|
202 /** |
|
203 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
204 * with single shot request & the LCS client & requestor identified by |
|
205 * "user Identifier in an IP Multimedia Service session" |
|
206 */ |
|
207 void IssueNotificationRequest7L(); |
|
208 /** |
|
209 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
210 * with single shot request. |
|
211 */ |
|
212 void IssueNotificationRequest8L(); |
|
213 /** |
|
214 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
215 * with periodic request. |
|
216 */ |
|
217 void IssueNotificationRequest9L(); |
|
218 /** |
|
219 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
220 * with single shot request & the LCS client & requestor identified by "Logical name" |
|
221 */ |
|
222 void IssueNotificationRequest10L(); |
|
223 /** |
|
224 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
225 * with single shot request & the LCS client & requestor identified by "Email address." |
|
226 */ |
|
227 void IssueNotificationRequest11L(); |
|
228 /** |
|
229 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
230 * with ,single shot request & the LCS client & requestor identified by "URL" |
|
231 */ |
|
232 void IssueNotificationRequest12L(); |
|
233 /** |
|
234 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
235 * with single shot request & the LCS client & requestor identified by |
|
236 * "URL of user in a SIP session" |
|
237 */ |
|
238 void IssueNotificationRequest13L(); |
|
239 /** |
|
240 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
241 * with single shot request & the LCS client & requestor identified by |
|
242 * "Mobile Identification Number" |
|
243 */ |
|
244 void IssueNotificationRequest14L(); |
|
245 /** |
|
246 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
247 * with single shot request & the LCS client & requestor identified by |
|
248 * "Mobile Directory Number" |
|
249 */ |
|
250 void IssueNotificationRequest15L(); |
|
251 /** |
|
252 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
253 * with single shot request & the LCS client & requestor identified by |
|
254 * "user Identifier in an IP Multimedia Service session" |
|
255 */ |
|
256 void IssueNotificationRequest16L(); |
|
257 /** |
|
258 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
259 * with single shot request & empty string for LCS Client & requestor name. |
|
260 */ |
|
261 void IssueNotificationRequest17L(); |
|
262 /** |
|
263 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
264 * with single shot request & a long string value for LCS Client & requestor name. |
|
265 */ |
|
266 void IssueNotificationRequest18L(); |
|
267 /** |
|
268 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
269 * with default accept policy,single shot request. |
|
270 */ |
|
271 void IssueNotifyVerificationTimeOut1L(); |
|
272 /** |
|
273 * To Test issuing notification request using CPosGSMPrivacyRequestInfo |
|
274 * with default reject policy,single shot request. |
|
275 */ |
|
276 void IssueNotifyVerificationTimeOut2L(); |
|
277 |
|
278 /** |
|
279 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
280 * with default accept policy,single shot request. |
|
281 */ |
|
282 void IssueNotifyVerificationTimeOut3L(); |
|
283 /** |
|
284 * To Test issuing notification request using CPosSUPLPrivacyRequestInfo |
|
285 * with default reject policy,single shot request. |
|
286 */ |
|
287 void IssueNotifyVerificationTimeOut4L(); |
|
288 /** |
|
289 * To test issuing notificaiton request multiple times using |
|
290 * CPosSUPLPrivacyRequestInfo with single shot with same instance of CPosNetworkPrivacy. |
|
291 */ |
|
292 void IssueMultipleRequests1L(); |
|
293 /** |
|
294 * To test issuing notificaiton request multiple times using |
|
295 * CPosGSMPrivacyRequestInfo with single shot using 2 different instances of CPosNetworkPrivacy. |
|
296 */ |
|
297 void IssueMultipleRequests2L(); |
|
298 |
|
299 private: |
|
300 /** |
|
301 * Event loop |
|
302 */ |
|
303 QEventLoop mEventLoop; |
|
304 |
|
305 }; |
|
306 |
|
307 #endif // POSNOTIFICATIONTEST_H_ |