os/security/contentmgmt/referencedrmagent/tcaf/scripts/rightsmanagerstep.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.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
sl@0
    17
sl@0
    18
LOAD_SUITE tcaf
sl@0
    19
sl@0
    20
sl@0
    21
START_TESTCASE 			SEC-CAF-RIGHTS-0001
sl@0
    22
//! @file
sl@0
    23
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0001
sl@0
    24
//! @SYMTestCaseDesc 		Create an agent rights manager object
sl@0
    25
//!				(RightsManager_Create)
sl@0
    26
//! @SYMREQ			REQ3679
sl@0
    27
//! @SYMTestStatus		Implemented
sl@0
    28
//! @SYMTestPriority		Critical
sl@0
    29
//! @SYMTestActions		Create a CManager, use the CManager to create a CRightsManager
sl@0
    30
//! @SYMTestExpectedResults	returns expected error code
sl@0
    31
//! @SYMTestType		CIT
sl@0
    32
RUN_TEST_STEP 100 tcaf CAFRightsManagerStep c:\tcaf\rightsmanagerstep.ini CreateRightsManager
sl@0
    33
END_TESTCASE 			SEC-CAF-RIGHTS-0001
sl@0
    34
sl@0
    35
START_TESTCASE 			SEC-CAF-RIGHTS-0002
sl@0
    36
//! @file
sl@0
    37
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0002
sl@0
    38
//! @SYMTestCaseDesc 		List all rights managed by an agent
sl@0
    39
//!				(RightsManager_ListAll)
sl@0
    40
//! @SYMREQ			REQ3679
sl@0
    41
//! @SYMTestStatus		Implemented
sl@0
    42
//! @SYMTestPriority		Critical
sl@0
    43
//! @SYMTestActions		Create a CManager, list all rights
sl@0
    44
//! @SYMTestExpectedResults	returns expected error code
sl@0
    45
//! @SYMTestType		CIT
sl@0
    46
RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights1
sl@0
    47
END_TESTCASE 			SEC-CAF-RIGHTS-0002
sl@0
    48
sl@0
    49
START_TESTCASE 			SEC-CAF-RIGHTS-0003
sl@0
    50
//! @file
sl@0
    51
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0003
sl@0
    52
//! @SYMTestCaseDesc 		List all rights associated with a particular file
sl@0
    53
//!				(RightsManager_ListRights_for_file)
sl@0
    54
//! @SYMREQ			REQ3679
sl@0
    55
//! @SYMTestStatus		Implemented
sl@0
    56
//! @SYMTestPriority		Critical
sl@0
    57
//! @SYMTestActions		Create a CManager, List all rights associated with the file
sl@0
    58
//! @SYMTestExpectedResults	returns expected error code
sl@0
    59
//! @SYMTestType		CIT
sl@0
    60
RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights2
sl@0
    61
END_TESTCASE 			SEC-CAF-RIGHTS-0003
sl@0
    62
sl@0
    63
START_TESTCASE 			SEC-CAF-RIGHTS-0004
sl@0
    64
//! @file
sl@0
    65
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0004
sl@0
    66
//! @SYMTestCaseDesc 		List all rights associated with a particular content object
sl@0
    67
//!				(RightsManager_ListRights_for_Content_object)
sl@0
    68
//! @SYMREQ			REQ3679
sl@0
    69
//! @SYMTestStatus		Implemented
sl@0
    70
//! @SYMTestPriority		Critical
sl@0
    71
//! @SYMTestActions		Create a CManager, list all rights associated with a particular content object
sl@0
    72
//! @SYMTestExpectedResults	returns expected error code
sl@0
    73
//! @SYMTestType		CIT
sl@0
    74
RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights3
sl@0
    75
END_TESTCASE 			SEC-CAF-RIGHTS-0004
sl@0
    76
sl@0
    77
START_TESTCASE 			SEC-CAF-RIGHTS-0005
sl@0
    78
//! @file
sl@0
    79
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0005
sl@0
    80
//! @SYMTestCaseDesc 		List all content associated with a given rights object
sl@0
    81
//!				(RightsManager_List_Content_for_rights_object)
sl@0
    82
//! @SYMREQ			REQ3679
sl@0
    83
//! @SYMTestStatus		Implemented
sl@0
    84
//! @SYMTestPriority		Critical
sl@0
    85
//! @SYMTestActions		Create a CManager, List all content associated with a specified rights object
sl@0
    86
