diff -r afc583cfa176 -r da2ae96f639b contentmgmt/referencedrmagent/tcaf/scripts/nodrmcapsteps.script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contentmgmt/referencedrmagent/tcaf/scripts/nodrmcapsteps.script Mon Oct 12 10:17:04 2009 +0300 @@ -0,0 +1,119 @@ +// +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// +// +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// +// Test cases for validating the methods newly enforced DRM capability. + +RUN_PROGRAM 100 SETCAP tcaf.exe 0 -SID 80001234 tcafnodrmcap.exe + +LOAD_SUITE tcafnodrmcap + +//! @file +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0001 +//! @SYMTestCaseDesc Request a status notification on a file +//! (Manager_NotifyStatusChange) +//! @SYMREQ DEF130857 +//! @SYMTestStatus Implemented +//! @SYMTestPriority Normal +//! @SYMTestActions Request a notification on an unprotected file +//! @SYMTestExpectedResults Should return KErrPermissionDenied +//! @SYMTestType CIT +START_TESTCASE SEC-CAFNODRM-MAN-0001 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerNotifyStep c:\tcaf\nodrmcapsteps.ini NotifyStatusChange +END_TESTCASE SEC-CAFNODRM-MAN-0001 + +//! @file +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0002 +//! @SYMTestCaseDesc Set a property within all agents +//! (Manager_SetProperty) +//! @SYMPREQ DEF130857 +//! @SYMTestStatus Implemented +//! @SYMTestPriority Normal +//! @SYMTestActions Set a property within all agents +//! @SYMTestExpectedResults Should return KErrPermissionDenied +//! @SYMTestType CIT +START_TESTCASE SEC-CAFNODRM-MAN-0002 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerSetPropertyStep c:\tcaf\nodrmcapsteps.ini SetProperty +END_TESTCASE SEC-CAFNODRM-MAN-0002 + +//! @file +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0003 +//! @SYMTestCaseDesc Display information about an unprotected file +//! (Manager_DisplayInfo) +//! @SYMPREQ DEF130857 +//! @SYMTestStatus Implemented +//! @SYMTestPriority Normal +//! @SYMTestActions Ask the agent to display information about the file +//! @SYMTestExpectedResults Should return KErrPermissionDenied +//! @SYMTestType CIT +START_TESTCASE SEC-CAFNODRM-MAN-0003 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayInfoStep c:\tcaf\nodrmcapsteps.ini DisplayInfo +END_TESTCASE SEC-CAFNODRM-MAN-0003 + +//! @file +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0004 +//! @SYMTestCaseDesc Execute an agent specific command +//! (Manager_Agent_Specific) +//! @SYMPREQ DEF130857 +//! @SYMTestStatus Implemented +//! @SYMTestPriority Normal +//! @SYMTestActions Execute an agent specific command +//! @SYMTestExpectedResults Should return KErrPermissionDenied +//! @SYMTestType CIT +START_TESTCASE SEC-CAFNODRM-MAN-0004 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerAgentSpecificStep c:\tcaf\nodrmcapsteps.ini AgentSpecific +END_TESTCASE SEC-CAFNODRM-MAN-0004 + +//! @file +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0005 +//! @SYMTestCaseDesc Execute an agent specific command +//! (Manager_Display_Management_Info) +//! @SYMPREQ DEF130857 +//! @SYMTestStatus Implemented +//! @SYMTestPriority Normal +//! @SYMTestActions Execute an agent specific command +//! @SYMTestExpectedResults Should return KErrPermissionDenied +//! @SYMTestType CIT +START_TESTCASE SEC-CAFNODRM-MAN-0005 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayConfigStep c:\tcaf\nodrmcapsteps.ini DisplayManagement +END_TESTCASE SEC-CAFNODRM-MAN-0005 + +//! @file +//! @SYMTestCaseID SEC-CAFNODRM-MAN-0006 +//! @SYMTestCaseDesc Query standardised information about a content object using a file handle. +//! (FileHandle-DRM-Content) +//! @SYMREQ DEF130857 +//! @SYMTestStatus Implemented +//! @SYMTestPriority Normal +//! @SYMTestActions View information associated with a single content object in a file specified by file handle +//! @SYMTestExpectedResults Should return KErrPermissionDenied +//! @SYMTestType CIT +START_TESTCASE SEC-CAFNODRM-MAN-0006 +RUN_TEST_STEP 100 tcafnodrmcap CAFManagerDisplayInfoByFileHandleStep c:\tcaf\nodrmcapsteps.ini DisplayInfoByFileHandle_DRM_Content +END_TESTCASE SEC-CAFNODRM-MAN-0006