|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Test request for swp change |
|
15 // |
|
16 // |
|
17 |
|
18 #include <ssm/ssmcmd.rh> |
|
19 |
|
20 // valid struct |
|
21 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_swp1 |
|
22 { |
|
23 severity = ECmdCriticalSeverity; |
|
24 key = 999; |
|
25 value = 876; |
|
26 filename = "ssm.swp.policy.test.cmdreqswp"; |
|
27 } |
|
28 |
|
29 // invalid type |
|
30 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_swp2 |
|
31 { |
|
32 type = ESsmCmdLoadSup; |
|
33 severity = ECmdMediumSeverity; |
|
34 key = 999; |
|
35 value = 876; |
|
36 filename = "ssm.swp.policy.test.cmdreqswp"; |
|
37 } |
|
38 |
|
39 // unsupported version |
|
40 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_swp3 |
|
41 { |
|
42 version = 999; |
|
43 severity = ECmdMediumSeverity; |
|
44 key = 999; |
|
45 value = 876; |
|
46 filename = "ssm.swp.policy.test.cmdreqswp"; |
|
47 } |
|
48 |
|
49 // missing filename |
|
50 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_swp4 |
|
51 { |
|
52 severity = ECmdCriticalSeverity; |
|
53 key = 999; |
|
54 value = 876; |
|
55 } |
|
56 |
|
57 // filename with path |
|
58 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_swp5 |
|
59 { |
|
60 type = ESsmCmdCreateSwp; |
|
61 severity = ECmdCriticalSeverity; |
|
62 key = 999; |
|
63 value = 876; |
|
64 filename = "Z:\\sys\\bin\\ssm.swp.policy.test.cmdreqswp"; |
|
65 } |
|
66 |
|
67 #ifdef SYMBIAN_SSM_FLEXIBLE_MERGE |
|
68 // valid priority |
|
69 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_swp6 |
|
70 { |
|
71 severity = ECmdCriticalSeverity; |
|
72 key = 999; |
|
73 value = 876; |
|
74 filename = "ssm.swp.policy.test.cmdreqswp"; |
|
75 priority = 1000; |
|
76 } |
|
77 |
|
78 |
|
79 //first version |
|
80 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_swp7 |
|
81 { |
|
82 version = ECmdCreateSwpInitialVersion; |
|
83 severity = ECmdCriticalSeverity; |
|
84 key = 999; |
|
85 value = 876; |
|
86 filename = "ssm.swp.policy.test.cmdreqswp"; |
|
87 } |
|
88 |
|
89 // negative priority |
|
90 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_swp8 |
|
91 { |
|
92 severity = ECmdCriticalSeverity; |
|
93 key = 999; |
|
94 value = 876; |
|
95 filename = "ssm.swp.policy.test.cmdreqswp"; |
|
96 priority = -1; |
|
97 } |
|
98 |
|
99 #endif |