First public contribution.
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.
17 // Test cases for validating the methods newly enforced DRM capability.
19 RUN_PROGRAM 100 SETCAP tcaf.exe 0 -SID 80002345 tcafnodrmcap.exe
21 LOAD_SUITE tcafnodrmcap
24 //! @SYMTestCaseID SEC-CAFNODRM-MAN-0001
25 //! @SYMTestCaseDesc Request a status notification on a file
26 //! (Manager_NotifyStatusChange)
28 //! @SYMTestStatus Implemented
29 //! @SYMTestPriority Normal
30 //! @SYMTestActions Request a notification on an unprotected file
31 //! @SYMTestExpectedResults Should return KErrPermissionDenied
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
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
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
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
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
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
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
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
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
94 //! @SYMTestCaseID SEC-CAFNODRM-MAN-0006
95 //! @SYMTestCaseDesc Query standardised information about a content object using a file handle.
96 //! (FileHandle-DRM-Content)
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
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