First public contribution.
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 the License "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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
20 //! @SYMTestCaseID SEC-CAF-UTILS-0001
21 //! @SYMTestCaseDesc Basic Bitset Test
23 //! @SYMTestStatus Implemented
24 //! @SYMTestPriority Critical
25 //! @SYMTestActions Constructs a bitset, sets some bits then check they are set properly
26 //! @SYMTestExpectedResults Bitset construction is successful, set, unset works as expected
28 START_TESTCASE SEC-CAF-UTILS-0001
29 RUN_TEST_STEP 100 tcaf BasicBitsetStep
30 END_TESTCASE SEC-CAF-UTILS-0001
33 //! @SYMTestCaseID SEC-CAF-UTILS-0002
34 //! @SYMTestCaseDesc Bitset List Test
36 //! @SYMTestStatus Implemented
37 //! @SYMTestPriority Critical
38 //! @SYMTestActions Constructs a bitset, uses the setlist to set a list of bits
39 //! @SYMTestExpectedResults Bitset construction is successful, setlist works as expected
41 START_TESTCASE SEC-CAF-UTILS-0002
42 RUN_TEST_STEP 100 tcaf BitsetListStep
43 END_TESTCASE SEC-CAF-UTILS-0002
46 //! @SYMTestCaseID SEC-CAF-UTILS-0003
47 //! @SYMTestCaseDesc Bitset equality 1
49 //! @SYMTestStatus Implemented
50 //! @SYMTestPriority Critical
51 //! @SYMTestActions Constructs two bitset, sets some bits checks the bitsets are equal
52 //! @SYMTestExpectedResults Bitset construction is successful, bitsets are equal
54 START_TESTCASE SEC-CAF-UTILS-0003
55 RUN_TEST_STEP 100 tcaf BitsetEqualityStep c:\tcaf\cafutils.ini Equality1
56 END_TESTCASE SEC-CAF-UTILS-0003
59 //! @SYMTestCaseID SEC-CAF-UTILS-0004
60 //! @SYMTestCaseDesc Bitset equality 2
62 //! @SYMTestStatus Implemented
63 //! @SYMTestPriority Critical
64 //! @SYMTestActions Constructs two bitset, sets some bits checks the bitsets are equal
65 //! @SYMTestExpectedResults Bitset construction is successful, bitsets are equal
67 START_TESTCASE SEC-CAF-UTILS-0004
68 RUN_TEST_STEP 100 tcaf BitsetEqualityStep c:\tcaf\cafutils.ini Equality2
69 END_TESTCASE SEC-CAF-UTILS-0004
72 //! @SYMTestCaseID SEC-CAF-UTILS-0005
73 //! @SYMTestCaseDesc Bitset equality 3
75 //! @SYMTestStatus Implemented
76 //! @SYMTestPriority Critical
77 //! @SYMTestActions Constructs two bitset, sets some bits checks the bitsets are equal
78 //! @SYMTestExpectedResults Bitset construction is successful, bitsets are equal
80 START_TESTCASE SEC-CAF-UTILS-0005
81 RUN_TEST_STEP 100 tcaf BitsetEqualityStep c:\tcaf\cafutils.ini Equality3
82 END_TESTCASE SEC-CAF-UTILS-0005
85 //! @SYMTestCaseID SEC-CAF-UTILS-0006
86 //! @SYMTestCaseDesc Bitset Inequality 1
88 //! @SYMTestStatus Implemented
89 //! @SYMTestPriority Critical
90 //! @SYMTestActions Constructs two bitset, sets some bits checks the bitsets are not equal
91 //! @SYMTestExpectedResults Bitset construction is successful, bitsets are not equal
93 START_TESTCASE SEC-CAF-UTILS-0006
94 RUN_TEST_STEP 100 tcaf BitsetEqualityStep c:\tcaf\cafutils.ini Inequality1
95 END_TESTCASE SEC-CAF-UTILS-0006
98 //! @SYMTestCaseID SEC-CAF-UTILS-0007
99 //! @SYMTestCaseDesc Bitset Inequality 2
100 //! @SYMPREQ PREQ1951
101 //! @SYMTestStatus Implemented
102 //! @SYMTestPriority Critical
103 //! @SYMTestActions Constructs two bitset, sets some bits checks the bitsets are not equal
104 //! @SYMTestExpectedResults Bitset construction is successful, bitsets are not equal
106 START_TESTCASE SEC-CAF-UTILS-0007
107 RUN_TEST_STEP 100 tcaf BitsetEqualityStep c:\tcaf\cafutils.ini Inequality2
108 END_TESTCASE SEC-CAF-UTILS-0007
111 //! @SYMTestCaseID SEC-CAF-UTILS-0008
112 //! @SYMTestCaseDesc Bitset Inequality 3
113 //! @SYMPREQ PREQ1951
114 //! @SYMTestStatus Implemented
115 //! @SYMTestPriority Critical
116 //! @SYMTestActions Constructs two bitset, sets some bits checks the bitsets are not equal
117 //! @SYMTestExpectedResults Bitset construction is successful, bitsets are not equal
119 START_TESTCASE SEC-CAF-UTILS-0008
120 RUN_TEST_STEP 100 tcaf BitsetEqualityStep c:\tcaf\cafutils.ini Inequality3
121 END_TESTCASE SEC-CAF-UTILS-0008
124 //! @SYMTestCaseID SEC-CAF-UTILS-0009
125 //! @SYMTestCaseDesc Bitset Copy 1
126 //! @SYMPREQ PREQ1951
127 //! @SYMTestStatus Implemented
128 //! @SYMTestPriority Critical
129 //! @SYMTestActions Constructs a bitset, copies it to another bitset, checks the bitsets are equal
130 //! @SYMTestExpectedResults Bitset copying is successful, bitsets are equal
132 START_TESTCASE SEC-CAF-UTILS-0009
133 RUN_TEST_STEP 100 tcaf BitsetCopyStep c:\tcaf\cafutils.ini Copy1
134 END_TESTCASE SEC-CAF-UTILS-0009
137 //! @SYMTestCaseID SEC-CAF-UTILS-0010
138 //! @SYMTestCaseDesc Bitset Copy 2
139 //! @SYMPREQ PREQ1951
140 //! @SYMTestStatus Implemented
141 //! @SYMTestPriority Critical
142 //! @SYMTestActions Constructs a bitset, copies it to another bitset, checks the bitsets are equal
143 //! @SYMTestExpectedResults Bitset copying is successful, bitsets are equal
145 START_TESTCASE SEC-CAF-UTILS-0010
146 RUN_TEST_STEP 100 tcaf BitsetCopyStep c:\tcaf\cafutils.ini Copy2
147 END_TESTCASE SEC-CAF-UTILS-0010
150 //! @SYMTestCaseID SEC-CAF-UTILS-0011
151 //! @SYMTestCaseDesc Bitset Copy 3
152 //! @SYMPREQ PREQ1951
153 //! @SYMTestStatus Implemented
154 //! @SYMTestPriority Critical
155 //! @SYMTestActions Constructs a bitset, copies it to another bitset, checks the bitsets are equal
156 //! @SYMTestExpectedResults Bitset copying is successful, bitsets are equal
158 START_TESTCASE SEC-CAF-UTILS-0011
159 RUN_TEST_STEP 100 tcaf BitsetCopyStep c:\tcaf\cafutils.ini Copy3
160 END_TESTCASE SEC-CAF-UTILS-0011
163 //! @SYMTestCaseID SEC-CAF-UTILS-0012
164 //! @SYMTestCaseDesc Bitset Serialise 1
165 //! @SYMPREQ PREQ1951
166 //! @SYMTestStatus Implemented
167 //! @SYMTestPriority Critical
168 //! @SYMTestActions Constructs a bitset, writes it to a stream and read it back to another bitset, check the bitsets are equal
169 //! @SYMTestExpectedResults Bitsets are equal
171 START_TESTCASE SEC-CAF-UTILS-0012
172 RUN_TEST_STEP 100 tcaf BitsetSerialiseStep c:\tcaf\cafutils.ini Copy1
173 END_TESTCASE SEC-CAF-UTILS-0012
176 //! @SYMTestCaseID SEC-CAF-UTILS-0013
177 //! @SYMTestCaseDesc Bitset Serialise 2
178 //! @SYMPREQ PREQ1951
179 //! @SYMTestStatus Implemented
180 //! @SYMTestPriority Critical
181 //! @SYMTestActions Constructs a bitset, writes it to a stream and read it back to another bitset, check the bitsets are equal
182 //! @SYMTestExpectedResults Bitsets are equal
184 START_TESTCASE SEC-CAF-UTILS-0013
185 RUN_TEST_STEP 100 tcaf BitsetSerialiseStep c:\tcaf\cafutils.ini Copy2
186 END_TESTCASE SEC-CAF-UTILS-0013
189 //! @SYMTestCaseID SEC-CAF-UTILS-0014
190 //! @SYMTestCaseDesc Bitset Serialise 3
191 //! @SYMPREQ PREQ1951
192 //! @SYMTestStatus Implemented
193 //! @SYMTestPriority Critical
194 //! @SYMTestActions Constructs a bitset, writes it to a stream and read it back to another bitset, check the bitsets are equal
195 //! @SYMTestExpectedResults Bitsets are equal
197 START_TESTCASE SEC-CAF-UTILS-0014
198 RUN_TEST_STEP 100 tcaf BitsetSerialiseStep c:\tcaf\cafutils.ini Copy3
199 END_TESTCASE SEC-CAF-UTILS-0014
202 //! @SYMTestCaseID SEC-CAF-UTILS-0015
203 //! @SYMTestCaseDesc Bitset Panic 1
204 //! @SYMPREQ PREQ1951
205 //! @SYMTestStatus Implemented
206 //! @SYMTestPriority Critical
207 //! @SYMTestActions Attempts to access an out of range bit, should cause a panic
208 //! @SYMTestExpectedResults Causes a CAFUTILS panic
210 START_TESTCASE SEC-CAF-UTILS-0015
211 RUN_PANIC_STEP_RESULT 0 CafUtils 100 tcaf BitsetPanicStep c:\tcaf\cafutils.ini Panic1
212 END_TESTCASE SEC-CAF-UTILS-0015
215 //! @SYMTestCaseID SEC-CAF-UTILS-0016
216 //! @SYMTestCaseDesc Bitset Panic 2
217 //! @SYMPREQ PREQ1951
218 //! @SYMTestStatus Implemented
219 //! @SYMTestPriority Critical
220 //! @SYMTestActions Attempts to access an out of range bit, should cause a panic
221 //! @SYMTestExpectedResults Causes a CAFUTILS panic
223 START_TESTCASE SEC-CAF-UTILS-0016
224 RUN_PANIC_STEP_RESULT 0 CafUtils 100 tcaf BitsetPanicStep c:\tcaf\cafutils.ini Panic2
225 END_TESTCASE SEC-CAF-UTILS-0016
228 //! @SYMTestCaseID SEC-CAF-UTILS-0017
229 //! @SYMTestCaseDesc Bitset Panic 3
230 //! @SYMPREQ PREQ1951
231 //! @SYMTestStatus Implemented
232 //! @SYMTestPriority Critical
233 //! @SYMTestActions Attempts to access an out of range bit, should cause a panic
234 //! @SYMTestExpectedResults Causes a CAFUTILS panic
236 START_TESTCASE SEC-CAF-UTILS-0017
237 RUN_PANIC_STEP_RESULT 0 CafUtils 100 tcaf BitsetPanicStep c:\tcaf\cafutils.ini Panic3
238 END_TESTCASE SEC-CAF-UTILS-0017
241 //! @SYMTestCaseID SEC-CAF-UTILS-0018
242 //! @SYMTestCaseDesc Bitset Panic 4
243 //! @SYMPREQ PREQ1951
244 //! @SYMTestStatus Implemented
245 //! @SYMTestPriority Critical
246 //! @SYMTestActions Attempts to access an out of range bit, should cause a panic
247 //! @SYMTestExpectedResults Causes a CAFUTILS panic
249 START_TESTCASE SEC-CAF-UTILS-0018
250 RUN_PANIC_STEP_RESULT 0 CafUtils 100 tcaf BitsetPanicStep c:\tcaf\cafutils.ini Panic4
251 END_TESTCASE SEC-CAF-UTILS-0018
254 //! @SYMTestCaseID SEC-CAF-UTILS-0019
255 //! @SYMTestCaseDesc Bitset Panic 5
256 //! @SYMPREQ PREQ1951
257 //! @SYMTestStatus Implemented
258 //! @SYMTestPriority Critical
259 //! @SYMTestActions Attempts to access an out of range bit, should cause a panic
260 //! @SYMTestExpectedResults Causes a CAFUTILS panic
262 START_TESTCASE SEC-CAF-UTILS-0019
263 RUN_PANIC_STEP_RESULT 0 CafUtils 100 tcaf BitsetPanicStep c:\tcaf\cafutils.ini Panic5
264 END_TESTCASE SEC-CAF-UTILS-0019
267 //! @SYMTestCaseID SEC-CAF-UTILS-0020
268 //! @SYMTestCaseDesc Bitset Panic 6
269 //! @SYMPREQ PREQ1951
270 //! @SYMTestStatus Implemented
271 //! @SYMTestPriority Critical
272 //! @SYMTestActions Attempts to access an out of range bit, should cause a panic
273 //! @SYMTestExpectedResults Causes a CAFUTILS panic
275 START_TESTCASE SEC-CAF-UTILS-0020
276 RUN_PANIC_STEP_RESULT 0 CafUtils 100 tcaf BitsetPanicStep c:\tcaf\cafutils.ini Panic6
277 END_TESTCASE SEC-CAF-UTILS-0020
280 //! @SYMTestCaseID SEC-CAF-UTILS-0021
281 //! @SYMTestCaseDesc Check CCafMimeHeader can be serialized
282 //! @SYMPREQ PREQ1951
283 //! @SYMTestStatus Implemented
284 //! @SYMTestPriority Critical
285 //! @SYMTestActions Create a CCafMimeHeader, write it to a stream and then read it back again
286 //! @SYMTestExpectedResults CCafMimeHeader can be serialised
288 START_TESTCASE SEC-CAF-UTILS-0021
289 RUN_TEST_STEP 100 tcaf CAFSupplierSerializeStep
290 END_TESTCASE SEC-CAF-UTILS-0021
293 //! @SYMTestCaseID SEC-CAF-UTILS-0022
294 //! @SYMTestCaseDesc Check that CDirStreamable can be serialised
296 //! @SYMTestStatus Implemented
297 //! @SYMTestPriority Critical
298 //! @SYMTestActions Create a CDirStreamable, write it to a stream and then read it back again
299 //! @SYMTestExpectedResults CDirStreamable can be serialised
301 START_TESTCASE SEC-CAF-UTILS-0022
302 RUN_TEST_STEP 100 tcaf CAFCDirStreamStep
303 END_TESTCASE SEC-CAF-UTILS-0022
306 //! @SYMTestCaseID SEC-CAF-UTILS-0023
307 //! @SYMTestCaseDesc Check that RAttributeSet can be serialised
309 //! @SYMTestStatus Implemented
310 //! @SYMTestPriority Critical
311 //! @SYMTestActions Create a RAttributeSet, write it to a stream and then read it back again
312 //! @SYMTestExpectedResults RAttributeSet can be serialised
314 START_TESTCASE SEC-CAF-UTILS-0023
315 RUN_TEST_STEP 100 tcaf CAFRAttributeSetStreamStep
316 END_TESTCASE SEC-CAF-UTILS-0023
319 //! @SYMTestCaseID SEC-CAF-UTILS-0024
320 //! @SYMTestCaseDesc Check that RStringAttributeSet can be serialised
322 //! @SYMTestStatus Implemented
323 //! @SYMTestPriority Critical
324 //! @SYMTestActions Create a RStringAttributeSet, write it to a stream and then read it back again
325 //! @SYMTestExpectedResults RStringAttributeSet can be serialised
327 START_TESTCASE SEC-CAF-UTILS-0024
328 RUN_TEST_STEP 100 tcaf CAFRStringAttributeSetStreamStep
329 END_TESTCASE SEC-CAF-UTILS-0024
332 //! @SYMTestCaseID SEC-CAF-UTILS-0025
333 //! @SYMTestCaseDesc Check that CSupplierOutputFile can be serialised
334 //! @SYMPREQ PREQ1951
335 //! @SYMTestStatus Implemented
336 //! @SYMTestPriority Critical
337 //! @SYMTestActions Create a CSupplierOutputFile, write it to a stream and then read it back again
338 //! @SYMTestExpectedResults CSupplierOutputFile can be serialised
340 START_TESTCASE SEC-CAF-UTILS-0025
341 RUN_TEST_STEP 100 tcaf CAFSupplierOutputFileStreamStep
342 END_TESTCASE SEC-CAF-UTILS-0025
345 //! @SYMTestCaseID SEC-CAF-UTILS-0026
346 //! @SYMTestCaseDesc Check that CMetaDataArray can be serialised
348 //! @SYMTestStatus Implemented
349 //! @SYMTestPriority Critical
350 //! @SYMTestActions Create a CMetaDataArray, write it to a stream and then read it back again
351 //! @SYMTestExpectedResults CMetaDataArray can be serialised
353 START_TESTCASE SEC-CAF-UTILS-0026
354 RUN_TEST_STEP 100 tcaf CAFMetaDataArrayStep
355 END_TESTCASE SEC-CAF-UTILS-0026
358 //! @SYMTestCaseID SEC-CAF-UTILS-0027
359 //! @SYMTestCaseDesc Check that CEmbeddedObject can be serialised
361 //! @SYMTestStatus Implemented
362 //! @SYMTestPriority Critical
363 //! @SYMTestActions Create a CEmbeddedObject, write it to a stream and then read it back again
364 //! @SYMTestExpectedResults CEmbeddedObject can be serialised
366 START_TESTCASE SEC-CAF-UTILS-0027
367 RUN_TEST_STEP 100 tcaf CAFEmbeddedObjectStep
368 END_TESTCASE SEC-CAF-UTILS-0027
371 //! @SYMTestCaseID SEC-CAF-UTILS-0028
372 //! @SYMTestCaseDesc Check that CVirtualPath can be serialised
374 //! @SYMTestStatus Implemented
375 //! @SYMTestPriority Critical
376 //! @SYMTestActions Create a CVirtualPath, write it to a stream and then read it back again
377 //! @SYMTestExpectedResults CVirtualPath can be serialised
379 START_TESTCASE SEC-CAF-UTILS-0028
380 RUN_TEST_STEP 100 tcaf CAFVirtualPathStep c:\tcaf\cafutils.ini
381 END_TESTCASE SEC-CAF-UTILS-0028
384 //! @SYMTestCaseID SEC-CAF-UTILS-0029
385 //! @SYMTestCaseDesc Check that CRightsInfo object can be serialised
387 //! @SYMTestStatus Implemented
388 //! @SYMTestPriority Critical
389 //! @SYMTestActions Create a CRightsInfo, write it to a stream and then read it back again
390 //! @SYMTestExpectedResults CRightsInfo can be serialised
392 START_TESTCASE SEC-CAF-UTILS-0029
393 RUN_TEST_STEP 100 tcaf CAFRightsInfoStep
394 END_TESTCASE SEC-CAF-UTILS-0029
397 //! @SYMTestCaseID SEC-CAF-UTILS-0030
398 //! @SYMTestCaseDesc Check that CStreamablePointerArray can be serialised
400 //! @SYMTestStatus Implemented
401 //! @SYMTestPriority Critical
402 //! @SYMTestActions Create a CStreamablePtrArray, write it to a stream and then read it back again
403 //! @SYMTestExpectedResults CStreamablePtrArray can be serialised
405 START_TESTCASE SEC-CAF-UTILS-0030
406 RUN_TEST_STEP 100 tcaf CAFStreamablePtrArrayStep
407 END_TESTCASE SEC-CAF-UTILS-0030