|
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 GetPluginConf(2) test data |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_MT_HSPS_GETPLUGINCONF_2_H |
|
20 #define C_MT_HSPS_GETPLUGINCONF_2_H |
|
21 |
|
22 /* |
|
23 GetPluginConf(2) |
|
24 ---------------- |
|
25 |
|
26 Test purpose |
|
27 |
|
28 The purpose of this test case is to verify that GetPluginConf method fails when |
|
29 plugin is not found (invalid plugin id). |
|
30 |
|
31 Pre-Conditions |
|
32 There must be installed test themes for Active Idle application and Minimal |
|
33 configuration must be set as active. |
|
34 |
|
35 Test steps |
|
36 |
|
37 Test step 1: |
|
38 • Input: |
|
39 GetPluginConf(“invalid plugin id”) |
|
40 • Expected output: |
|
41 Status not found |
|
42 |
|
43 */ |
|
44 |
|
45 // Test step 1 method: |
|
46 |
|
47 const TUint8 getpluginconf_2_ts_1_method[] = "GetPluginConf"; |
|
48 |
|
49 // Test step 1 input: |
|
50 const TUint8 getpluginconf_2_ts_1_input[] = { |
|
51 // GetPluginConf(Input) |
|
52 // - Version 1.0 |
|
53 // - Item count (LE) |
|
54 10, |
|
55 1,0,0,0, |
|
56 // - GetPluginConf(Input)::pluginId |
|
57 // - Variant name |
|
58 // - Version 1.0 |
|
59 // - Semantic ID (LE) |
|
60 // - Variant name length (LE) |
|
61 // - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 ) |
|
62 // - Variant name |
|
63 10, |
|
64 12,0,0,0, |
|
65 8,0,0,0, |
|
66 34, |
|
67 'p','l','u','g','i','n','I','d', |
|
68 // - GetPluginConf(Input)::pluginId |
|
69 // - Variant value |
|
70 // - Version 1.0 |
|
71 // - Variant value type, EVariantTypeDesC |
|
72 // - Variant value length (LE) |
|
73 // - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 ) |
|
74 // - Variant value |
|
75 10, |
|
76 5, |
|
77 2,0,0,0, |
|
78 10, |
|
79 '99' |
|
80 }; |
|
81 |
|
82 // Test step 2 output: |
|
83 |
|
84 const TUint8 getpluginconf_2_ts_1_output[] = { |
|
85 // GetPluginConf(Output) |
|
86 // - Version 1.0 |
|
87 // - Item count (LE) |
|
88 10, |
|
89 1,0,0,0, |
|
90 // - SetPluginSettings(Output)::status |
|
91 // - Variant name |
|
92 // - Version 1.0 |
|
93 // - Semantic ID (LE) |
|
94 // - Variant name length (LE) |
|
95 // - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 ) |
|
96 // - Variant name |
|
97 10, |
|
98 12,0,0,0, |
|
99 6,0,0,0, |
|
100 26, |
|
101 's','t','a','t','u','s', |
|
102 // - SetPluginSettings::status |
|
103 // - Variant value |
|
104 // - Version 1.0 |
|
105 // - Variant value type, EVariantTypeTInt32 |
|
106 // - Variant value length (LE) |
|
107 // - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 ) |
|
108 // - Variant value |
|
109 10, |
|
110 1, |
|
111 255,255,255,255 // expected out KErrNotFound (-1) |
|
112 }; |
|
113 |
|
114 #endif // C_MT_HSPS_GETPLUGINCONF_2_H |