|
1 /* |
|
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 "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: EUnit test for homescreen settings API, main suite |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __MT_Map_H__ |
|
19 #define __MT_Map_H__ |
|
20 |
|
21 // External includes |
|
22 #include <digia/eunit/ceunittestsuiteclass.h> |
|
23 #include <e32def.h> |
|
24 |
|
25 // Internal includes |
|
26 #include <hspluginsettings.h> |
|
27 |
|
28 // Forward declarations |
|
29 class HSPluginSettingsIf::CItemMap; |
|
30 class HSPluginSettingsIf::CPropertyMap; |
|
31 |
|
32 #ifndef NONSHARABLE_CLASS |
|
33 #define NONSHARABLE_CLASS(x) class x |
|
34 #endif |
|
35 |
|
36 // Class definition |
|
37 /** |
|
38 * |
|
39 * Homescreen settings API test class. |
|
40 * |
|
41 */ |
|
42 NONSHARABLE_CLASS( MT_Map ) : public CEUnitTestSuiteClass |
|
43 { |
|
44 public: |
|
45 // Constructors and destructors |
|
46 |
|
47 /** |
|
48 * Two phase construction |
|
49 */ |
|
50 static MT_Map* NewL(); |
|
51 |
|
52 /** |
|
53 * Two phase construction |
|
54 */ |
|
55 static MT_Map* NewLC(); |
|
56 |
|
57 /** |
|
58 * Destructor |
|
59 */ |
|
60 ~MT_Map(); |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * Private constructor |
|
66 */ |
|
67 MT_Map(); |
|
68 |
|
69 /** |
|
70 * Leaving constructor |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 public: |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * Setup the test |
|
80 */ |
|
81 void SetupL(); |
|
82 |
|
83 /** |
|
84 * Clean after the test |
|
85 */ |
|
86 void Teardown(); |
|
87 void TeardownPropertyMap(); |
|
88 |
|
89 /** |
|
90 * Test set and get the item ID |
|
91 */ |
|
92 void TestItemIdL(); |
|
93 |
|
94 /** |
|
95 * Test set and get the item name |
|
96 */ |
|
97 void TestItemNameL(); |
|
98 |
|
99 /** |
|
100 * Test set and get the property name |
|
101 */ |
|
102 void TestPropertyNameL(); |
|
103 |
|
104 /** |
|
105 * Test set and get the property value |
|
106 */ |
|
107 void TestPropertyValueL(); |
|
108 |
|
109 /** |
|
110 * Test set and get the property map |
|
111 */ |
|
112 void TestPropertyMapL(); |
|
113 |
|
114 private: |
|
115 /** Test set */ |
|
116 EUNIT_DECLARE_TEST_TABLE; |
|
117 |
|
118 HSPluginSettingsIf::CItemMap* iItemMap; |
|
119 HSPluginSettingsIf::CPropertyMap* iPropertyMap; |
|
120 RPointerArray< HSPluginSettingsIf::CPropertyMap > iProperties; |
|
121 }; |
|
122 |
|
123 #endif // __MT_Map_H__ |