os/security/contentmgmt/referencedrmagent/tcaf/scripts/cafutils.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 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".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description: 
    15 //
    16 
    17 LOAD_SUITE tcaf
    18 
    19 //! @file
    20 //! @SYMTestCaseID 		SEC-CAF-UTILS-0001
    21 //! @SYMTestCaseDesc 		Basic Bitset Test
    22 //! @SYMPREQ			PREQ1951
    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
    27 //! @SYMTestType		UT
    28 START_TESTCASE SEC-CAF-UTILS-0001
    29 RUN_TEST_STEP 100 tcaf BasicBitsetStep
    30 END_TESTCASE SEC-CAF-UTILS-0001
    31 
    32 //! @file
    33 //! @SYMTestCaseID 		SEC-CAF-UTILS-0002
    34 //! @SYMTestCaseDesc 		Bitset List Test
    35 //! @SYMPREQ			PREQ1951
    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
    40 //! @SYMTestType		UT
    41 START_TESTCASE SEC-CAF-UTILS-0002
    42 RUN_TEST_STEP 100 tcaf BitsetListStep 
    43 END_TESTCASE SEC-CAF-UTILS-0002
    44 
    45 //! @file
    46 //! @SYMTestCaseID 		SEC-CAF-UTILS-0003
    47 //! @SYMTestCaseDesc 		Bitset equality 1
    48 //! @SYMPREQ			PREQ1951
    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
    53 //! @SYMTestType		UT
    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
    57 
    58 //! @file
    59 //! @SYMTestCaseID 		SEC-CAF-UTILS-0004
    60 //! @SYMTestCaseDesc 		Bitset equality 2
    61 //! @SYMPREQ			PREQ1951
    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
    66 //! @SYMTestType		UT
    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
    70 
    71 //! @file
    72 //! @SYMTestCaseID 		SEC-CAF-UTILS-0005
    73 //! @SYMTestCaseDesc 		Bitset equality 3
    74 //! @SYMPREQ			PREQ1951
    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
    79 //! @SYMTestType		UT
    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
    83 
    84 //! @file
    85 //! @SYMTestCaseID 		SEC-CAF-UTILS-0006
    86 //! @SYMTestCaseDesc 		Bitset Inequality 1
    87 //! @SYMPREQ			PREQ1951
    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
    92 //! @SYMTestType		UT
    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
    96 
    97 //! @file
    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
   105 //! @SYMTestType		UT
   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
   109 
   110 //! @file
   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
   118 //! @SYMTestType		UT
   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
   122 
   123 //! @file
   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
   131 //! @SYMTestType		UT
   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
   135 
   136 //! @file
   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
   144 //! @SYMTestType		UT
   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
   148 
   149 //! @file
   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
   157 //! @SYMTestType		UT
   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
   161 
   162 //! @file
   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
   170 //! @SYMTestType		UT
   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
   174 
   175 //! @file
   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
   183 //! @SYMTestType		UT
   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
   187 
   188 //! @file
   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
   196 //! @SYMTestType		UT
   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
   200 
   201 //! @file
   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
   209 //! @SYMTestType		UT
   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
   213 
   214 //! @file
   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
   222 //! @SYMTestType		UT
   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
   226 
   227 //! @file
   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
   235 //! @SYMTestType		UT
   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
   239 
   240 //! @file
   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
   248 //! @SYMTestType		UT
   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
   252 
   253 //! @file
   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
   261 //! @SYMTestType		UT
   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
   265 
   266 //! @file
   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
   274 //! @SYMTestType		UT
   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
   278 
   279 //! @file
   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
   287 //! @SYMTestType		UT
   288 START_TESTCASE SEC-CAF-UTILS-0021
   289 RUN_TEST_STEP 100 tcaf CAFSupplierSerializeStep
   290 END_TESTCASE SEC-CAF-UTILS-0021
   291 
   292 //! @file
   293 //! @SYMTestCaseID 		SEC-CAF-UTILS-0022
   294 //! @SYMTestCaseDesc 		Check that CDirStreamable can be serialised
   295 //! @SYMREQ			REQ3691
   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
   300 //! @SYMTestType		UT
   301 START_TESTCASE SEC-CAF-UTILS-0022
   302 RUN_TEST_STEP 100 tcaf CAFCDirStreamStep
   303 END_TESTCASE SEC-CAF-UTILS-0022
   304 
   305 //! @file
   306 //! @SYMTestCaseID 		SEC-CAF-UTILS-0023
   307 //! @SYMTestCaseDesc 		Check that RAttributeSet can be serialised
   308 //! @SYMREQ			REQ3679
   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
   313 //! @SYMTestType		UT
   314 START_TESTCASE SEC-CAF-UTILS-0023
   315 RUN_TEST_STEP 100 tcaf CAFRAttributeSetStreamStep 
   316 END_TESTCASE SEC-CAF-UTILS-0023
   317 
   318 //! @file
   319 //! @SYMTestCaseID 		SEC-CAF-UTILS-0024
   320 //! @SYMTestCaseDesc 		Check that RStringAttributeSet can be serialised
   321 //! @SYMREQ			REQ3679
   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
   326 //! @SYMTestType		UT
   327 START_TESTCASE SEC-CAF-UTILS-0024
   328 RUN_TEST_STEP 100 tcaf CAFRStringAttributeSetStreamStep
   329 END_TESTCASE SEC-CAF-UTILS-0024
   330 
   331 //! @file
   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
   339 //! @SYMTestType		UT
   340 START_TESTCASE SEC-CAF-UTILS-0025
   341 RUN_TEST_STEP 100 tcaf CAFSupplierOutputFileStreamStep 
   342 END_TESTCASE SEC-CAF-UTILS-0025
   343 
   344 //! @file
   345 //! @SYMTestCaseID 		SEC-CAF-UTILS-0026
   346 //! @SYMTestCaseDesc 		Check that CMetaDataArray can be serialised
   347 //! @SYMREQ			REQ3679
   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
   352 //! @SYMTestType		UT
   353 START_TESTCASE SEC-CAF-UTILS-0026
   354 RUN_TEST_STEP 100 tcaf CAFMetaDataArrayStep 
   355 END_TESTCASE SEC-CAF-UTILS-0026
   356 
   357 //! @file
   358 //! @SYMTestCaseID 		SEC-CAF-UTILS-0027
   359 //! @SYMTestCaseDesc 		Check that CEmbeddedObject can be serialised
   360 //! @SYMREQ			REQ3679
   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
   365 //! @SYMTestType		UT
   366 START_TESTCASE SEC-CAF-UTILS-0027
   367 RUN_TEST_STEP 100 tcaf CAFEmbeddedObjectStep
   368 END_TESTCASE SEC-CAF-UTILS-0027
   369 
   370 //! @file
   371 //! @SYMTestCaseID 		SEC-CAF-UTILS-0028
   372 //! @SYMTestCaseDesc 		Check that CVirtualPath can be serialised
   373 //! @SYMREQ			REQ3679
   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
   378 //! @SYMTestType		UT
   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
   382 
   383 //! @file
   384 //! @SYMTestCaseID 		SEC-CAF-UTILS-0029
   385 //! @SYMTestCaseDesc 		Check that CRightsInfo object can be serialised
   386 //! @SYMREQ			REQ3679
   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
   391 //! @SYMTestType		UT
   392 START_TESTCASE SEC-CAF-UTILS-0029
   393 RUN_TEST_STEP 100 tcaf CAFRightsInfoStep
   394 END_TESTCASE SEC-CAF-UTILS-0029
   395 
   396 //! @file
   397 //! @SYMTestCaseID 		SEC-CAF-UTILS-0030
   398 //! @SYMTestCaseDesc 		Check that CStreamablePointerArray can be serialised
   399 //! @SYMPREQ			PREQ780
   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
   404 //! @SYMTestType		UT
   405 START_TESTCASE SEC-CAF-UTILS-0030
   406 RUN_TEST_STEP 100 tcaf CAFStreamablePtrArrayStep
   407 END_TESTCASE SEC-CAF-UTILS-0030
   408