|
1 /* |
|
2 * Copyright (c) 2008 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 "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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Test case Customizations(1) test data |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MT_HSPS_CUSTOMIZATION_1_H_ |
|
19 #define MT_HSPS_CUSTOMIZATION_1_H_ |
|
20 |
|
21 /* |
|
22 Customizations(1) |
|
23 ---------------- |
|
24 |
|
25 Test purpose |
|
26 |
|
27 Verify that customized configurations are shadowing similar files |
|
28 in ROM drive. Customized content can written to similar folder |
|
29 structure, to any internal drive which users cannot hack (too easily). |
|
30 HSPS's ROM installer should then utilize ecplised files from the |
|
31 customization folders instead. |
|
32 This test utilizes a copy of the orginal xml file, with an |
|
33 exception that all the default settings have been removed. |
|
34 |
|
35 Pre-conditions |
|
36 • There must be installed test themes for Active Idle application and |
|
37 Minimal configuration must be set as active. Installed_widget with |
|
38 an 2000B133 UID must be available. Customized configuration file is |
|
39 written to the C's install folder for shadowing purposes. |
|
40 |
|
41 Test steps |
|
42 |
|
43 Test step 1: |
|
44 • Input: |
|
45 InstallConfigurationL( KHSPSInstallInstalledWidgetConf ); |
|
46 • Expected output: |
|
47 "Installed_widget" is installed successfully. |
|
48 |
|
49 Test step 2: |
|
50 • Input: |
|
51 GetPluginSettings(“plugin uid”) |
|
52 • Expected output: |
|
53 All settings, which were there by default, are now gone. |
|
54 |
|
55 */ |
|
56 |
|
57 // Test step 2 method: |
|
58 const TUint8 customization_1_ts_2_method[] = "GetPluginSettings"; |
|
59 |
|
60 // Test step 2 input: |
|
61 const TUint8 customization_1_ts_2_input[] = { |
|
62 // GetPluginSettings(Input) |
|
63 // - Version 1.0 |
|
64 // - Item count (LE) |
|
65 10, |
|
66 1,0,0,0, |
|
67 // - GetPluginSettings(Input)::pluginUid |
|
68 // - Variant name |
|
69 // - Version 1.0 |
|
70 // - Semantic ID (LE) |
|
71 // - Variant name length (LE) |
|
72 // - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 ) |
|
73 // - Variant name |
|
74 10, |
|
75 12,0,0,0, |
|
76 9,0,0,0, |
|
77 38, |
|
78 'p','l','u','g','i','n','U','i','d', |
|
79 // - GetPluginSettings(Input)::pluginUid |
|
80 // - Variant value |
|
81 // - Version 1.0 |
|
82 // - Variant value type, EVariantTypeDesC |
|
83 // - Variant value length (LE) |
|
84 // - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 ) |
|
85 // - Variant value |
|
86 10, |
|
87 5, |
|
88 10,0,0,0, |
|
89 42, |
|
90 '0','x','2','0','0','0','B','1','3','3' |
|
91 }; |
|
92 |
|
93 // Test step 2 output: |
|
94 const TUint8 customization_1_ts_2_output[] = { |
|
95 // GetPluginSettings(Output) |
|
96 // - Version 1.0 |
|
97 // - Item count (LE) |
|
98 10, |
|
99 1,0,0,0, |
|
100 // - GetPluginSettings::settings |
|
101 // - Variant name |
|
102 // - Version 1.0 |
|
103 // - Semantic ID (LE) |
|
104 // - Variant name length (LE) |
|
105 // - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 ) |
|
106 // - Variant name |
|
107 10, |
|
108 12,0,0,0, |
|
109 8,0,0,0, |
|
110 34, |
|
111 's','e','t','t','i','n','g','s', |
|
112 // - GetPluginSettings::settings |
|
113 // - Variant value |
|
114 // - Version 1.0 |
|
115 // - Variant value type, EVariantTypeList |
|
116 10, |
|
117 7, |
|
118 // - GetPluginSettings::settings |
|
119 // - Version 1.0 |
|
120 // - Item count (LE) |
|
121 10, |
|
122 0,0,0,0, |
|
123 }; |
|
124 |
|
125 |
|
126 |
|
127 #endif /*MT_HSPS_CUSTOMIZATION_1_H_*/ |