os/security/contentmgmt/referencedrmagent/tcaf/scripts/rightsmanagerstep.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 
    18 LOAD_SUITE tcaf
    19 
    20 
    21 START_TESTCASE 			SEC-CAF-RIGHTS-0001
    22 //! @file
    23 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0001
    24 //! @SYMTestCaseDesc 		Create an agent rights manager object
    25 //!				(RightsManager_Create)
    26 //! @SYMREQ			REQ3679
    27 //! @SYMTestStatus		Implemented
    28 //! @SYMTestPriority		Critical
    29 //! @SYMTestActions		Create a CManager, use the CManager to create a CRightsManager
    30 //! @SYMTestExpectedResults	returns expected error code
    31 //! @SYMTestType		CIT
    32 RUN_TEST_STEP 100 tcaf CAFRightsManagerStep c:\tcaf\rightsmanagerstep.ini CreateRightsManager
    33 END_TESTCASE 			SEC-CAF-RIGHTS-0001
    34 
    35 START_TESTCASE 			SEC-CAF-RIGHTS-0002
    36 //! @file
    37 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0002
    38 //! @SYMTestCaseDesc 		List all rights managed by an agent
    39 //!				(RightsManager_ListAll)
    40 //! @SYMREQ			REQ3679
    41 //! @SYMTestStatus		Implemented
    42 //! @SYMTestPriority		Critical
    43 //! @SYMTestActions		Create a CManager, list all rights
    44 //! @SYMTestExpectedResults	returns expected error code
    45 //! @SYMTestType		CIT
    46 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights1
    47 END_TESTCASE 			SEC-CAF-RIGHTS-0002
    48 
    49 START_TESTCASE 			SEC-CAF-RIGHTS-0003
    50 //! @file
    51 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0003
    52 //! @SYMTestCaseDesc 		List all rights associated with a particular file
    53 //!				(RightsManager_ListRights_for_file)
    54 //! @SYMREQ			REQ3679
    55 //! @SYMTestStatus		Implemented
    56 //! @SYMTestPriority		Critical
    57 //! @SYMTestActions		Create a CManager, List all rights associated with the file
    58 //! @SYMTestExpectedResults	returns expected error code
    59 //! @SYMTestType		CIT
    60 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights2
    61 END_TESTCASE 			SEC-CAF-RIGHTS-0003
    62 
    63 START_TESTCASE 			SEC-CAF-RIGHTS-0004
    64 //! @file
    65 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0004
    66 //! @SYMTestCaseDesc 		List all rights associated with a particular content object
    67 //!				(RightsManager_ListRights_for_Content_object)
    68 //! @SYMREQ			REQ3679
    69 //! @SYMTestStatus		Implemented
    70 //! @SYMTestPriority		Critical
    71 //! @SYMTestActions		Create a CManager, list all rights associated with a particular content object
    72 //! @SYMTestExpectedResults	returns expected error code
    73 //! @SYMTestType		CIT
    74 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights3
    75 END_TESTCASE 			SEC-CAF-RIGHTS-0004
    76 
    77 START_TESTCASE 			SEC-CAF-RIGHTS-0005
    78 //! @file
    79 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0005
    80 //! @SYMTestCaseDesc 		List all content associated with a given rights object
    81 //!				(RightsManager_List_Content_for_rights_object)
    82 //! @SYMREQ			REQ3679
    83 //! @SYMTestStatus		Implemented
    84 //! @SYMTestPriority		Critical
    85 //! @SYMTestActions		Create a CManager, List all content associated with a specified rights object
    86 //! @SYMTestExpectedResults	returns expected error code
    87 //! @SYMTestType		CIT
    88 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListContent
    89 END_TESTCASE 			SEC-CAF-RIGHTS-0005
    90 
    91 START_TESTCASE 			SEC-CAF-RIGHTS-0006
    92 //! @file
    93 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0006
    94 //! @SYMTestCaseDesc 		Get pointer to agent defined rights object
    95 //!				(RightsManager_Agent_Rights_Base)
    96 //! @SYMREQ			REQ3679
    97 //! @SYMTestStatus		Implemented
    98 //! @SYMTestPriority		Critical
    99 //! @SYMTestActions		Create a CManager, get a pointer to an MAgentRightsBase derived object corresponding to the CRightsInfo object 
   100 //! @SYMTestExpectedResults	returns expected error code
   101 //! @SYMTestType		CIT
   102 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini RightsBasePointer
   103 END_TESTCASE 			SEC-CAF-RIGHTS-0006
   104 
   105 START_TESTCASE 			SEC-CAF-RIGHTS-0007
   106 //! @file
   107 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0007
   108 //! @SYMTestCaseDesc 		Delete a particular rights object
   109 //!				(RightsManager_DeleteRights)
   110 //! @SYMREQ			REQ3679
   111 //! @SYMTestStatus		Implemented
   112 //! @SYMTestPriority		Critical
   113 //! @SYMTestActions		Create a CManager, ask the agent to delete the specified rights object
   114 //! @SYMTestExpectedResults	returns expected error code
   115 //! @SYMTestType		CIT
   116 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteRights
   117 END_TESTCASE 			SEC-CAF-RIGHTS-0007
   118 
   119 START_TESTCASE 			SEC-CAF-RIGHTS-0008
   120 //! @file
   121 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0008
   122 //! @SYMTestCaseDesc 		Delete all rights associated with a specified content object
   123 //!				(RightsManager_DeleteAllRights)
   124 //! @SYMREQ			REQ3679
   125 //! @SYMTestStatus		Implemented
   126 //! @SYMTestPriority		Critical
   127 //! @SYMTestActions		Create a CManager, ask the agent to delete all rights objects associated with a particular content object
   128 //! @SYMTestExpectedResults	returns expected error code
   129 //! @SYMTestType		CIT
   130 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteAllRights
   131 END_TESTCASE 			SEC-CAF-RIGHTS-0008
   132 
   133 
   134 //-----------------------------------------------------------------------------------------------------------------------
   135 //! @file
   136 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0009
   137 //! @SYMTestCaseDesc 	     	Listing and deleting all rights object associated with a content object using a file handle.
   138 //!				(RightsManager-FileHandle-DRM-Content)
   139 //! @SYMREQ			REQ8757
   140 //! @SYMTestStatus		Implemented
   141 //! @SYMTestPriority	       	Normal
   142 //! @SYMTestActions		1. List all rights associated with a particular content object using a file handle.
   143 //!                        	2. Delete all rights associated with a specified content object using a file handle
   144 //! @SYMTestExpectedResults 	1.Returns expected error code, KErrCANotSupported.
   145 //!                        	2.Returns expected error code, KErrCANotSupported. 
   146 //! @SYMTestType		CIT
   147 START_TESTCASE SEC-CAF-RIGHTS-0009
   148         RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRightsByFileHandle_DRM_Content
   149         RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteAllRightsByFileHandle_DRM_Content
   150 END_TESTCASE SEC-CAF-RIGHTS-0009
   151 //-----------------------------------------------------------------------------------------------------------------------
   152