|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __UT_MCSSETTINGS_H__ |
|
20 #define __UT_MCSSETTINGS_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 #include <e32def.h> |
|
27 #include <msvapi.h> |
|
28 #include <itemmap.h> |
|
29 #include <hspluginsettings.h> |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CMCSPlugin; |
|
33 |
|
34 #ifndef NONSHARABLE_CLASS |
|
35 #define NONSHARABLE_CLASS(x) class x |
|
36 #endif |
|
37 |
|
38 // CLASS DEFINITION |
|
39 /** |
|
40 * |
|
41 * Unit test for the mcspluginpublisher |
|
42 * |
|
43 */ |
|
44 NONSHARABLE_CLASS( UT_MCSPluginPublisher ) : |
|
45 public CEUnitTestSuiteClass, |
|
46 public MMsvSessionObserver |
|
47 { |
|
48 public: // Constructors and destructors |
|
49 |
|
50 /** |
|
51 * Two phase construction |
|
52 */ |
|
53 static UT_MCSPluginPublisher* NewL(); |
|
54 static UT_MCSPluginPublisher* NewLC(); |
|
55 |
|
56 /** |
|
57 * Destructor |
|
58 */ |
|
59 ~UT_MCSPluginPublisher(); |
|
60 |
|
61 /** |
|
62 * From class MMsvSessionObserver, |
|
63 * Handles an event from the message server. |
|
64 */ |
|
65 void HandleSessionEventL( |
|
66 TMsvSessionEvent /*aEvent*/, |
|
67 TAny* /*aArg1*/, |
|
68 TAny* /*aArg2*/, |
|
69 TAny* /*aArg3*/ ); |
|
70 |
|
71 |
|
72 |
|
73 private: // Constructors and destructors |
|
74 |
|
75 UT_MCSPluginPublisher(); |
|
76 |
|
77 void ConstructL(); |
|
78 |
|
79 private: // New methods |
|
80 |
|
81 void SetupL(); |
|
82 |
|
83 void Teardown(); |
|
84 |
|
85 void TestMCSDataL(); |
|
86 |
|
87 void TestMCSPluginData_RemoveDataL(); |
|
88 |
|
89 void TestMCSPluginData_GetBkmDataL(); |
|
90 |
|
91 void TestMCSPluginData_GetFolderDataL(); |
|
92 |
|
93 void TestMCSPluginData_GetMailboxDataL(); |
|
94 |
|
95 void TestMCSPluginEngine_CreateBkmItemL(); |
|
96 |
|
97 void TestMCSPluginEngine_CreateMailboxItemL(); |
|
98 |
|
99 void TestMCSPluginEngine_ItemIconL(); |
|
100 |
|
101 private: // Data |
|
102 CMCSPlugin* iMCSPlugin; |
|
103 |
|
104 RPointerArray<HSPluginSettingsIf::CItemMap> iSettings; |
|
105 |
|
106 HSPluginSettingsIf::CHomescreenSettings* iPluginSettings; |
|
107 |
|
108 EUNIT_DECLARE_TEST_TABLE; |
|
109 }; |
|
110 |
|
111 #endif // __UT_McsPluginpublisher_H__ |
|
112 |
|
113 // End of file |