|
1 /* |
|
2 * Copyright (c) 2004 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 |
|
20 |
|
21 #ifndef UT_CMCCTIMERMANAGER_H |
|
22 #define UT_CMCCTIMERMANAGER_H |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 |
|
27 #include "mccexpirationhandler.h" |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CMccTimerManager; |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * |
|
36 * EUnitWizard generated test class. |
|
37 * |
|
38 */ |
|
39 class UT_CMccTimerManager |
|
40 : public CEUnitTestSuiteClass, public MMccExpirationHandler |
|
41 { |
|
42 public: // Constructors and destructors |
|
43 |
|
44 /** |
|
45 * Two phase construction |
|
46 */ |
|
47 static UT_CMccTimerManager* NewL(); |
|
48 static UT_CMccTimerManager* NewLC(); |
|
49 |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 ~UT_CMccTimerManager(); |
|
54 |
|
55 private: // Constructors and destructors |
|
56 |
|
57 UT_CMccTimerManager(); |
|
58 void ConstructL(); |
|
59 |
|
60 public: // From MMccExpirationHandler |
|
61 |
|
62 void TimerExpiredL( TMccTimerId aTimerId, TAny* aTimerParam ); |
|
63 |
|
64 private: // New methods |
|
65 |
|
66 void SetupL(); |
|
67 |
|
68 void Teardown(); |
|
69 |
|
70 void TestIsRunningL(); |
|
71 void TestIsRunning2L(); |
|
72 void TestIsRunning3L(); |
|
73 void TestStartL(); |
|
74 void TestStart2L(); |
|
75 void TestStart3L(); |
|
76 void TestStart4L(); |
|
77 void TestStart5L(); |
|
78 void TestStart6L(); |
|
79 void TestStart7L(); |
|
80 void TestStart8L(); |
|
81 void TestStart9L(); |
|
82 void TestStopL(); |
|
83 void TestStop2L(); |
|
84 void TestStop3L(); |
|
85 void TestNewTimerIdL(); |
|
86 void TestTimerExpiredL(); |
|
87 void TestTimerExpired2L(); |
|
88 void TestTimerExpired3L(); |
|
89 private: // Data |
|
90 |
|
91 CMccTimerManager* iTimer; |
|
92 |
|
93 TMccTimerId iLastExpiredTimerId; |
|
94 TAny* iLastTimerParam; |
|
95 |
|
96 EUNIT_DECLARE_TEST_TABLE; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // UT_CMCCTIMERMANAGER_H |
|
101 |
|
102 // End of file |