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