24
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#ifndef __TE_SMSEMSPRT_H_
|
|
17 |
#define __TE_SMSEMSPRT_H_
|
|
18 |
|
|
19 |
#include "TE_SMSEMSPRTBASE.h"
|
|
20 |
|
|
21 |
//
|
|
22 |
// Test EMS FormatA test object - basic Format IE test
|
|
23 |
//
|
|
24 |
class CTestEmsFormatA : public CSmsEmsPrtTestStep
|
|
25 |
{
|
|
26 |
public:
|
|
27 |
virtual TVerdict doTestStepL();
|
|
28 |
};
|
|
29 |
|
|
30 |
|
|
31 |
//
|
|
32 |
// Test EMS FormatB test object - 8-bit 200 char (approx) text with format
|
|
33 |
// object in the middle
|
|
34 |
//
|
|
35 |
class CTestEmsFormatB : public CSmsEmsPrtTestStep
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
virtual TVerdict doTestStepL();
|
|
39 |
};
|
|
40 |
|
|
41 |
|
|
42 |
//
|
|
43 |
// Test EMS FormatC test object - 7-bit 200 char (approx) text with format
|
|
44 |
// object in the middle
|
|
45 |
//
|
|
46 |
class CTestEmsFormatC : public CSmsEmsPrtTestStep
|
|
47 |
{
|
|
48 |
public:
|
|
49 |
virtual TVerdict doTestStepL();
|
|
50 |
};
|
|
51 |
|
|
52 |
|
|
53 |
//
|
|
54 |
// Test EMS FormatD test object - 16-bit 100 char (approx) text with format
|
|
55 |
// object in the middle
|
|
56 |
//
|
|
57 |
class CTestEmsFormatD : public CSmsEmsPrtTestStep
|
|
58 |
{
|
|
59 |
public:
|
|
60 |
virtual TVerdict doTestStepL();
|
|
61 |
};
|
|
62 |
|
|
63 |
|
|
64 |
//
|
|
65 |
// Test EMS FormatE test object - out of range FormatIE object will not
|
|
66 |
// get sent
|
|
67 |
//
|
|
68 |
class CTestEmsFormatE : public CSmsEmsPrtTestStep
|
|
69 |
{
|
|
70 |
public:
|
|
71 |
virtual TVerdict doTestStepL();
|
|
72 |
};
|
|
73 |
|
|
74 |
|
|
75 |
//
|
|
76 |
// Test EMS FormatF test object - check that format object gets repositioned
|
|
77 |
// correctly
|
|
78 |
//
|
|
79 |
class CTestEmsFormatF : public CSmsEmsPrtTestStep
|
|
80 |
{
|
|
81 |
public:
|
|
82 |
virtual TVerdict doTestStepL();
|
|
83 |
};
|
|
84 |
|
|
85 |
|
|
86 |
//
|
|
87 |
// Test EMS SoundA - predefined sounds
|
|
88 |
//
|
|
89 |
class CTestEmsSoundA : public CSmsEmsPrtTestStep
|
|
90 |
{
|
|
91 |
public:
|
|
92 |
virtual TVerdict doTestStepL();
|
|
93 |
};
|
|
94 |
|
|
95 |
|
|
96 |
//
|
|
97 |
// Test EMS SoundB - user-defined sounds
|
|
98 |
//
|
|
99 |
class CTestEmsSoundB : public CSmsEmsPrtTestStep
|
|
100 |
{
|
|
101 |
public:
|
|
102 |
virtual TVerdict doTestStepL();
|
|
103 |
};
|
|
104 |
|
|
105 |
|
|
106 |
//
|
|
107 |
// Test EMS SoundC - userdefined sounds over 5 PDUs
|
|
108 |
//
|
|
109 |
class CTestEmsSoundC : public CSmsEmsPrtTestStep
|
|
110 |
{
|
|
111 |
public:
|
|
112 |
virtual TVerdict doTestStepL();
|
|
113 |
};
|
|
114 |
|
|
115 |
|
|
116 |
//
|
|
117 |
// Test EMS SoundD - sending sound over 128 bytes
|
|
118 |
//
|
|
119 |
class CTestEmsSoundD : public CSmsEmsPrtTestStep
|
|
120 |
{
|
|
121 |
public:
|
|
122 |
virtual TVerdict doTestStepL();
|
|
123 |
};
|
|
124 |
|
|
125 |
|
|
126 |
//
|
|
127 |
// Test EMS Picture - sending small, large, and variable pictures
|
|
128 |
//
|
|
129 |
class CTestEmsPicture : public CSmsEmsPrtTestStep
|
|
130 |
{
|
|
131 |
public:
|
|
132 |
virtual TVerdict doTestStepL();
|
|
133 |
};
|
|
134 |
|
|
135 |
|
|
136 |
//
|
|
137 |
// Test EMS Animations - sending predefined, large, and small animations
|
|
138 |
//
|
|
139 |
class CTestEmsAnimation : public CSmsEmsPrtTestStep
|
|
140 |
{
|
|
141 |
public:
|
|
142 |
virtual TVerdict doTestStepL();
|
|
143 |
};
|
|
144 |
|
|
145 |
|
|
146 |
//
|
|
147 |
// Test EMS UserPromptA - basic scenario
|
|
148 |
//
|
|
149 |
class CTestEmsUserPromptA : public CSmsEmsPrtTestStep
|
|
150 |
{
|
|
151 |
public:
|
|
152 |
virtual TVerdict doTestStepL();
|
|
153 |
};
|
|
154 |
|
|
155 |
|
|
156 |
//
|
|
157 |
// Test EMS UserPromptB - two user prompts at position 20 and 21, referencing
|
|
158 |
// two melodies at 20 and 21.
|
|
159 |
//
|
|
160 |
class CTestEmsUserPromptB : public CSmsEmsPrtTestStep
|
|
161 |
{
|
|
162 |
public:
|
|
163 |
virtual TVerdict doTestStepL();
|
|
164 |
};
|
|
165 |
|
|
166 |
|
|
167 |
//
|
|
168 |
// Test EMS LongMessageA, B, and C. These tests create all the same
|
|
169 |
// text and EMS object types except using different character sets.
|
|
170 |
// Test A is 8-bit text, test B is 7-bit, test C is UCS2.
|
|
171 |
//
|
|
172 |
// Text is 104 chars long, EMS objects are: text formatting beginning at
|
|
173 |
// character 30, length 70, User defined melody 128 bytes long
|
|
174 |
// beginning at character 40, 32x32 bitmap beginning character 50.
|
|
175 |
//
|
|
176 |
// TestEmsLongMsgBase provides the guts for all three of these tests
|
|
177 |
//
|
|
178 |
class CTestEmsLongMsgBase : public CSmsEmsPrtTestStep
|
|
179 |
{
|
|
180 |
protected:
|
|
181 |
void StepWithCharSetL(TSmsDataCodingScheme::TSmsAlphabet aAlphabet);
|
|
182 |
};
|
|
183 |
|
|
184 |
class CTestEmsLongMessageA : public CTestEmsLongMsgBase
|
|
185 |
{
|
|
186 |
public:
|
|
187 |
virtual TVerdict doTestStepL();
|
|
188 |
};
|
|
189 |
|
|
190 |
|
|
191 |
class CTestEmsLongMessageB : public CTestEmsLongMsgBase
|
|
192 |
{
|
|
193 |
public:
|
|
194 |
virtual TVerdict doTestStepL();
|
|
195 |
};
|
|
196 |
|
|
197 |
|
|
198 |
class CTestEmsLongMessageC : public CTestEmsLongMsgBase
|
|
199 |
{
|
|
200 |
public:
|
|
201 |
virtual TVerdict doTestStepL();
|
|
202 |
};
|
|
203 |
|
|
204 |
|
|
205 |
//
|
|
206 |
// Test EMS Unsupported IE - Send a message with an unsupported IE.
|
|
207 |
// Verify it doesn't crash.
|
|
208 |
//
|
|
209 |
class CTestEmsUnsupportedIE : public CSmsEmsPrtTestStep
|
|
210 |
{
|
|
211 |
public:
|
|
212 |
virtual TVerdict doTestStepL();
|
|
213 |
};
|
|
214 |
|
|
215 |
|
|
216 |
//
|
|
217 |
// Test EMS Unsorted - Sends a message and receives the same message except
|
|
218 |
// with the information elements encoded in an unsorted order. The messages
|
|
219 |
// should still compare OK.
|
|
220 |
//
|
|
221 |
class CTestEmsUnsorted : public CSmsEmsPrtTestStep
|
|
222 |
{
|
|
223 |
public:
|
|
224 |
virtual TVerdict doTestStepL();
|
|
225 |
};
|
|
226 |
|
|
227 |
|
|
228 |
//
|
|
229 |
// Test EMS TestEmsObjectDistributionA - basic scenario
|
|
230 |
//
|
|
231 |
class CTestEmsODIA : public CSmsEmsPrtTestStep
|
|
232 |
{
|
|
233 |
public:
|
|
234 |
virtual TVerdict doTestStepL();
|
|
235 |
};
|
|
236 |
|
|
237 |
|
|
238 |
//
|
|
239 |
// Test EMS TestEmsODIB - two odis at position 20 and 21, referencing
|
|
240 |
// two melodies at 20 and 21.
|
|
241 |
//
|
|
242 |
class CTestEmsODIB : public CSmsEmsPrtTestStep
|
|
243 |
{
|
|
244 |
public:
|
|
245 |
virtual TVerdict doTestStepL();
|
|
246 |
};
|
|
247 |
|
|
248 |
|
|
249 |
//
|
|
250 |
// Test EMS TestEmsODIC - two odis at position 20 and 21, referencing
|
|
251 |
// two melodies at 20 and 21.
|
|
252 |
//
|
|
253 |
class CTestEmsODIC : public CSmsEmsPrtTestStep
|
|
254 |
{
|
|
255 |
public:
|
|
256 |
virtual TVerdict doTestStepL();
|
|
257 |
};
|
|
258 |
|
|
259 |
|
|
260 |
//
|
|
261 |
// Test EMS TestEmsObjectDistributionD - test zero object count applies to all IEs
|
|
262 |
//
|
|
263 |
class CTestEmsODID : public CSmsEmsPrtTestStep
|
|
264 |
{
|
|
265 |
public:
|
|
266 |
virtual TVerdict doTestStepL();
|
|
267 |
};
|
|
268 |
|
|
269 |
|
|
270 |
//
|
|
271 |
// Test EMS TestEmsObjectDistributionE - apply two odi IEs over more than 1 PDUs
|
|
272 |
//
|
|
273 |
class CTestEmsODIE : public CSmsEmsPrtTestStep
|
|
274 |
{
|
|
275 |
public:
|
|
276 |
virtual TVerdict doTestStepL();
|
|
277 |
};
|
|
278 |
|
|
279 |
|
|
280 |
//
|
|
281 |
// Test EMS TestEmsObjectDistributionF - apply odi and user prompt in wrong order
|
|
282 |
//
|
|
283 |
class CTestEmsODIF : public CSmsEmsPrtTestStep
|
|
284 |
{
|
|
285 |
public:
|
|
286 |
virtual TVerdict doTestStepL();
|
|
287 |
};
|
|
288 |
|
|
289 |
|
|
290 |
#endif
|