Update contrib.
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.
21 START_TESTCASE SEC-CAF-RIGHTS-0001
23 //! @SYMTestCaseID SEC-CAF-RIGHTS-0001
24 //! @SYMTestCaseDesc Create an agent rights manager object
25 //! (RightsManager_Create)
27 //! @SYMTestStatus Implemented
28 //! @SYMTestPriority Critical
29 //! @SYMTestActions Create a CManager, use the CManager to create a CRightsManager
30 //! @SYMTestExpectedResults returns expected error code
32 RUN_TEST_STEP 100 tcaf CAFRightsManagerStep c:\tcaf\rightsmanagerstep.ini CreateRightsManager
33 END_TESTCASE SEC-CAF-RIGHTS-0001
35 START_TESTCASE SEC-CAF-RIGHTS-0002
37 //! @SYMTestCaseID SEC-CAF-RIGHTS-0002
38 //! @SYMTestCaseDesc List all rights managed by an agent
39 //! (RightsManager_ListAll)
41 //! @SYMTestStatus Implemented
42 //! @SYMTestPriority Critical
43 //! @SYMTestActions Create a CManager, list all rights
44 //! @SYMTestExpectedResults returns expected error code
46 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights1
47 END_TESTCASE SEC-CAF-RIGHTS-0002
49 START_TESTCASE SEC-CAF-RIGHTS-0003
51 //! @SYMTestCaseID SEC-CAF-RIGHTS-0003
52 //! @SYMTestCaseDesc List all rights associated with a particular file
53 //! (RightsManager_ListRights_for_file)
55 //! @SYMTestStatus Implemented
56 //! @SYMTestPriority Critical
57 //! @SYMTestActions Create a CManager, List all rights associated with the file
58 //! @SYMTestExpectedResults returns expected error code
60 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights2
61 END_TESTCASE SEC-CAF-RIGHTS-0003
63 START_TESTCASE SEC-CAF-RIGHTS-0004
65 //! @SYMTestCaseID SEC-CAF-RIGHTS-0004
66 //! @SYMTestCaseDesc List all rights associated with a particular content object
67 //! (RightsManager_ListRights_for_Content_object)
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
74 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights3
75 END_TESTCASE SEC-CAF-RIGHTS-0004
77 START_TESTCASE SEC-CAF-RIGHTS-0005
79 //! @SYMTestCaseID SEC-CAF-RIGHTS-0005
80 //! @SYMTestCaseDesc List all content associated with a given rights object
81 //! (RightsManager_List_Content_for_rights_object)
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
88 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListContent
89 END_TESTCASE SEC-CAF-RIGHTS-0005
91 START_TESTCASE SEC-CAF-RIGHTS-0006
93 //! @SYMTestCaseID SEC-CAF-RIGHTS-0006
94 //! @SYMTestCaseDesc Get pointer to agent defined rights object
95 //! (RightsManager_Agent_Rights_Base)
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
102 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini RightsBasePointer
103 END_TESTCASE SEC-CAF-RIGHTS-0006
105 START_TESTCASE SEC-CAF-RIGHTS-0007
107 //! @SYMTestCaseID SEC-CAF-RIGHTS-0007
108 //! @SYMTestCaseDesc Delete a particular rights object
109 //! (RightsManager_DeleteRights)
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
116 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteRights
117 END_TESTCASE SEC-CAF-RIGHTS-0007
119 START_TESTCASE SEC-CAF-RIGHTS-0008
121 //! @SYMTestCaseID SEC-CAF-RIGHTS-0008
122 //! @SYMTestCaseDesc Delete all rights associated with a specified content object
123 //! (RightsManager_DeleteAllRights)
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
130 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteAllRights
131 END_TESTCASE SEC-CAF-RIGHTS-0008
134 //-----------------------------------------------------------------------------------------------------------------------
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)
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.
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 //-----------------------------------------------------------------------------------------------------------------------