|
1 /* |
|
2 * Copyright (c) 2010 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, plugin map tests |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __MT_PLUGINMAP_H__ |
|
19 #define __MT_PLUGINMAP_H__ |
|
20 |
|
21 // External includes |
|
22 #include <digia/eunit/ceunittestsuiteclass.h> |
|
23 #include <e32def.h> |
|
24 |
|
25 // Internal includes |
|
26 #include "pluginmap.h" |
|
27 |
|
28 #ifndef NONSHARABLE_CLASS |
|
29 #define NONSHARABLE_CLASS(x) class x |
|
30 #endif |
|
31 |
|
32 // Class definition |
|
33 /** |
|
34 * |
|
35 * Homescreen settings API test class for plugin map tests. |
|
36 * |
|
37 */ |
|
38 NONSHARABLE_CLASS( MT_PluginMap ) : public CEUnitTestSuiteClass |
|
39 { |
|
40 public: |
|
41 // Constructors and destructors |
|
42 |
|
43 /** |
|
44 * Two phase construction |
|
45 */ |
|
46 static MT_PluginMap* NewL(); |
|
47 |
|
48 /** |
|
49 * Two phase construction |
|
50 */ |
|
51 static MT_PluginMap* NewLC(); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 ~MT_PluginMap(); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * Private constructor |
|
62 */ |
|
63 MT_PluginMap(); |
|
64 |
|
65 /** |
|
66 * Leaving constructor |
|
67 */ |
|
68 void ConstructL(); |
|
69 |
|
70 public: |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * Setup the test |
|
76 */ |
|
77 void SetupL(); |
|
78 |
|
79 /** |
|
80 * Clean after the test |
|
81 */ |
|
82 void Teardown(); |
|
83 |
|
84 /** |
|
85 * Test Set/Get plugin Id |
|
86 */ |
|
87 void PluginIdTestL(); |
|
88 |
|
89 /** |
|
90 * Test Set/Get plugin Uid |
|
91 */ |
|
92 void PluginUidTestL(); |
|
93 |
|
94 private: |
|
95 /** Test set */ |
|
96 EUNIT_DECLARE_TEST_TABLE; |
|
97 |
|
98 HSPluginSettingsIf::CPluginMap* iPluginMap; |
|
99 }; |
|
100 |
|
101 #endif // __MT_PLUGINMAP_H__ |