1 |
|
2 /* |
|
3 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * Nokia Corporation - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __UT_GSSIPTIMER_H__ |
|
21 #define __UT_GSSIPTIMER_H__ |
|
22 |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <ceunittestsuiteclass.h> |
|
26 #include <eunitmacros.h> |
|
27 |
|
28 #include "gssiptimer.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CGSSIPTimer; |
|
32 |
|
33 |
|
34 // CLASS DEFINITION |
|
35 /** |
|
36 * Tester class for UT_GSSIPTimer. |
|
37 * |
|
38 */ |
|
39 class UT_GSSIPTimer : public CEUnitTestSuiteClass |
|
40 { |
|
41 public: // Constructors and destructors |
|
42 |
|
43 /** |
|
44 * Two phase construction |
|
45 */ |
|
46 static UT_GSSIPTimer* NewL(); |
|
47 static UT_GSSIPTimer* NewLC(); |
|
48 |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~UT_GSSIPTimer(); |
|
53 |
|
54 private: // Constructors and destructors |
|
55 |
|
56 UT_GSSIPTimer(); |
|
57 void ConstructL(); |
|
58 |
|
59 private: // Test case setup and teardown |
|
60 |
|
61 void SetupL(); |
|
62 |
|
63 void Teardown(); |
|
64 |
|
65 private: // Test methods |
|
66 void UT_GSSIPTimer_Beat(); |
|
67 void UT_GSSIPTimer_Synchronize(); |
|
68 void UT_GSSIPTimer_StartTimer(); |
|
69 void UT_GSSIPTimer_StopTimer(); |
|
70 void UT_GSSIPTimer_IsStarted(); |
|
71 |
|
72 private: // Data |
|
73 EUNIT_DECLARE_TEST_TABLE; |
|
74 CGSSIPTimer* iTimer; |
|
75 CCoeControl* iCoeControl; |
|
76 CTextListItemDrawer* iItemDraw; |
|
77 |
|
78 }; |
|
79 |
|
80 #endif // __UT_GSSIPTIMER_H__ |
|
81 |
|
82 // End of file |
|