os/security/contentmgmt/referencedrmagent/tcaf/scripts/nodrmcapsteps.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 // Test cases for validating the methods newly enforced DRM capability.
    18 
    19 RUN_PROGRAM 100 SETCAP tcaf.exe 0 -SID 80002345 tcafnodrmcap.exe
    20 
    21 LOAD_SUITE tcafnodrmcap
    22 
    23 //! @file
    24 //! @SYMTestCaseID 		SEC-CAFNODRM-MAN-0001
    25 //! @SYMTestCaseDesc 		Request a status notification on a file
    26 //!				(Manager_NotifyStatusChange)
    27 //! @SYMREQ			DEF130857
    28 //! @SYMTestStatus		Implemented
    29 //! @SYMTestPriority		Normal
    30 //! @SYMTestActions		Request a notification on an unprotected file
    31 //! @SYMTestExpectedResults	Should return KErrPermissionDenied
    32 //! @SYMTestType		CIT
    33 START_TESTCASE 			SEC-CAFNODRM-MAN-0001
    34 RUN_TEST_STEP 100 tcafnodrmcap CAFManagerNotifyStep c:\tcaf\nodrmcapsteps.ini NotifyStatusChange
    35 END_TESTCASE 			SEC-CAFNODRM-MAN-0001
    36 
    37 //! @file
    38 //! @SYMTestCaseID 		SEC-CAFNODRM-MAN-0002
    39 //! @SYMTestCaseDesc 		Set a property within all agents
    40 //!				(Manager_SetProperty)
    41 //! @SYMPREQ			DEF130857
    42 //! @SYMTestStatus		Implemented
    43 //! @SYMTestPriority		Normal
    44 //! @SYMTestActions		Set a property within all agents
    45 //! @SYMTestExpectedResults	Should return KErrPermissionDenied
    46 //! @SYMTestType		CIT
    47 START_TESTCASE 			SEC-CAFNODRM-MAN-0002
    48 RUN_TEST_STEP 100 tcafnodrmcap CAFManagerSetPropertyStep c:\tcaf\nodrmcapsteps.ini SetProperty
    49 END_TESTCASE 			SEC-CAFNODRM-MAN-0002
    50 
    51 //! @file
    52 //! @SYMTestCaseID 		SEC-CAFNODRM-MAN-0003
    53 //! @SYMTestCaseDesc 		Display information about an unprotected file
    54 //!				(Manager_DisplayInfo)
    55 //! @SYMPREQ			DEF130857
    56 //! @SYMTestStatus		Implemented
    57 //! @SYMTestPriority		Normal
    58 //! @SYMTestActions		Ask the agent to display information about the file
    59 //! @SYMTestExpectedResults	Should return KErrPermissionDenied
    60 //! @SYMTestType		CIT
    61 START_TESTCASE 			SEC-CAFNODRM-MAN-0003
    62 RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayInfoStep c:\tcaf\nodrmcapsteps.ini DisplayInfo
    63 END_TESTCASE 			SEC-CAFNODRM-MAN-0003
    64 
    65 //! @file
    66 //! @SYMTestCaseID 		SEC-CAFNODRM-MAN-0004
    67 //! @SYMTestCaseDesc 		Execute an agent specific command
    68 //!				(Manager_Agent_Specific)
    69 //! @SYMPREQ			DEF130857
    70 //! @SYMTestStatus		Implemented
    71 //! @SYMTestPriority		Normal
    72 //! @SYMTestActions		Execute an agent specific command
    73 //! @SYMTestExpectedResults	Should return KErrPermissionDenied
    74 //! @SYMTestType		CIT
    75 START_TESTCASE 			SEC-CAFNODRM-MAN-0004
    76 RUN_TEST_STEP 100 tcafnodrmcap CAFManagerAgentSpecificStep c:\tcaf\nodrmcapsteps.ini AgentSpecific
    77 END_TESTCASE 			SEC-CAFNODRM-MAN-0004
    78 
    79 //! @file
    80 //! @SYMTestCaseID 		SEC-CAFNODRM-MAN-0005
    81 //! @SYMTestCaseDesc 		Execute an agent specific command
    82 //!				(Manager_Display_Management_Info)
    83 //! @SYMPREQ			DEF130857
    84 //! @SYMTestStatus		Implemented
    85 //! @SYMTestPriority		Normal
    86 //! @SYMTestActions		Execute an agent specific command
    87 //! @SYMTestExpectedResults	Should return KErrPermissionDenied
    88 //! @SYMTestType		CIT
    89 START_TESTCASE 			SEC-CAFNODRM-MAN-0005
    90 RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayConfigStep c:\tcaf\nodrmcapsteps.ini DisplayManagement
    91 END_TESTCASE 			SEC-CAFNODRM-MAN-0005
    92 
    93 //! @file
    94 //! @SYMTestCaseID 		SEC-CAFNODRM-MAN-0006
    95 //! @SYMTestCaseDesc 	     	Query standardised information about a content object using a file handle.
    96 //!				(FileHandle-DRM-Content)
    97 //! @SYMREQ			DEF130857
    98 //! @SYMTestStatus		Implemented
    99 //! @SYMTestPriority	       	Normal
   100 //! @SYMTestActions		View information associated with a single content object in a file specified by file handle
   101 //! @SYMTestExpectedResults 	Should return KErrPermissionDenied
   102 //! @SYMTestType		CIT
   103 START_TESTCASE 			SEC-CAFNODRM-MAN-0006
   104 RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayInfoByFileHandleStep c:\tcaf\nodrmcapsteps.ini DisplayInfoByFileHandle_DRM_Content
   105 END_TESTCASE 			SEC-CAFNODRM-MAN-0006