|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef UT_CMRMBUTILSSETTINGS_H |
|
19 #define UT_CMRMBUTILSSETTINGS_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <ceunittestsuiteclass.h> |
|
23 #include <eunitdecorators.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CFSMailClient; |
|
27 class CRepository; |
|
28 class CMRMBUtilsSettings; |
|
29 class CFSMailBox; |
|
30 |
|
31 // CLASS DEFINITION |
|
32 /** |
|
33 * Generated EUnit test suite class. |
|
34 */ |
|
35 NONSHARABLE_CLASS( UT_CMRMBUtilsSettings ) : |
|
36 public CEUnitTestSuiteClass |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 static UT_CMRMBUtilsSettings* NewL(); |
|
41 static UT_CMRMBUtilsSettings* NewLC(); |
|
42 ~UT_CMRMBUtilsSettings(); |
|
43 |
|
44 private: // Constructors |
|
45 |
|
46 UT_CMRMBUtilsSettings(); |
|
47 void ConstructL(); |
|
48 |
|
49 private: // New methods |
|
50 |
|
51 void SetupL(); |
|
52 void SetupWithMailboxesL(); |
|
53 void ResetcenRep(); |
|
54 void Teardown(); |
|
55 |
|
56 void T_SetDefaultMailboxSettingL(); |
|
57 void T_GetDefaultMailboxSettingsL(); |
|
58 |
|
59 void T_CenRepSetDefaultMailboxSettingL(); |
|
60 void T_CenRepGetDefaultMailboxSettingsL(); |
|
61 |
|
62 private: // Data |
|
63 |
|
64 CFSMailClient* iMailClient; |
|
65 CMRMBUtilsSettings* iSettings; |
|
66 CRepository* iCenRep; |
|
67 RPointerArray<CFSMailBox> iMailboxes; |
|
68 |
|
69 EUNIT_DECLARE_TEST_TABLE; |
|
70 }; |
|
71 |
|
72 #endif // __MRMBUTILSEXTENSION_H__ |
|
73 |
|
74 // EOF |