|
1 /* |
|
2 * Copyright (c) 2008-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: Header file for Conflict Checker unit and module tests |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef UT_CESMRConflictChecker_H |
|
20 #define UT_CESMRConflictChecker_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <CEUnitTestSuiteClass.h> |
|
24 #include <EUnitDecorators.h> |
|
25 |
|
26 #include "cmrutils.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 // CLASS DEFINITION |
|
31 class CCalSession; |
|
32 class CESMRCalDbMgr; |
|
33 class CESMRConflictChecker; |
|
34 |
|
35 /** |
|
36 * Generated EUnit test suite class. |
|
37 */ |
|
38 NONSHARABLE_CLASS( UT_CESMRConflictChecker ) : public CEUnitTestSuiteClass, |
|
39 public MMRUtilsObserver |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 static UT_CESMRConflictChecker* NewL(); |
|
44 static UT_CESMRConflictChecker* NewLC(); |
|
45 ~UT_CESMRConflictChecker(); |
|
46 |
|
47 private: // Constructors |
|
48 UT_CESMRConflictChecker(); |
|
49 void ConstructL(); |
|
50 |
|
51 private: // From MMRUtilsObserver |
|
52 |
|
53 void HandleCalEngStatus( TMRUtilsCalEngStatus aStatus ); |
|
54 |
|
55 private: // New methods |
|
56 |
|
57 void SetupL(); |
|
58 void Teardown(); |
|
59 |
|
60 private: // Test methods |
|
61 |
|
62 void T_Global_NewL(); |
|
63 void T_Global_FindConflictsL(); |
|
64 void T_Global_FindInstancesForEntryL(); |
|
65 |
|
66 private: // Data |
|
67 |
|
68 // Own. Calendar session. |
|
69 CCalSession* iCalSession; |
|
70 // Own. Calendar database manager instance. |
|
71 CESMRCalDbMgr* iCalDbManager; |
|
72 // Own. Conflict checker instance. |
|
73 CESMRConflictChecker* iConflictChecker; |
|
74 // Own. Wait object for asynchronous operations. |
|
75 CActiveSchedulerWait* iWait; |
|
76 |
|
77 EUNIT_DECLARE_TEST_TABLE; |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // UT_CESMRConflictChecker_H |