//! @SYMTestExpectedResults	returns expected error code
sl@0
    87
//! @SYMTestType		CIT
sl@0
    88
RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListContent
sl@0
    89
END_TESTCASE 			SEC-CAF-RIGHTS-0005
sl@0
    90
sl@0
    91
START_TESTCASE 			SEC-CAF-RIGHTS-0006
sl@0
    92
//! @file
sl@0
    93
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0006
sl@0
    94
//! @SYMTestCaseDesc 		Get pointer to agent defined rights object
sl@0
    95
//!				(RightsManager_Agent_Rights_Base)
sl@0
    96
//! @SYMREQ			REQ3679
sl@0
    97
//! @SYMTestStatus		Implemented
sl@0
    98
//! @SYMTestPriority		Critical
sl@0
    99
//! @SYMTestActions		Create a CManager, get a pointer to an MAgentRightsBase derived object corresponding to the CRightsInfo object 
sl@0
   100
//! @SYMTestExpectedResults	returns expected error code
sl@0
   101
//! @SYMTestType		CIT
sl@0
   102
RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini RightsBasePointer
sl@0
   103
END_TESTCASE 			SEC-CAF-RIGHTS-0006
sl@0
   104
sl@0
   105
START_TESTCASE 			SEC-CAF-RIGHTS-0007
sl@0
   106
//! @file
sl@0
   107
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0007
sl@0
   108
//! @SYMTestCaseDesc 		Delete a particular rights object
sl@0
   109
//!				(RightsManager_DeleteRights)
sl@0
   110
//! @SYMREQ			REQ3679
sl@0
   111
//! @SYMTestStatus		Implemented
sl@0
   112
//! @SYMTestPriority		Critical
sl@0
   113
//! @SYMTestActions		Create a CManager, ask the agent to delete the specified rights object
sl@0
   114
//! @SYMTestExpectedResults	returns expected error code
sl@0
   115
//! @SYMTestType		CIT
sl@0
   116
RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteRights
sl@0
   117
END_TESTCASE 			SEC-CAF-RIGHTS-0007
sl@0
   118
sl@0
   119
START_TESTCASE 			SEC-CAF-RIGHTS-0008
sl@0
   120
//! @file
sl@0
   121
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0008
sl@0
   122
//! @SYMTestCaseDesc 		Delete all rights associated with a specified content object
sl@0
   123
//!				(RightsManager_DeleteAllRights)
sl@0
   124
//! @SYMREQ			REQ3679
sl@0
   125
//! @SYMTestStatus		Implemented
sl@0
   126
//! @SYMTestPriority		Critical
sl@0
   127
//! @SYMTestActions		Create a CManager, ask the agent to delete all rights objects associated with a particular content object
sl@0
   128
//! @SYMTestExpectedResults	returns expected error code
sl@0
   129
//! @SYMTestType		CIT
sl@0
   130
RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteAllRights
sl@0
   131
END_TESTCASE 			SEC-CAF-RIGHTS-0008
sl@0
   132
sl@0
   133
sl@0
   134
//-----------------------------------------------------------------------------------------------------------------------
sl@0
   135
//! @file
sl@0
   136
//! @SYMTestCaseID 		SEC-CAF-RIGHTS-0009
sl@0
   137
//! @SYMTestCaseDesc 	     	Listing and deleting all rights object associated with a content object using a file handle.
sl@0
   138
//!				(RightsManager-FileHandle-DRM-Content)
sl@0
   139
//! @SYMREQ			REQ8757
sl@0
   140
//! @SYMTestStatus		Implemented
sl@0
   141
//! @SYMTestPriority	       	Normal
sl@0
   142
//! @SYMTestActions		1. List all rights associated with a particular content object using a file handle.
sl@0
   143
//!                        	2. Delete all rights associated with a specified content object using a file handle
sl@0
   144
//! @SYMTestExpectedResults 	1.Returns expected error code, KErrCANotSupported.
sl@0
   145
//!                        	2.Returns expected error code, KErrCANotSupported. 
sl@0
   146
//! @SYMTestType		CIT
sl@0
   147
START_TESTCASE SEC-CAF-RIGHTS-0009
sl@0
   148
        RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRightsByFileHandle_DRM_Content
sl@0
   149
        RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteAllRightsByFileHandle_DRM_Content
sl@0
   150
END_TESTCASE SEC-CAF-RIGHTS-0009
sl@0
   151
//-----------------------------------------------------------------------------------------------------------------------
sl@0
   152