1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/contentmgmt/referencedrmagent/tcaf/scripts/nodrmcapsteps.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,105 @@
1.4 +//
1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +// Test cases for validating the methods newly enforced DRM capability.
1.21 +
1.22 +RUN_PROGRAM 100 SETCAP tcaf.exe 0 -SID 80002345 tcafnodrmcap.exe
1.23 +
1.24 +LOAD_SUITE tcafnodrmcap
1.25 +
1.26 +//! @file
1.27 +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0001
1.28 +//! @SYMTestCaseDesc Request a status notification on a file
1.29 +//! (Manager_NotifyStatusChange)
1.30 +//! @SYMREQ DEF130857
1.31 +//! @SYMTestStatus Implemented
1.32 +//! @SYMTestPriority Normal
1.33 +//! @SYMTestActions Request a notification on an unprotected file
1.34 +//! @SYMTestExpectedResults Should return KErrPermissionDenied
1.35 +//! @SYMTestType CIT
1.36 +START_TESTCASE SEC-CAFNODRM-MAN-0001
1.37 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerNotifyStep c:\tcaf\nodrmcapsteps.ini NotifyStatusChange
1.38 +END_TESTCASE SEC-CAFNODRM-MAN-0001
1.39 +
1.40 +//! @file
1.41 +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0002
1.42 +//! @SYMTestCaseDesc Set a property within all agents
1.43 +//! (Manager_SetProperty)
1.44 +//! @SYMPREQ DEF130857
1.45 +//! @SYMTestStatus Implemented
1.46 +//! @SYMTestPriority Normal
1.47 +//! @SYMTestActions Set a property within all agents
1.48 +//! @SYMTestExpectedResults Should return KErrPermissionDenied
1.49 +//! @SYMTestType CIT
1.50 +START_TESTCASE SEC-CAFNODRM-MAN-0002
1.51 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerSetPropertyStep c:\tcaf\nodrmcapsteps.ini SetProperty
1.52 +END_TESTCASE SEC-CAFNODRM-MAN-0002
1.53 +
1.54 +//! @file
1.55 +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0003
1.56 +//! @SYMTestCaseDesc Display information about an unprotected file
1.57 +//! (Manager_DisplayInfo)
1.58 +//! @SYMPREQ DEF130857
1.59 +//! @SYMTestStatus Implemented
1.60 +//! @SYMTestPriority Normal
1.61 +//! @SYMTestActions Ask the agent to display information about the file
1.62 +//! @SYMTestExpectedResults Should return KErrPermissionDenied
1.63 +//! @SYMTestType CIT
1.64 +START_TESTCASE SEC-CAFNODRM-MAN-0003
1.65 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayInfoStep c:\tcaf\nodrmcapsteps.ini DisplayInfo
1.66 +END_TESTCASE SEC-CAFNODRM-MAN-0003
1.67 +
1.68 +//! @file
1.69 +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0004
1.70 +//! @SYMTestCaseDesc Execute an agent specific command
1.71 +//! (Manager_Agent_Specific)
1.72 +//! @SYMPREQ DEF130857
1.73 +//! @SYMTestStatus Implemented
1.74 +//! @SYMTestPriority Normal
1.75 +//! @SYMTestActions Execute an agent specific command
1.76 +//! @SYMTestExpectedResults Should return KErrPermissionDenied
1.77 +//! @SYMTestType CIT
1.78 +START_TESTCASE SEC-CAFNODRM-MAN-0004
1.79 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerAgentSpecificStep c:\tcaf\nodrmcapsteps.ini AgentSpecific
1.80 +END_TESTCASE SEC-CAFNODRM-MAN-0004
1.81 +
1.82 +//! @file
1.83 +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0005
1.84 +//! @SYMTestCaseDesc Execute an agent specific command
1.85 +//! (Manager_Display_Management_Info)
1.86 +//! @SYMPREQ DEF130857
1.87 +//! @SYMTestStatus Implemented
1.88 +//! @SYMTestPriority Normal
1.89 +//! @SYMTestActions Execute an agent specific command
1.90 +//! @SYMTestExpectedResults Should return KErrPermissionDenied
1.91 +//! @SYMTestType CIT
1.92 +START_TESTCASE SEC-CAFNODRM-MAN-0005
1.93 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayConfigStep c:\tcaf\nodrmcapsteps.ini DisplayManagement
1.94 +END_TESTCASE SEC-CAFNODRM-MAN-0005
1.95 +
1.96 +//! @file
1.97 +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0006
1.98 +//! @SYMTestCaseDesc Query standardised information about a content object using a file handle.
1.99 +//! (FileHandle-DRM-Content)
1.100 +//! @SYMREQ DEF130857
1.101 +//! @SYMTestStatus Implemented
1.102 +//! @SYMTestPriority Normal
1.103 +//! @SYMTestActions View information associated with a single content object in a file specified by file handle
1.104 +//! @SYMTestExpectedResults Should return KErrPermissionDenied
1.105 +//! @SYMTestType CIT
1.106 +START_TESTCASE SEC-CAFNODRM-MAN-0006
1.107 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayInfoByFileHandleStep c:\tcaf\nodrmcapsteps.ini DisplayInfoByFileHandle_DRM_Content
1.108 +END_TESTCASE SEC-CAFNODRM-MAN-0006